[issue46005] [doc] replace 'distutils' examples with 'setuptools'

2022-02-01 Thread Elmir
Elmir added the comment: I agree that documenting third-party tools in CPython docs is a bit weird. I guess this is more an issue with setuptools docs. IMHO here is no clear explanation on how to build extension modules there. As a temporary work around, I wrote an example of building

[issue45173] Remove configparser deprecations

2022-02-01 Thread Hugo van Kemenade
Hugo van Kemenade added the comment: Sure, please see https://bugs.python.org/issue46607. I've rebased GH-30927 to use the new issue number. -- ___ Python tracker ___

[issue45173] Remove configparser deprecations

2022-02-01 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- pull_requests: -29106 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46607] Add DeprecationWarning to configparser's LegacyInterpolation

2022-02-01 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- keywords: +patch pull_requests: +29258 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30927 ___ Python tracker

[issue46607] Add DeprecationWarning to configparser's LegacyInterpolation

2022-02-01 Thread Hugo van Kemenade
New submission from Hugo van Kemenade : The LegacyInterpolation class of configparser has been deprecated in docs since 3.2, but without raising a DeprecationWarning. The 3.2 HISTORY file says: > - configparser: the SafeConfigParser class has been renamed to ConfigParser. > The legacy

[issue40077] Convert static types to heap types: use PyType_FromSpec()

2022-02-01 Thread Kumar Aditya
Kumar Aditya added the comment: On Windows PC/winreg.c has PyHKEY_Type static type which isn't cleared at exit too. -- nosy: +kumaraditya303 ___ Python tracker ___

[issue46180] Button clicked failed when mouse hover tooltip and tooltip destroyed

2022-02-01 Thread Jason Yang
Jason Yang added the comment: The platform is WIN10 which shown at last line in first message. I don't have other platforms to test if ok or not. -- ___ Python tracker ___

[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-01 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46600] Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call

2022-02-01 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-01 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +29257 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31073 ___ Python tracker ___

[issue46602] Subtle trouble with heredoc append in configure.

2022-02-01 Thread Nathan Howard
Nathan Howard added the comment: Ok. Let me know if something changes to justify the backport churn. I can regen. On 2/1/22, Ned Deily wrote: > > Ned Deily added the comment: > > Merged for release in 3.11.0a5. We *could* backport it to 3.10 and 3.9 but > that involves regenerating

[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-01 Thread Inada Naoki
New submission from Inada Naoki : I checked stack usage for bpo-46600 and found this two functions use a lot of stack. os_setgroups: 262200 bytes os_getgroups_impl: 262184 bytes Both function has local variable like this: gid_t grouplist[MAX_GROUPS]; MAX_GROUPS is defined as: ```

[issue42205] Add image/webp to list of non-standard mimetypes

2022-02-01 Thread Éric Araujo
Change by Éric Araujo : -- superseder: image/webp support in mimetypes -> Support webp and avif image formats in mimetypes ___ Python tracker ___

[issue42049] Add image/webp to list of media types in mimetypes.py

2022-02-01 Thread Éric Araujo
Change by Éric Araujo : -- superseder: image/webp support in mimetypes -> Support webp and avif image formats in mimetypes ___ Python tracker ___

[issue38902] image/webp support in mimetypes

2022-02-01 Thread Éric Araujo
Change by Éric Araujo : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Support webp and avif image formats in mimetypes versions: +Python 3.11 -Python 3.10 ___ Python tracker

[issue45639] Support webp and avif image formats in mimetypes

2022-02-01 Thread Éric Araujo
Change by Éric Araujo : -- title: Support webp and aivf image formats in mimetypes -> Support webp and avif image formats in mimetypes ___ Python tracker ___

[issue46600] Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call

2022-02-01 Thread Inada Naoki
Inada Naoki added the comment: FWIW, it seems -O0 don't merge local variables in different path or lifetime. For example, see _Py_abspath ``` if (path[0] == '\0' || !wcscmp(path, L".")) { wchar_t cwd[MAXPATHLEN + 1]; //(snip) } //(snip) wchar_t cwd[MAXPATHLEN +

[issue45639] Support webp and aivf image formats in mimetypes

2022-02-01 Thread Éric Araujo
Change by Éric Araujo : -- title: Support modern image formats in MIME types -> Support webp and aivf image formats in mimetypes ___ Python tracker ___

[issue46414] Add typing.reveal_type

2022-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset abcc3d75f6e570519cb37c62130a2295c6928bff by Jelle Zijlstra in branch 'main': bpo-46414: Add typing.reveal_type (#30646) https://github.com/python/cpython/commit/abcc3d75f6e570519cb37c62130a2295c6928bff --

[issue46602] Subtle trouble with heredoc append in configure.

2022-02-01 Thread Ned Deily
Ned Deily added the comment: Merged for release in 3.11.0a5. We *could* backport it to 3.10 and 3.9 but that involves regenerating configure again for each. It's probably not high enough priority to justify the churn for bugfix releases. -- resolution: -> fixed stage: patch review

[issue46602] Subtle trouble with heredoc append in configure.

2022-02-01 Thread Ned Deily
Ned Deily added the comment: New changeset b1288964e31069bdf81abe560c82874f6f620928 by adanhawth in branch 'main': bpo-46602: Do not append conftest.c (GH-31062) https://github.com/python/cpython/commit/b1288964e31069bdf81abe560c82874f6f620928 -- nosy: +ned.deily

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2022-02-01 Thread miss-islington
miss-islington added the comment: New changeset 0371e5d7f1248abb0712fc98c3135d01d265cec8 by Miss Islington (bot) in branch '3.9': bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069) https://github.com/python/cpython/commit/0371e5d7f1248abb0712fc98c3135d01d265cec8 --

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2022-02-01 Thread miss-islington
miss-islington added the comment: New changeset 85b421fbff23ff41c52fa5bde191920b3701f0d0 by Miss Islington (bot) in branch '3.10': bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069) https://github.com/python/cpython/commit/85b421fbff23ff41c52fa5bde191920b3701f0d0 --

[issue45173] Remove configparser deprecations

2022-02-01 Thread STINNER Victor
STINNER Victor added the comment: Currently, the issue title is "Remove configparser deprecations". GH-30927 doesn't remove deprecated functions, but adds new warnings. It's really confusing to make this change as part of this issue. Can you please create a new issue for GH-30927

[issue45173] Remove configparser deprecations

2022-02-01 Thread STINNER Victor
STINNER Victor added the comment: > Searching 4,764 sdists from the top 5,000 PyPI packages, these 13 contain > "LegacyInterpolation" Other removed symbols are causing troubles, like SafeConfigParser. Example of Fedora bz #2025600: mom fails to build with Python 3.11: AttributeError:

[issue46591] Make About IDLE links clickable

2022-02-01 Thread miss-islington
miss-islington added the comment: New changeset 7dee93c2d223a080f410f6901987e9d363743471 by Miss Islington (bot) in branch '3.10': bpo-46591: Make About IDLE doc link label clickable (GH-30251) https://github.com/python/cpython/commit/7dee93c2d223a080f410f6901987e9d363743471 --

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2022-02-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +29256 pull_request: https://github.com/python/cpython/pull/31071 ___ Python tracker ___

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2022-02-01 Thread miss-islington
Change by miss-islington : -- message_count: 9.0 -> 10.0 nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +29255 pull_request: https://github.com/python/cpython/pull/31070 ___ Python tracker

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2022-02-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0611eafc709cbe8a2a0bdde082d25df0c5034de7 by Victor Stinner in branch 'main': bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069) https://github.com/python/cpython/commit/0611eafc709cbe8a2a0bdde082d25df0c5034de7 --

[issue46591] Make About IDLE links clickable

2022-02-01 Thread miss-islington
miss-islington added the comment: New changeset a1869e385b17bfdfe8d9850047f5b2dbb88e58fa by Miss Islington (bot) in branch '3.9': bpo-46591: Make About IDLE doc link label clickable (GH-30251) https://github.com/python/cpython/commit/a1869e385b17bfdfe8d9850047f5b2dbb88e58fa --

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2022-02-01 Thread STINNER Victor
STINNER Victor added the comment: GH-31069 simply silently ignore all socket errors. I tried to write a smart fix which only ignores socket errors when tests are done, in tearDown(). But than I got issues in makepasv() tests which creates a socket and immediately closes it. The server also

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2022-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29254 pull_request: https://github.com/python/cpython/pull/31069 ___ Python tracker ___

[issue46591] Make About IDLE links clickable

2022-02-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +29253 pull_request: https://github.com/python/cpython/pull/31068 ___ Python tracker ___

[issue46591] Make About IDLE links clickable

2022-02-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +29252 pull_request: https://github.com/python/cpython/pull/31067 ___ Python tracker

[issue46591] Make About IDLE links clickable

2022-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 53c78080573b3bae4c4e782b9f47dce48aac9688 by Wes in branch 'main': bpo-46591: Make About IDLE doc link label clickable (GH-30251) https://github.com/python/cpython/commit/53c78080573b3bae4c4e782b9f47dce48aac9688 --

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2022-02-01 Thread STINNER Victor
STINNER Victor added the comment: On Fedora Rawhide x64-64, I can reproduce the test_ftplib test_makeport() issue in reliable way. On Python 3.9, the test also logs the exception but the test is marked as a success: --- $ ./python -m test -u all test_ftplib -v -m test_makeport (...)

[issue42369] Reading ZipFile not thread-safe

2022-02-01 Thread Matthew Davis
Matthew Davis added the comment: In addition to fixing any unexpected behavior, can we update the documentation [1] to state what the expected behavior is in terms of thread safety? [1] https://docs.python.org/3/library/zipfile.html -- nosy: +mdavis-xyz

[issue46594] Windows "Edit with IDLE >" only has one selection

2022-02-01 Thread Eryk Sun
Eryk Sun added the comment: > the Open With entries may not be being merged. That would probably be a bug in the Windows shell API. The HKCU and HKLM subkeys of "Software\Classes\Python.File\Shell\editwithidle\shell" are merged in the HKCR view. The same key path can exist in both hives,

[issue45773] Compiler hangs during jump elimination

2022-02-01 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +29251 pull_request: https://github.com/python/cpython/pull/31066 ___ Python tracker ___

[issue45773] Compiler hangs during jump elimination

2022-02-01 Thread Brandt Bucher
Brandt Bucher added the comment: My fix for this seems to have erroneously added two invalid new jump threads: POP_JUMP_IF_FALSE(a) to JUMP_IF_FALSE_OR_POP(b) is folded into POP_JUMP_IF_FALSE(b) POP_JUMP_IF_TRUE(a) to JUMP_IF_TRUE_OR_POP(b) is folded into POP_JUMP_IF_TRUE(b) The good news

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2022-02-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +29250 pull_request: https://github.com/python/cpython/pull/31065 ___ Python tracker ___

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2022-02-01 Thread miss-islington
miss-islington added the comment: New changeset 89b13042fcfc95bae21a49806a205ef62f1cdd73 by Paul m. p. P in branch 'main': bpo-14916: use specified tokenizer fd for file input (GH-31006) https://github.com/python/cpython/commit/89b13042fcfc95bae21a49806a205ef62f1cdd73 -- nosy:

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-02-01 Thread da-woods
da-woods added the comment: Just a quick comment on Cython and these changes: Cython 0.29 can build itself on Python 3.11a4 with `CFLAGS="-DCYTHON_FAST_THREAD_STATE=0 -DCYTHON_USE_EXC_INFO_STACK=0" python3.11 setup.py build_ext`. I think there's some coroutine code left that isn't fixed by

[issue46605] Py_XDECREF() module on fail in Py_mod_exec

2022-02-01 Thread ov2k
New submission from ov2k : In some of the xx modules, a Py_mod_exec function steals a reference to the module argument when an error occurs (Py_XDECREF(m) after goto fail). It's a bit pernicious given the modules' stated intent to be used as a template, although I'm not sure how often this

[issue46528] Simplify the VM's stack manipulations

2022-02-01 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset a0e55a571cf01885fd5826266c37abaee307c309 by Brandt Bucher in branch 'main': bpo-46528: Simplify BUILD_TUPLE/UNPACK_SEQUENCE folding (GH-31039) https://github.com/python/cpython/commit/a0e55a571cf01885fd5826266c37abaee307c309 --

[issue46604] Documentation fix in ssl module

2022-02-01 Thread Kossi GLOKPOR
Change by Kossi GLOKPOR : -- keywords: +patch pull_requests: +29249 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31064 ___ Python tracker ___

[issue46604] Documentation fix in ssl module

2022-02-01 Thread Kossi GLOKPOR
Change by Kossi GLOKPOR : -- assignee: docs@python components: Documentation nosy: docs@python, glk0 priority: normal severity: normal status: open title: Documentation fix in ssl module type: enhancement versions: Python 3.10 ___ Python tracker

[issue46594] Windows "Edit with IDLE >" only has one selection

2022-02-01 Thread Steve Dower
Steve Dower added the comment: I wonder if you've managed to install the launcher a second time? If the second one is for current user but the first is for local machine, the Open With entries may not be being merged. In theory, the installer is supposed to detect a previous launcher and

[issue46573] Python modules such as pyglet or pygame crash Python when tkinter message boxes are opened on MacOS.

2022-02-01 Thread Ned Deily
Ned Deily added the comment: > If I interpret the information I posted earlier correctly this is a bug in > Tkinter [...] Tkinter? Or Tk itself? -- ___ Python tracker ___

[issue46573] Python modules such as pyglet or pygame crash Python when tkinter message boxes are opened on MacOS.

2022-02-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: If I interpret the information I posted earlier correctly this is a bug in Tkinter, it calls a non-existing Objecive-C method (``-[NSApplication macOSVersion]``) and that results in an uncaught Objective-C exception and hence an abort(). BTW. All of this

[issue46603] `typing._strip_annotations` is not fully covered

2022-02-01 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29248 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31063 ___ Python tracker ___

[issue46573] Python modules such as pyglet or pygame crash Python when tkinter message boxes are opened on MacOS.

2022-02-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The last bit of the call stack according to lldb: * thread #2, queue = 'com.apple.main-thread', stop reason = signal SIGABRT frame #0: 0x00018b3419b8 libsystem_kernel.dylib`__pthread_kill + 8 frame #1: 0x00018b374eb0

[issue46573] Python modules such as pyglet or pygame crash Python when tkinter message boxes are opened on MacOS.

2022-02-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Error output when running the script: 2022-02-01 22:15:32.213 Python[5468:5726153] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/d3/rc5nx4v12y96knh2px3bpqscgn/T/org.python.python.savedState

[issue46603] `typing._strip_annotations` is not fully covered

2022-02-01 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now `coverage` says that this line is not covered at all: https://github.com/python/cpython/blob/bebaa95fd0f44babf8b6bcffd8f2908c73ca259e/Lib/typing.py#L1882 Considering how hard all these `types.UnionType` / `typing.Union` stuff is and that the

[issue46540] dylibs not loading properly from NFS mounts

2022-02-01 Thread Ned Deily
Ned Deily added the comment: > I currently do not have access to a more up-to-date Mac OS but once I do I will test and report anything unusual back. Good luck! Since there's a good chance that this issue will languish in our open backlog, I am going to mark it as closed for now. But please

[issue46540] dylibs not loading properly from NFS mounts

2022-02-01 Thread embassy_vfx
embassy_vfx added the comment: Hi Ned, Thanks for the reply. I figured that this may be the case but wanted to report it anyway. I currently do not have access to a more up-to-date Mac OS but once I do I will test and report anything unusual back. I also have not tested other file systems

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2022-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe it's time to actually try to fix this test rather than just complaining about it? Surely *somebody* here has an idea? Else maybe we need to just disable it. -- nosy: +gvanrossum ___ Python tracker

[issue46602] Subtle trouble with heredoc append in configure.

2022-02-01 Thread Nathan Howard
Change by Nathan Howard : -- components: +Build -Installation versions: -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list

[issue46602] Subtle trouble with heredoc append in configure.

2022-02-01 Thread Nathan Howard
Change by Nathan Howard : -- keywords: +patch pull_requests: +29244 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31062 ___ Python tracker ___

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-02-01 Thread Irit Katriel
Irit Katriel added the comment: > GH-30531 proposes adding PyErr_GetActiveException() function which has no > parameter, but Cython __Pyx_PyErr_GetTopmostException() has a tstate > parameter. I've now updated it to follow the pattern of other functions, where the is a private function

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-02-01 Thread Irit Katriel
Irit Katriel added the comment: This is a backport of @scoder's patch to 0.29.x. (I don't know if this is helpful). https://github.com/cython/cython/compare/master...iritkatriel:exc_info?expand=1 -- ___ Python tracker

[issue45413] Add install scheme for virtual environments

2022-02-01 Thread Miro Hrončok
Miro Hrončok added the comment: The PR is now ready for review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-02-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done, thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-02-01 Thread miss-islington
miss-islington added the comment: New changeset e5e1441d41907f92cc3bb5de675a2c519068173d by Miss Islington (bot) in branch '3.10': bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol transports (GH-30958)

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-02-01 Thread miss-islington
miss-islington added the comment: New changeset e4a6e549027b33bbe87f49fcfccc880243e49834 by Miss Islington (bot) in branch '3.9': bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol transports (GH-30958)

[issue46602] Subtle trouble with heredoc append in configure.

2022-02-01 Thread Nathan Howard
New submission from Nathan Howard : TODO: (see PR) -- components: Installation messages: 412298 nosy: adanhawth priority: normal severity: normal status: open title: Subtle trouble with heredoc append in configure. type: compile error versions: Python 3.10

[issue46364] asyncio subprocess cannot read from /dev/stdin

2022-02-01 Thread xoph
xoph added the comment: Created a PR: https://github.com/python/cpython/pull/30596 It's ready for review. Happy about any feedback! -- ___ Python tracker ___

[issue46601] macOS installer "Install Certificates.command" fails if pip is not installed

2022-02-01 Thread Chris Drake
Chris Drake added the comment: So it looks like a dependency error in the installer then? It obviously makes no sense for pip to required before the python installer can work - chicken-and-egg issue - the installer should install what it needs of course, which I guess includes pip if that's

[issue45925] Upgrade macOS and Windows installers to use SQLite 3.37.2

2022-02-01 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45925] Upgrade macOS and Windows installers to use SQLite 3.37.2

2022-02-01 Thread Ned Deily
Ned Deily added the comment: New changeset a22dd00f2da4f6ff96f58fd8d551f16bdb870c8d by Miss Islington (bot) in branch '3.9': bpo-45925: Update macOS installer to SQLite 3.37.2 (GH-30921) (GH-31057) (GH-31059) https://github.com/python/cpython/commit/a22dd00f2da4f6ff96f58fd8d551f16bdb870c8d

[issue46600] Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call

2022-02-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bebaa95fd0f44babf8b6bcffd8f2908c73ca259e by Victor Stinner in branch 'main': bpo-46600: Fix test_gdb.test_pycfunction() for clang -Og (GH-31058) https://github.com/python/cpython/commit/bebaa95fd0f44babf8b6bcffd8f2908c73ca259e --

[issue46601] macOS installer "Install Certificates.command" fails if pip is not installed

2022-02-01 Thread Ned Deily
Ned Deily added the comment: Thanks for opening the issue. From the pythondotorg issue, the output from the failed command: Last login: Sat May 8 17:08:01 on ttys005 /Applications/Python\ 3.9/Install\ Certificates.command ; exit; perl: warning: Setting locale failed. perl:

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-02-01 Thread STINNER Victor
STINNER Victor added the comment: > __Pyx_PyErr_GetTopmostException(PyThreadState *tstate) Python provides a *private* _PyErr_GetTopmostException(tstate) function, but Cython reimplements its own function. I'm not sure why. GH-30531 proposes adding PyErr_GetActiveException() function which

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-02-01 Thread Matt Bogosian
Change by Matt Bogosian : -- keywords: +patch nosy: +mbogosian nosy_count: 4.0 -> 5.0 pull_requests: +29243 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31061 ___ Python tracker

[issue45953] Statically allocate interpreter states as much as possible.

2022-02-01 Thread miss-islington
miss-islington added the comment: New changeset f78be59c83c151d94902daef56218530c52e29e7 by Eric Snow in branch 'main': bpo-45953: Preserve backward compatibility on some PyThreadState field names. (GH-31038) https://github.com/python/cpython/commit/f78be59c83c151d94902daef56218530c52e29e7

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: Time to insist on directly communicating with the Cython team (esp. @scoder) and broker some kind of compromise. -- ___ Python tracker

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-02-01 Thread Irit Katriel
Irit Katriel added the comment: If this is still the position of cython maintainers: https://github.com/cython/cython/issues/4581#issuecomment-1016503683 then I will need to revert the change until 3.12. -- ___ Python tracker

[issue46598] ElementTree: wrong XML prolog for the utf-8-sig encoding

2022-02-01 Thread Ned Deily
Change by Ned Deily : -- nosy: +eli.bendersky, scoder versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46072] Unify handling of stats in the CPython VM

2022-02-01 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +29242 pull_request: https://github.com/python/cpython/pull/31060 ___ Python tracker ___

[issue46451] Tracing causes module globals to be mutated when calling functions from C

2022-02-01 Thread Sebastian Berg
Sebastian Berg added the comment: While I have a repro for Python, I think the pre release of cython already fixes it (and I just did not regenerated the C sources when trying, I guess. A `git clean` to the rescue...). -- ___ Python tracker

[issue45925] Upgrade macOS and Windows installers to use SQLite 3.37.2

2022-02-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +29241 pull_request: https://github.com/python/cpython/pull/31059 ___ Python tracker ___

[issue45925] Upgrade macOS and Windows installers to use SQLite 3.37.2

2022-02-01 Thread Ned Deily
Ned Deily added the comment: New changeset 519eb6ad74f946a9aa7676e2d6579a3a765a8b50 by Ned Deily in branch '3.10': bpo-45925: Update macOS installer to SQLite 3.37.2 (GH-30921) (GH-31057) https://github.com/python/cpython/commit/519eb6ad74f946a9aa7676e2d6579a3a765a8b50 --

[issue46600] Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call

2022-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29240 pull_request: https://github.com/python/cpython/pull/31058 ___ Python tracker ___

[issue45925] Upgrade macOS and Windows installers to use SQLite 3.37.2

2022-02-01 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29239 pull_request: https://github.com/python/cpython/pull/31057 ___ Python tracker ___

[issue46600] Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call

2022-02-01 Thread STINNER Victor
STINNER Victor added the comment: > PR 31052 seems to have broken a bunch of buildbots. If no fix is provided in > 24 hours, we will need to revert :( test_gdb fails if Python is built with clang -Og. I don't think that it's a regression. It's just that previously, buildbots using clang

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-02-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +29238 pull_request: https://github.com/python/cpython/pull/31056 ___ Python tracker ___

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-02-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 64568acbd88a88d54ac9b8215447f88280448dd5 by Emiya in branch 'main': bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol transports (GH-30958) https://github.com/python/cpython/commit/64568acbd88a88d54ac9b8215447f88280448dd5

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-02-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +29237 pull_request: https://github.com/python/cpython/pull/31055 ___ Python tracker

[issue45925] Upgrade macOS and Windows installers to use SQLite 3.37.2

2022-02-01 Thread Ned Deily
Ned Deily added the comment: New changeset 0e4bef7a7f6f25a6f39755778c73e7026901611f by Kumar Aditya in branch 'main': bpo-45925: Update macOS installer to SQLite 3.37.2 (GH-30921) https://github.com/python/cpython/commit/0e4bef7a7f6f25a6f39755778c73e7026901611f --

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-02-01 Thread Matt B
Matt B added the comment: Thanks, @kj! Fantastic education and insight! I'm sad that I needed you as an interpreter but very grateful you were around to provide the interpretation. Working on a patch now…. -- ___ Python tracker

[issue46599] Objects/object.c:767:24: runtime error: member access within null pointer of type 'PyObject' (aka 'struct _object')

2022-02-01 Thread Christian Heimes
Christian Heimes added the comment: The crash occurs inside marshal module (Python/marshal.c). The marshal module is unsafe and cannot safely parse malicious code. Bad marshal code is expected to crash the interpreter. -- nosy: +christian.heimes resolution: -> wont fix stage: ->

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-02-01 Thread Irit Katriel
Irit Katriel added the comment: That commit has significant changes in ceval.c and compile.c. They don't need to be reverted to unbreak cython. I'm working on a PR for a simpler change. Have you tried with CYTHON_USE_EXC_INFO_STACK undefined? --

[issue46451] Tracing causes module globals to be mutated when calling functions from C

2022-02-01 Thread Sebastian Berg
Sebastian Berg added the comment: Not reopening for now, but I will note again that (AFAIK) Cython uses `PyEval_EvalCodeEx`, and the docs say that it is not used internally to CPython anymore. So it seems pretty plausible that the bug is in `PyEval_EvalCodeEx` and not the generated Cython

[issue46180] Button clicked failed when mouse hover tooltip and tooltip destroyed

2022-02-01 Thread Ned Deily
Ned Deily added the comment: Can you say which platforms are affected by this? The OP's example appears to be from a Windows system. Are Unix (X11) and/or macOS versions of Tk affected, too? -- nosy: +ned.deily ___ Python tracker

[issue46600] Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call

2022-02-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PR 31052 seems to have broken a bunch of buildbots. If no fix is provided in 24 hours, we will need to revert :( -- nosy: +pablogsal ___ Python tracker

[issue46561] Descriptor resolution should own arguments passed to descriptors

2022-02-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: If this can only be triggered from C code, it less of a concern. The PR increases cost on a critical path, so we ought to be wary of applying it unless a known problem is being solved. Note, this code path has survived two decades of deployment. Also,

[issue46451] Tracing causes module globals to be mutated when calling functions from C

2022-02-01 Thread Sebastian Berg
Change by Sebastian Berg : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46451] Tracing causes module globals to be mutated when calling functions from C

2022-02-01 Thread Sebastian Berg
Sebastian Berg added the comment: Thanks for having a look. I have confirmed this is related to Cython (no pandas/NumPy involved) – repro at https://github.com/seberg/bpo46451. What happens under the hood in Cython is probably:

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-02-01 Thread STINNER Victor
STINNER Victor added the comment: Irit Katriel: > Reverting the whole thing would include big changes in compile.c and ceval.c, > so I'd rather avoid that if we can. It was a good idea to split changes of this issue into multiple commits :-) I'm only proposing to revert the one which

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-02-01 Thread Ken Jin
Ken Jin added the comment: > In short, I will do my best, but I suspect I will need patience and guidance > in arriving something acceptable. Yeah no worries. typing.py is really complex for many historical reasons. I still don't grasp all of it and probably never will. > what about

  1   2   >