[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Why is not PEP 630 enough? My understanding is that this entire class of code changes has been put on hold pending Steering Council approval. It represents a great deal of code churn and creation on new APIs. Several of the patches had had negative

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-10-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45574] Warning: ‘print_escape’ defined but not used

2021-10-22 Thread Nikita Sobolev
New submission from Nikita Sobolev : Recently, GitHub started to show a new warning: > Check warning on line 999 in Parser/tokenizer.c > GitHub Actions / Address sanitizer > Parser/tokenizer.c#L999 > ‘print_escape’ defined but not used [-Wunused-function] Link:

[issue19460] Add test for MIMENonMultipart

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be converted to a GitHub PR. -- keywords: +easy -patch nosy: +iritkatriel versions: +Python 3.11 -Python 3.4 ___ Python tracker

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: $ find build/lib.linux-x86_64-3.11/ -name '*.so' | sort build/lib.linux-x86_64-3.11/_ctypes.cpython-311-x86_64-linux-gnu.so build/lib.linux-x86_64-3.11/_ctypes_test.cpython-311-x86_64-linux-gnu.so

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: I added some whitespace to Modules/Setup. All lines starting with ``#([a-z_])`` compile cleanly on Fedora 34 with all dependencies available. dbm, tkinter, and sqlite are missing or untested. $ sed -E -i 's/^#([a-z_])/\1/g' Modules/Setup $ make ... The

[issue44665] asyncio.create_task() documentation should mention user needs to keep reference to the task

2021-10-22 Thread Chris Meyer
Chris Meyer added the comment: Is there a way to reproduce this issue? I run the following code in Python 3.9 and it works as expected (prints "xyz" twice). import asyncio import gc async def xyz(): print("xyz") event_loop = asyncio.get_event_loop() event_loop.create_task(xyz()) t =

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-10-22 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27438 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29164 ___ Python tracker

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-10-22 Thread Christian Heimes
New submission from Christian Heimes : pkg-config [1] is a standard tool on Linux and other platforms to detect presence of dependencies as well as to figure out which compiler and linker flags they require. Development packages provide a .pc file, e.g. ncurses provides a ncursesw.pc file.

[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: Could you or somebody else please create a PR with patch and a test case? -- versions: +Python 3.11 -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue45555] Object stays alive for weak reference if an exception happens in constructor

2021-10-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I concur, this is not a bug. The contract of the weakref is that the callback will be triggered when the object is destroyed, but here the object is not destroyed because is owned by the frame in the traceback. As Mark correctly mentions, the object

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-22 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42538] AsyncIO strange behaviour

2021-10-22 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I meant, "that describes the behaviour" -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42538] AsyncIO strange behaviour

2021-10-22 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I opened a documentation PR agreeing with @ncoghlan, that adds this behavior. See https://bugs.python.org/issue44665 -- nosy: +nanjekyejoannah ___ Python tracker

[issue44665] asyncio.create_task() documentation should mention user needs to keep reference to the task

2021-10-22 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @bernat and ncoghlan, please see if the wording I have used in the linked PR helps to clarify this. -- stage: patch review -> ___ Python tracker

[issue44665] asyncio.create_task() documentation should mention user needs to keep reference to the task

2021-10-22 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch nosy: +nanjekyejoannah nosy_count: 2.0 -> 3.0 pull_requests: +27437 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29163 ___ Python tracker

[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2021-10-22 Thread Richard van den Berg
Richard van den Berg added the comment: I just ran into this 12 year old issue. Can this be merged please? -- nosy: +richard.security.consultant ___ Python tracker ___

[issue41592] Make _SubParsersAction public

2021-10-22 Thread Ken Jin
Ken Jin added the comment: > Where can I get their attention? I've nosied Raymond on this bug, he should be receiving our messages. -- ___ Python tracker ___

[issue45562] python -d creates lots of tokenizer messages

2021-10-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yeah, let me fix that in another PR -- ___ Python tracker ___ ___ Python-bugs-list

[issue45502] Fix test_shelve and make it discoverable

2021-10-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b781cc3bfce7c052728b06aad9f1a467cced289d by Serhiy Storchaka in branch 'main': bpo-45502: Fix test_shelve (GH-29003) https://github.com/python/cpython/commit/b781cc3bfce7c052728b06aad9f1a467cced289d -- nosy: +lukasz.langa

[issue45555] Object stays alive for weak reference if an exception happens in constructor

2021-10-22 Thread Matias G
Matias G added the comment: About the reference in exception: I thought that Python 3 didn't have the need for `sys.exc_clear()` (which has been removed), specifically for this kind of problem. The code I use is in fact more complex than the small snippet I posted here to reproduce the

[issue32170] Contrary to documentation, ZipFile.extract does not extract timestamps or other metadata

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___

[issue45551] EmailMessage utf-8 folding error

2021-10-22 Thread R. David Murray
R. David Murray added the comment: I'm pretty sure this is a duplicate report and that we worked on a fix, but I don't know if it got committed because I can't find the issue... (To be clear, the problem here is the lack of whitespace at the start of the folded part of the header.)

[issue45572] urllib.request:AttributeError: 'dict' object has no attribute 'get_all' in http_error_auth_reqed function

2021-10-22 Thread tongxiaoge
Change by tongxiaoge : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41592] Make _SubParsersAction public

2021-10-22 Thread Eric Pederson
Eric Pederson added the comment: Yes - that was the first thing I tried and why I logged the bug. I will log a bug with Pycharm but it still seems like the long term solution is to make _SubParsersAction public since it is used like a public object. I thought that logging the bug here

[issue45572] urllib.request:AttributeError: 'dict' object has no attribute 'get_all' in http_error_auth_reqed function

2021-10-22 Thread tongxiaoge
Change by tongxiaoge : Added file: https://bugs.python.org/file50389/3.11.0a1 fail.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45572] urllib.request:AttributeError: 'dict' object has no attribute 'get_all' in http_error_auth_reqed function

2021-10-22 Thread tongxiaoge
Change by tongxiaoge : Added file: https://bugs.python.org/file50388/3.7.12 fail.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45572] urllib.request:AttributeError: 'dict' object has no attribute 'get_all' in http_error_auth_reqed function

2021-10-22 Thread tongxiaoge
Change by tongxiaoge : Added file: https://bugs.python.org/file50387/3.7.4 fix Regex ok.png ___ Python tracker ___ ___ Python-bugs-list

[issue43974] Define Py_BUILD_CORE_MODULE in extensions instead of setup.py and Modules/Setup

2021-10-22 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43974] Define Py_BUILD_CORE_MODULE in extensions instead of setup.py and Modules/Setup

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset 03e9f5dc751b8c441a85f428abc3f432ffe46345 by Christian Heimes in branch 'main': bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157) https://github.com/python/cpython/commit/03e9f5dc751b8c441a85f428abc3f432ffe46345 --

[issue45572] urllib.request:AttributeError: 'dict' object has no attribute 'get_all' in http_error_auth_reqed function

2021-10-22 Thread tongxiaoge
New submission from tongxiaoge : The python version I currently use in my development environment is 3.7.4. Using the following script, the program has never output, and seems to have entered an infinite loop. To reproduce the issue we can use the following code: from urllib.request import

[issue45571] Modules/makesetup uses wrong CFLAGS for *shared*

2021-10-22 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27436 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29161 ___ Python tracker

[issue45571] Modules/makesetup uses wrong CFLAGS for *shared*

2021-10-22 Thread Christian Heimes
New submission from Christian Heimes : I think that makesetup uses the wrong CFLAGS variable for shared modules. The script uses PY_CFLAGS: no) cc="$cc \$(CCSHARED) \$(PY_CFLAGS) \$(PY_CPPFLAGS)";; while setup.py uses PY_CFLAGS_NODIST: set_compiler_flags('CFLAGS',

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: In the case of setuptools, this would be the file setup.py, but I think the specific file is not relevant. I can try to come up with a shorter example. -- ___ Python tracker

[issue45126] [sqlite3] cleanup and harden Connection and Cursor __init__

2021-10-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27435 pull_request: https://github.com/python/cpython/pull/29160 ___ Python tracker ___

[issue45555] Object stays alive for weak reference if an exception happens in constructor

2021-10-22 Thread Mark Dickinson
Mark Dickinson added the comment: I don't think this is a bug: there's still a reference to the `A` instance in `sys.exc_info()` (specifically, in the exception traceback) in this case, so that instance is still alive. If you add an `except: pass` clause to your `try / finally`, you should

[issue45570] Simplify setup macros for pyexpat and _elementtree

2021-10-22 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27434 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29159 ___ Python tracker

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-22 Thread Mark Shannon
Mark Shannon added the comment: What is `source`? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34240] Convert test_mmap to use tempfile

2021-10-22 Thread Tim Golden
Tim Golden added the comment: Closing as no longer reproducible in the current codebase on my current laptop -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45570] Simplify setup macros for pyexpat and _elementtree

2021-10-22 Thread Christian Heimes
New submission from Christian Heimes : setup.py and Modules/Setup define a couple of macros for pyexpat and _elementtree. The macros are no longer needed or should be moved to our expat_config.h copy. * HAVE_EXPAT_CONFIG_H is not used by our code and not used by system-wide expat header

[issue45555] Object stays alive for weak reference if an exception happens in constructor

2021-10-22 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I can reproduce the described scenario. I will nosy Pablo and Neil for another eye. I suggest that if it's not a bug, then maybe the docs should be updated to explain this behavior. The only part that talks about exceptions in the documentation for

[issue41592] Make _SubParsersAction public

2021-10-22 Thread Ken Jin
Ken Jin added the comment: Closing this because this is a linter problem (inside PyCharm), not a Python problem. In the earlier message I provided a solution for PyCharm. PS, mypy --strict doesn't complain when I import _SubParsersAction, meaning most type checkers likely won't complain

[issue45562] python -d creates lots of tokenizer messages

2021-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I had left a comment on Github about using stderr instead of stdout, to make the output more consistent (other parser error messages go to stderr). Note sure whether that's something you still want to change before closing the issue. -- stage:

[issue43974] Define Py_BUILD_CORE_MODULE in extensions instead of setup.py and Modules/Setup

2021-10-22 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > I no longer think that we should define Py_BUILD_CORE_MODULE > unconditionally. Instead I propose to move the defines into each C module. +1. Explicit is nice. -- nosy: +erlendaasland ___ Python tracker

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +27433 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29158 ___ Python tracker ___

[issue43974] Define Py_BUILD_CORE_MODULE in extensions instead of setup.py and Modules/Setup

2021-10-22 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27432 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29157 ___ Python tracker ___

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-22 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: >> Can I do something for this pending PEP? > > Ask Victor, he should know more. But as far as I know, no one started on it > yet. Quoting PEP 630 (active PEP): Whenever this PEP mentions extension modules, the advice also applies to built-in

[issue45545] chdir __exit__ is not safe

2021-10-22 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43974] Define Py_BUILD_CORE_MODULE in extensions instead of setup.py and Modules/Setup

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: The proposal is related to Brett's ticket bpo-45548. I no longer think that we should define Py_BUILD_CORE_MODULE unconditionally. Instead I propose to move the defines into each C module. This avoids duplication of macros in setup.py and Modules/Setup.

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-22 Thread Alex Waygood
Alex Waygood added the comment: If you try running my test script with the `from __future__ import annotations` line at the top commented out, however, the error is the same. (`from __future__ import annotations` is obviously still there in the module that's being imported by the test

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-22 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI, see bpo-43916 regarding the introduction and rationale of introducing Py_TPFLAGS_DISALLOW_INSTANTIATION. Slightly related: bpo-43908 -- ___ Python tracker

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-22 Thread Alex Waygood
Alex Waygood added the comment: @Nikita, I had a go at writing some more rigorous tests regarding this issue. I found the same thing you did -- the issue seems: * Isolated to dataclasses specifically (doesn't occur with TypedDicts, standard classes or NamedTuples) * Isolated to the __init__

[issue44959] EXT_SUFFIX is missing '.sl' on HP-UX

2021-10-22 Thread miss-islington
miss-islington added the comment: New changeset aa8c3446c085175e65e736b0d2e32719c4d2 by Miss Islington (bot) in branch '3.9': bpo-44959: Add fallback to extension modules with '.sl' suffix on HP-UX (GH-27857)

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-22 Thread Petr Viktorin
Petr Viktorin added the comment: > Can I do something for this pending PEP? Ask Victor, he should know more. But as far as I know, no one started on it yet. > I guess the outside user will use it MAYBE. Py_TPFLAGS_DISALLOW_INSTANTIATION is not part of the limited API, so it would be nice

[issue43137] webbrowser to support "gio open "

2021-10-22 Thread Simon McVittie
Change by Simon McVittie : -- keywords: +patch nosy: +smcv nosy_count: 1.0 -> 2.0 pull_requests: +27431 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29154 ___ Python tracker

[issue45569] Drop support for 15-bit PyLong digits?

2021-10-22 Thread Mark Dickinson
New submission from Mark Dickinson : Looking at issue #35037 (which is a compatibility issue having to do with PYLONG_BITS_IN_DIGIT), I'm wondering whether it would make sense to drop support for 15-bit PyLong digits altogether. This would simplify some of the code, eliminate a configuration

[issue45567] Support TLS Encrypted ClientHello (ECH)

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: Thanks for filing this feature request! The DNS lookup part is out of scope for the ssl module. I don't want to get into the DNS business. At $WORK I work on BIND, DNSSEC and DNS over TLS. Secure DNS (and DNS in general) is already complicated when you

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported

2021-10-22 Thread Petr Viktorin
Petr Viktorin added the comment: Repurposing this bug to track all symbols that don't appear in some configurations. - `Py_FrozenMain` should be added to stable ABI when this is fixed. It was left out of the 3.10 stable ABI for only this reason. See discussion here:

[issue44959] EXT_SUFFIX is missing '.sl' on HP-UX

2021-10-22 Thread STINNER Victor
STINNER Victor added the comment: > Can this be merged to python 3.10 as well? Thanks It's unclear to me if it's a new feature or a bugfix. But since the change is trivial, I'm fine with backporting it as a bugfix to 3.9 and 3.10 branches. -- ___

[issue44959] EXT_SUFFIX is missing '.sl' on HP-UX

2021-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +27429 pull_request: https://github.com/python/cpython/pull/29152 ___ Python tracker ___

[issue44959] EXT_SUFFIX is missing '.sl' on HP-UX

2021-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +27430 pull_request: https://github.com/python/cpython/pull/29153 ___ Python tracker ___

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: To add some more context: This came up while porting eGenix PyRun to Python 3.10. While installing setuptools 58.2.0 via "pyrun setup.py install", an exception was raised in getframeinfo(). PyRun uses exec() to run Python code: def

[issue45562] python -d creates lots of tokenizer messages

2021-10-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks you for the catch! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45562] python -d creates lots of tokenizer messages

2021-10-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ae78ffdc9399802621eabcd1668e44a91ec5f45e by Miss Islington (bot) in branch '3.10': bpo-45562: Only show debug output from the parser in debug builds (GH-29140) (#29149)

[issue44959] EXT_SUFFIX is missing '.sl' on HP-UX

2021-10-22 Thread Florin Spătar
Florin Spătar added the comment: Can this be merged to python 3.10 as well? Thanks -- ___ Python tracker ___ ___ Python-bugs-list

[issue7438] Allow to use a part of subprocess module during building Python

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: Closed after 12 years of inactivity. The code has moved on quite a bit since then. -- nosy: +iritkatriel resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29374] Doc: signal.sig(timed)wait do not work outside the main thread

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- type: behavior -> enhancement versions: +Python 3.11 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-22 Thread Nikita Sobolev
Nikita Sobolev added the comment: I had some time to debug this. It happens because we treat classes and functions differently. The difference between `get_type_hints(B)` and `get_type_hints(B.__init__)` is that we use different `global` contexts there: - For `B` we use `__mro__` entries

[issue45568] @asynccontextmanager is missing in decorator usage example

2021-10-22 Thread Zbigniew Siciarz
Change by Zbigniew Siciarz : -- keywords: +patch pull_requests: +27428 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29151 ___ Python tracker

[issue45568] @asynccontextmanager is missing in decorator usage example

2021-10-22 Thread Zbigniew Siciarz
New submission from Zbigniew Siciarz : The docs of contextlib.asynccontextmanager provide an example how to use it as a decorator (https://docs.python.org/3/library/contextlib.html#contextlib.asynccontextmanager). However, the example snippet of code doesn't decorate the timeit() function

[issue45562] python -d creates lots of tokenizer messages

2021-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Yes, I know that (at the moment) it's only documented to work in the parser, but since Py_DebugFlag is a general purpose flag, this use could easily be extended to other parts of the interpreter as well, e.g. for parsing the command line or

[issue23597] Allow easy display of local variables in log messages?

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: See also 43656. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23597] Allow easy display of local variables in log messages?

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- type: -> enhancement versions: +Python 3.11 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: See also 23597. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24055] unittest package-level set up & tear down module

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: This was added under issue30108. -- nosy: +iritkatriel resolution: -> out of date stage: needs patch -> resolved status: open -> closed superseder: -> test_site modifies sys.path ___ Python tracker

[issue6529] get{pw,gr}{nam,[ug]id}() calls are not re-entrant

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.7 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue6529] get{pw,gr}{nam,[ug]id}() calls are not re-entrant

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: The problem was fixed a couple of years ago. Python uses the reentrant functions since commit 23e65b25557f957af840cf8fe68e80659ce28629 / GH-7081. -- nosy: +christian.heimes resolution: -> fixed stage: -> resolved status: open -> closed

[issue6529] get{pw,gr}{nam,[ug]id}() calls are not re-entrant

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- stage: test needed -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6529] get{pw,gr}{nam,[ug]id}() calls are not re-entrant

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___

[issue35037] PYLONG_BITS_IN_DIGIT differs between MinGW and MSVC

2021-10-22 Thread Mark Dickinson
Mark Dickinson added the comment: This should probably be a separate issue, but I wonder whether the 15-bit digit option has value any more. Should we just drop that option and always use 30-bit digits? 30-bit digits were introduced at a time when we couldn't rely on a 64-bit integer type

[issue45566] `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +27427 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29150 ___ Python tracker ___

[issue22886] TestProgram leaves defaultTestLoader.errors dirty

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue45567] Support TLS Encrypted ClientHello (ECH)

2021-10-22 Thread Hans-Christoph Steiner
New submission from Hans-Christoph Steiner : The next version of the IETF-standardized TLS protocol is known as Encrypted ClientHello (ECH) [1] formerly known as Encrypted SNI (ESNI). This ticket collects information for ECH support, and tracks which APIs have to be added to Python in order

[issue45562] python -d creates lots of tokenizer messages

2021-10-22 Thread miss-islington
miss-islington added the comment: New changeset 86dfb55d2e091cf633dbd7aabcd49d96fb1f9d81 by Pablo Galindo Salgado in branch 'main': bpo-45562: Only show debug output from the parser in debug builds (GH-29140) https://github.com/python/cpython/commit/86dfb55d2e091cf633dbd7aabcd49d96fb1f9d81

[issue45562] python -d creates lots of tokenizer messages

2021-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +27426 pull_request: https://github.com/python/cpython/pull/29149 ___ Python tracker ___

[issue41086] Exception for uninstantiated interpolation (configparser)

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: This is not a bugfix so it should probably not be backported. -- nosy: +iritkatriel type: behavior -> enhancement versions: +Python 3.11 -Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___

[issue28375] cgi.py spam in Apache server logs

2021-10-22 Thread Sebastian Rittau
Sebastian Rittau added the comment: All my projects now use werkzeug instead of the cgi module, so I can't confirm whether this problem still exists. I'm fine with closing this as unreproducible if no one else can reproduce it. -- status: pending -> open

[issue45566] `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-22 Thread Nikita Sobolev
New submission from Nikita Sobolev : While working on https://github.com/python/cpython/pull/29147 I've noticed that `test_frozen_pickle` does not use all possible `pickle` protocols:

[issue41592] Make _SubParsersAction public

2021-10-22 Thread Ken Jin
Ken Jin added the comment: Turning a class public or not requires a lot more discussion by the argparse maintainers (I'm definitely not one of them). Have you considered this workaround for PyCharm? from argparse import ( _SubParsersAction, # noqa ArgumentParser, ) --

[issue15996] pow() for complex numbers is rough around the edges

2021-10-22 Thread Mark Dickinson
Mark Dickinson added the comment: See also discussion in #44970, which is closed as a duplicate of this issue. -- ___ Python tracker ___

[issue44970] Re-examine complex pow special case handling

2021-10-22 Thread Mark Dickinson
Mark Dickinson added the comment: > Is not it a duplicate of issue15996? Yes, I think it's close enough. Thanks. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> pow() for complex numbers is rough around the edges

[issue45125] Improve tests and docs of how `pickle` works with `SharedMemory` obejcts

2021-10-22 Thread Nikita Sobolev
Nikita Sobolev added the comment: Thanks everyone. It is now fixed -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +27424 pull_request: https://github.com/python/cpython/pull/29148 ___ Python tracker ___

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-10-22 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 276468dddb46c54980c782c09cdb53bd90755752 by Petr Viktorin in branch 'main': bpo-43795: Add a test for Stable ABI symbol availability using ctypes (GH-26354) https://github.com/python/cpython/commit/276468dddb46c54980c782c09cdb53bd90755752

[issue44133] "Py_FrozenMain" symbol is not exported

2021-10-22 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 276468dddb46c54980c782c09cdb53bd90755752 by Petr Viktorin in branch 'main': bpo-43795: Add a test for Stable ABI symbol availability using ctypes (GH-26354) https://github.com/python/cpython/commit/276468dddb46c54980c782c09cdb53bd90755752

[issue44133] "Py_FrozenMain" symbol is not exported

2021-10-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +27425 pull_request: https://github.com/python/cpython/pull/29148 ___ Python tracker

[issue45520] Frozen dataclass deep copy doesn't work with __slots__

2021-10-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch nosy: +sobolevn nosy_count: 3.0 -> 4.0 pull_requests: +27423 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29147 ___ Python tracker

[issue45528] mmap: constants not listed in the documentation

2021-10-22 Thread Christian Heimes
Change by Christian Heimes : -- type: -> enhancement versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue45535] Enum's dir() does not contain inherited members

2021-10-22 Thread Alex Waygood
Alex Waygood added the comment: Would there be interest in me submitting a PR along these lines? > why use mro() instead of __mro__? Er, no reason, really. To be honest, I've never really understood why Python has both. -- ___ Python

[issue45565] More LOAD_ATTR specializations

2021-10-22 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +27422 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29146 ___ Python tracker ___

<    1   2   3   >