[issue44105] tempfile.TemporaryDirectory deleted after sleep in threads

2021-10-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue45480] Missing link(s) to the "Python Module Index" page

2021-10-15 Thread Mark Summerfield
New submission from Mark Summerfield : I mostly use the Python 3.8 docs since that's the Python I use. However, when I tried using the 3.9 and 3.10 docs I found that the top of each page has a long search bar (presumably for mobile devices?) but _no_ link to the python module index. I find thi

[issue45477] configure script cannot detect float word ordering on linux

2021-10-15 Thread Christian Heimes
Christian Heimes added the comment: Python uses the AX_C_FLOAT_WORDS_BIGENDIAN macro from autoconf-archive to detect byte order of floats. You can find the code at https://www.gnu.org/software/autoconf-archive/ax_c_float_words_bigendian.html . Please attach your config.log file and the conft

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27256 pull_request: https://github.com/python/cpython/pull/28968 ___ Python tracker ___ __

[issue35081] Move internal headers to Include/internal/

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27257 pull_request: https://github.com/python/cpython/pull/28969 ___ Python tracker ___ __

[issue35081] Move internal headers to Include/internal/

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue since there is still activity on it. -- resolution: fixed -> status: closed -> open ___ Python tracker ___ __

[issue45481] gc is disabled without explict calling gc.disable()

2021-10-15 Thread EricLin
New submission from EricLin : First, I would like to clarify that this is a Python 2.7.5 issue. I know python2 is no longer maintained, but I still wish to look for some help here. We have observed a long running Python 2.7.5 process leaking memory. I tried to inject some code into the proces

[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This might be related to below commit : commit d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e Author: Inada Naoki Date: Tue Apr 13 13:51:49 2021 +0900 bpo-43787: Add __iter__ to GzipFile, BZ2File, and LZMAFile (GH-25353) python -m gzip README.rst

[issue45462] Speed up re.match with pre-compiled patterns

2021-10-15 Thread Jonas H.
Jonas H. added the comment: I agree with your statement in principle. Here are numbers for the slowdown that's introduced: Without the change: ./python.exe -m timeit -s 'import re'\n'[re.compile(f"fill_cache{i}") for i in range(512)]'\n'pat = re.compile(".")' 're.match(pat, "asdf")' 5000

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8e5de40f90476249e9a2e5ef135143b5c6a0b512 by Victor Stinner in branch 'main': bpo-35134: Move classobject.h to Include/cpython/ (GH-28968) https://github.com/python/cpython/commit/8e5de40f90476249e9a2e5ef135143b5c6a0b512 -- ___

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
New submission from STINNER Victor : Python has a types.SimpleNamespace type which is convenient to cheap a "simple namespace". I propose to make its C API public (but exclude it from the limited C API): add PySimpleNamespace_New() function. It's currently used in: * Modules/timemodule.c: ti

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

2021-10-15 Thread Petr Viktorin
Petr Viktorin added the comment: Just note that these were *not* part of the limited API, which is defined in Misc/stable_abi.txt rather than the #ifdefs: https://docs.python.org/3.10/c-api/stable.html#stable If they were, the functions would need to remain in the stable ABI. -- nosy

[issue45480] Missing link(s) to the "Python Module Index" page

2021-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: I think https://github.com/python/pythondotorg/issues is the correct place to report issues with the web site. -- nosy: +eric.smith ___ Python tracker __

[issue45462] Speed up re.match with pre-compiled patterns

2021-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And compare it with pat.match("asdf"). If the performance is critical, use methods of pre-compiled patterns. -- ___ Python tracker ___ ___

[issue45481] gc is disabled without explict calling gc.disable()

2021-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: Sorry, but since this is a 2.7 issue, I'm going to close it here. I know this isn't the answer you wanted, but this is really the wrong venue. I suggest you ask on StackOverflow or the python-list mailing list (https://mail.python.org/mailman/listinfo/python-

[issue45462] Speed up re.match with pre-compiled patterns

2021-10-15 Thread Jonas H.
Jonas H. added the comment: pat.match() has 110 nsec. Feel free to close the issue and PR if you think this isn't worth changing. -- ___ Python tracker ___ __

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27258 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28970 ___ Python tracker ___ _

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I am with Raymond on this one. If "protecting against wrong use" is the only reason to go down the slippery path of starting to rely on compiler optimizations for performance critical operations, the argument is not good enough. If people do use macros

[issue45462] Speed up re.match with pre-compiled patterns

2021-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For reference, caching was introduced in b1aa19515ffdb84c6633ee0344196fd8bd50ade0 21 years ago, and initially it checked for pre-compiled patterns before looking up in the cache. But it was changed 2 months later in 7898c3e6852565046a9b8b063d35d66777bf5176

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: I created this issue while cleaning the C API. I'm not fully convinced that PySimpleNamespace_New() must be made public. The other choice is to move the function to the internal C API. -- ___ Python tracker

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: Petr: > Just note that these were *not* part of the limited API, which is defined in > Misc/stable_abi.txt rather than the #ifdefs: > https://docs.python.org/3.10/c-api/stable.html#stable > If they were, the functions would need to remain in the stable ABI.

[issue45428] py_compile fails to read filenames from stdin

2021-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 59a633d3e2071d65aa6638da5cf767a5c1310271 by Graham Inggs in branch 'main': bpo-45428: Fix reading filenames from stdin in py_compile (GH-28848) https://github.com/python/cpython/commit/59a633d3e2071d65aa6638da5cf767a5c1310271 -- nosy

[issue45428] py_compile fails to read filenames from stdin

2021-10-15 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27259 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28971 ___ Python tracker

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: For PyObject, I converted Py_REFCNT(), Py_TYPE() and Py_SIZE() to static inline functions to enforce the usage of Py_SET_REFCNT(), Py_SET_TYPE() and Py_SET_SIZE(). Only a minority of C extensions are affected by these changes. Also, there is more pressure fr

[issue32596] Lazy import concurrent.futures.process and thread

2021-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What are issues with using global variable as import target? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue35081] Move internal headers to Include/internal/

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 063abd931f064a4b6b478b0b6e9aa13ee38d2cff by Victor Stinner in branch 'main': bpo-35081: Move interpreteridobject.h to Include/internal/ (GH-28969) https://github.com/python/cpython/commit/063abd931f064a4b6b478b0b6e9aa13ee38d2cff -- __

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread E. Paine
E. Paine added the comment: Would it make sense, since this issue pretty much makes IDLE officially support .pyi files, to add the "Edit with IDLE" menu when right-clicking on a .pyi file in Windows explorer? -- ___ Python tracker

[issue45445] Fail if an invalid -X option is provided

2021-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27260 pull_request: https://github.com/python/cpython/pull/28972 ___ Python tracker ___ ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27261 pull_request: https://github.com/python/cpython/pull/28973 ___ Python tracker ___ __

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 15.10.2021 11:43, STINNER Victor wrote: > Again, I'm not aware of any performance issue caused by short static inline > functions like Py_TYPE() or the proposed PyFloat_AS_DOUBLE(). If there is a > problem, it should be addressed, since Python uses mor

[issue45465] logging messages are needlessly reformatted for every handler

2021-10-15 Thread Vinay Sajip
Vinay Sajip added the comment: A developer may wish to format messages differently for different audiences (i.e. different handlers) - for example, omit stack traces. This behaviour is by design. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread Gareth Rees
Gareth Rees added the comment: If the problem is accidental use of the result of PyFloat_AS_DOUBLE() as an lvalue, why not use the comma operator to ensure that the result is an rvalue? The C99 standard says "A comma operator does not yield an lvalue" in §6.5.17; I imagine there is similar te

[issue45434] [C API] Clean-up the Python.h header file

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 105582e74c1817bc6a9d99bcb6540b34a3367292 by Victor Stinner in branch 'main': bpo-45434: Remove Include/eval.h header file (GH-28973) https://github.com/python/cpython/commit/105582e74c1817bc6a9d99bcb6540b34a3367292 --

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27262 pull_request: https://github.com/python/cpython/pull/28974 ___ Python tracker ___ __

[issue45445] Fail if an invalid -X option is provided

2021-10-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 79bc5e1dc6f87149240bded3654574b24168f1ac by Pablo Galindo Salgado in branch 'main': bpo-45445: Remove incorrectly commited test file (GH-28972) https://github.com/python/cpython/commit/79bc5e1dc6f87149240bded3654574b24168f1ac --

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27263 pull_request: https://github.com/python/cpython/pull/28975 ___ Python tracker ___ __

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: > The other choice is to move the function to the internal C API. I created GH-28975 for that. -- ___ Python tracker ___ ___

[issue45457] Documentation for ssl.load_default_certs is outdated

2021-10-15 Thread jerry chow
Change by jerry chow : -- nosy: +jerrylikerice1s ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue45451] IDLE Shell GUI - remove window border

2021-10-15 Thread jerry chow
Change by jerry chow : -- nosy: +jerrylikerice1s ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue45229] Always use unittest for collecting tests in regrtests

2021-10-15 Thread jerry chow
Change by jerry chow : -- nosy: +jerrylikerice1s ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset a7f8dfd25a167ccfde9996c499fa38a2aba60022 by Victor Stinner in branch 'main': bpo-44113: Move the What's New entry to Deprecate section (GH-28974) https://github.com/python/cpython/commit/a7f8dfd25a167ccfde9996c499fa38a2aba60022 -- ___

[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 14.10.2021 22:56, Eric Snow wrote: > > @MAL, what's the best way to make sure Tools/freeze is still working? I > don't see any tests for it in the test suite. I tried running the test in > Tools/freeze/test, but I can't get that to work on main (or

[issue45428] py_compile fails to read filenames from stdin

2021-10-15 Thread miss-islington
miss-islington added the comment: New changeset 2b6eb8149656541044884e76212495175e061a0a by Miss Islington (bot) in branch '3.10': bpo-45428: Fix reading filenames from stdin in py_compile (GH-28848) https://github.com/python/cpython/commit/2b6eb8149656541044884e76212495175e061a0a -

[issue43139] test_ttk test_compound, test_tk test_type fail with Tk 8.6.11.1

2021-10-15 Thread E. Paine
E. Paine added the comment: TL;DR I believe these are both Tk issues. I will take it up with them when I have time. Starting with `test_winfo_rgb`, it is not the case that the expected behaviour is no longer that #4a3c8c is equivalent to #4a4a3c3c8c8c since this is documented on the man pag

[issue45428] py_compile fails to read filenames from stdin

2021-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Graham. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 ___ Python tracker _

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27264 pull_request: https://github.com/python/cpython/pull/28976 ___ Python tracker ___ __

[issue44977] Deprecate delegation of int to __trunc__

2021-10-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core stage: -> needs patch title: Deprecate delegation of int to __trunc__? -> Deprecate delegation of int to __trunc__ versions: +Python 3.11 ___ Python tracker

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: > #define Py_RVALUE(expr) ((void)0, (expr)) Oh, that's a clever trick! I wrote GH-28976 which uses it. -- ___ Python tracker ___ __

[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- title: [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions -> [C API] Disallow using PyFloat_AS_DOUBLE() as l-value ___ Python tracker _

[issue45483] pure Python class that has been registered as a `collections.abc.Sequence` can't be recgnized by the match statement without the `_abc` module

2021-10-15 Thread GalaxySnail
New submission from GalaxySnail : Pure Python class that has been registered as a `collections.abc.Sequence` can't be recgnized by the match statement without the `_abc` module. For example: ``` >>> from test.support.import_helper import import_fresh_module >>> collections_abc_with_c_abc = i

[issue32596] Lazy import concurrent.futures.process and thread

2021-10-15 Thread Inada Naoki
Inada Naoki added the comment: See this comment. https://github.com/python/cpython/pull/5241#discussion_r162765765 -- ___ Python tracker ___ __

[issue45440] [C API] Py_IS_INFINITY() macro doesn't work in the limited C API if isinf() is not defined

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27265 pull_request: https://github.com/python/cpython/pull/28977 ___ Python tracker ___ __

[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 354c35220d25a893e502014478f6739dad6897f3 by Victor Stinner in branch 'main': bpo-45482: Rename namespaceobject.h to pycore_namespace.h (GH-28975) https://github.com/python/cpython/commit/354c35220d25a893e502014478f6739dad6897f3 -- ___

[issue45482] [C API] Move _PyNamespace_New() to the internal C API

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: [C API] Add PySimpleNamespace_New() function -> [C API] Move _PyNamespace_New() to the internal C API ___ Python tracker

[issue45484] test_pickle segfault on s390x RHEL7 LTO 3.x

2021-10-15 Thread STINNER Victor
New submission from STINNER Victor : s390x RHEL7 LTO 3.x: https://buildbot.python.org/all/#/builders/402/builds/979 0:02:00 load avg: 5.14 [193/427/2] test_pickletools crashed (Exit code -11) -- running: test_unparse (30.6 sec), test_concurrent_futures (1 min 56 sec), tes

[issue45484] test_pickle segfault on s390x RHEL7 LTO 3.x

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: It seems like pickle tests started to crash at build 936, 4 days ago: https://buildbot.python.org/all/#/builders/402/builds/936 This build was trigged by the change: commit fcb3d2ff633f3e9a826888d8b29c305a3959ff54 Author: Mark Shannon Date: Mon Oct 11 11:3

[issue32596] Lazy import concurrent.futures.process and thread

2021-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Inada-san. My first intention when I seen this code was to simplify it, but then I have found that it was an intentional change. It may be easy to detect such code and raise a syntax warning or error. Or get rid of this limitation and allow globa

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-10-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +27266 pull_request: https://github.com/python/cpython/pull/28978 ___ Python tracker ___ __

[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27267 pull_request: https://github.com/python/cpython/pull/28979 ___ Python tracker ___ __

[issue45473] Enum: add "name" and "value" keywords to call syntax

2021-10-15 Thread Ethan Furman
Ethan Furman added the comment: > Are there any other names that you would contemplate besides `from_name` and > `from_value`? No. > My reading of your response indicates that you are fundamentally opposed to > the addition of class methods, since they would limit the space of possible > inst

[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Freek de Kruijf
New submission from Freek de Kruijf : In a piece of code I have pT = datetime.strptime(a[0],"%Y-%m-%dT%H:%M:%S.%f") When I check type(a[0]) I got type(a[0]): not In this case I get: message attribute of type 'NoneType' is not callableTraceback When I use str(a[0]) instead of a[0], the issue i

[issue43725] Create a release branch ABI stability regression test

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: > the dump needs to be generated in a docker container using the same compiler > version that is used in the CI I'm not used to docker and I don't know how to get a docker similar than the one used by GitHub Action. Is there a documentation somewhere giving

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 547d26aa08aa5e4ec6e4f8a5587b30b39064a5ba by Victor Stinner in branch 'main': bpo-43760: Add PyThreadState_EnterTracing() (GH-28542) https://github.com/python/cpython/commit/547d26aa08aa5e4ec6e4f8a5587b30b39064a5ba -- _

[issue45481] gc is disabled without explict calling gc.disable()

2021-10-15 Thread Zachary Ware
Change by Zachary Ware : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes. After this issue is done, we should open a new issue and nosy Steve Dower, who is in charge of that for Windows, and Ned Deily, in case anything should be done on mac. -- ___ Python tracker

[issue43725] Create a release branch ABI stability regression test

2021-10-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will add something to the devguide explaining how to do it. In any case, the RM should be ideally the one doing this because every potential ABI breakage need to be supervised by the RM (even if is a false positive). --

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: The most straightforward change for macOS is to add “pyi” to the list of extensions in “Mac/IDLE/IDLE.app/Contents/Info.plist”. That way IDLE will be seen as a valid editor for .pyi files. -- nosy: +ronaldoussoren __

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: > bpo-43760: Add PyThreadState_EnterTracing() (GH-28542) I created changes to use it: * pythoncapi_compat: https://github.com/pythoncapi/pythoncapi_compat/commit/10fde24739cab4547e9c27c31c8804a25e23e8a0 * Cython: https://github.com/cython/cython/pull/4411 *

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: PyThreadState.cframe.use_tracing format changed again: set value set to 0 or 255. https://github.com/python/cpython/commit/bd627eb7ed08a891dd1356756feb1ce2600358e4 -- ___ Python tracker

[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: Please provide a code snippet we can run that demonstrates the problem. -- nosy: +eric.smith ___ Python tracker ___ __

[issue45486] Stop using internal APIs in _xxsubinterpretersmodule.c.

2021-10-15 Thread Eric Snow
New submission from Eric Snow : By design, _xxsubinterpretersmodule is not supposed to be a builtin module. As a regular extension module it should only use public (or private-but-not-internal) APIs. In fact, I was careful to not use any internal APIs in the implementation. However, some h

[issue45444] test.test_concurrent_futures fail in x86_ 64 architecture

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: What is your operating system? (name/version) Did you try to build Python manually and run the test manually? How did you build Python? What are the configure flags and compiler flags? -- nosy: +vstinner ___ Pytho

[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- title: Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build -> Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC) _

[issue43139] test_ttk test_compound, test_tk test_type fail with Tk 8.6.11.1

2021-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: In Paine's failing color test, the returned tuple is The returned tuple is (0x4a48, 0x3c27, 0x8c91) versus (0x4a4a, 0x3c3c, 0x8c91), which is to say, nearly correct. Since the tested call is self._getints(self.tk.call('winfo', 'rgb', self._w, color)) eith

[issue45442] Update `Virtual Environment` tutorial

2021-10-15 Thread Shivnaren Srinivasan
Change by Shivnaren Srinivasan : -- pull_requests: +27268 pull_request: https://github.com/python/cpython/pull/28981 ___ Python tracker ___

[issue30459] PyList_SET_ITEM could be safer

2021-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27269 pull_request: https://github.com/python/cpython/pull/28982 ___ Python tracker ___ __

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, how do we make it so that "Edit with IDLE" appears when right-clicking on a .pyi file in Windows explorer? As easy as on mac (see Ronald's answer above)? -- nosy: +steve.dower ___ Python tracker

[issue45483] pure Python class that has been registered as a `collections.abc.Sequence` can't be recgnized by the match statement without the `_abc` module

2021-10-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue45480] Missing link(s) to the "Python Module Index" page

2021-10-15 Thread Ned Deily
Ned Deily added the comment: > I think https://github.com/python/pythondotorg/issues is the correct place to > report issues with the web site. In this case, it has to do with how the docs are generated with Sphinx and the source for them is in the cpython repo. You can see the problem if yo

[issue45480] Missing link(s) to the "Python Module Index" page

2021-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the correction, Ned! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-15 Thread Richard
New submission from Richard : Starting in Python 3.10, TLS connections to certain servers (e.g. websocket-cs.vudu.com:443) are failing when it worked fine on Python 3.9 and earlier on the same system. Minimal working example: ``` #!/usr/bin/env python3 import socket import ssl HOST = 'webs

[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-15 Thread Richard
Richard added the comment: Note that the same happens with pyenv-compiled Python 3.9.7 (same way as I compiled 3.10 and 3.11), to rule out issues with different installation methods: ``` ❯ python3.9 -VV Python 3.9.7 (default, Oct 8 2021, 10:30:22) [GCC 10.2.1 20210110] ``` -- _

[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-15 Thread Richard
Richard added the comment: Sorry, I mean it works fine with Python 3.9.2 from apt as well as Python 3.9.7 from pyenv. But 3.10.0 and 3.11-dev from pyenv are broken. -- ___ Python tracker ___

[issue45417] Enum creation non-linear in the number of values

2021-10-15 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman stage: patch review -> backport needed versions: -Python 3.9 ___ Python tracker ___

[issue42222] Modernize integer test/conversion in randrange()

2021-10-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +27270 pull_request: https://github.com/python/cpython/pull/28983 ___ Python tracker ___ ___

[issue45488] Powershell Commands no Longer Recognised

2021-10-15 Thread The Guy
New submission from The Guy : I am using pyinstaller to port my python programs into windows executables so that I can distribute them among my friends, and I recently assigned python to my windows PATH (I'm still not 100% sure what that means so idk if im even saying that right) and now a la

[issue45489] ForwardRef does not support | operator

2021-10-15 Thread Bobbey Reese
New submission from Bobbey Reese : Not positive this is a bug, but it seems like ForwardRef should support the pipe (|) operator for indicating Unions in Python 3.10: Python 3.10.0 (default, Oct 4 2021, 22:09:55) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more i

[issue45490] [meta][C API] Avoid C macro pitfalls and usage of static inline functions

2021-10-15 Thread STINNER Victor
New submission from STINNER Victor : C macros are really cool and useful, but there are a bunch of pitfalls which are better to avoid: https://gcc.gnu.org/onlinedocs/cpp/Macro-Pitfalls.html Some macros of the Python C API have been converted to static inline functions over the last years. It

[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-45490: "[meta][C API] Avoid C macro pitfalls and usage of static inline functions" to discuss macros and static inline functions more generally. -- ___ Python tracker

[issue12872] --with-tsc crashes on ppc64

2021-10-15 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list ma

[issue30459] PyList_SET_ITEM could be safer

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 51f8196d05f0e271358eee0f90fe044b20449fb5 by Victor Stinner in branch 'main': bpo-30459: Use (void) in macros setting variables (GH-28982) https://github.com/python/cpython/commit/51f8196d05f0e271358eee0f90fe044b20449fb5 -- ___

[issue45440] [C API] Py_IS_INFINITY() macro doesn't work in the limited C API if isinf() is not defined

2021-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 00ffc4513df7b89a168e88da4d1e3ac367f7682f by Victor Stinner in branch 'main': bpo-45440: Remove pymath.c fallbacks (GH-28977) https://github.com/python/cpython/commit/00ffc4513df7b89a168e88da4d1e3ac367f7682f --

[issue45195] test_readline: test_nonascii() failed on aarch64 RHEL8 Refleaks 3.x

2021-10-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +27271 pull_request: https://github.com/python/cpython/pull/28984 ___ Python tracker ___ __

[issue45379] Improve errors related to frozen modules.

2021-10-15 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue45486] Stop using internal APIs in _xxsubinterpretersmodule.c.

2021-10-15 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue45427] importlib.readers.MultiplexedPath

2021-10-15 Thread Filipe Laíns
Filipe Laíns added the comment: The Traversable protocol does not guarantee you access to the file-system path. pathlib.Path happens to give you that information, but other traversables are not required to. The main reasoning for this is that traversables do not need to exist on the file-sys

[issue45427] importlib.readers.MultiplexedPath

2021-10-15 Thread Filipe Laíns
Filipe Laíns added the comment: Just to clarify, as I realize I did point this out in my reply, Traversable[1][2] is the protocol that objects returned by importlib.resources.files implement. [1] https://docs.python.org/3/library/importlib.html#importlib.abc.Traversable [2] https://github.co

[issue45427] importlib.readers.MultiplexedPath

2021-10-15 Thread Filipe Laíns
Filipe Laíns added the comment: *realize I did *not* point this out :facepalm: sorry! -- ___ Python tracker ___ ___ Python-bugs-lis

[issue45490] [meta][C API] Avoid C macro pitfalls and usage of static inline functions

2021-10-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Meta comment :-) ... wouldn't it be better to enable the Github wiki feature for such collections ? -- nosy: +lemburg ___ Python tracker

  1   2   >