[issue47144] Allow setting __classcell__

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: > This is unfortunate as there is a use-case for such trickery: if the method > of a class A are only used to be grafted onto another class B (monkey > patching), A.__classcell__ should be set to B so that super() works as > expected. Would y

[issue46404] RFE: @dataclasses.dataclass(slots=True) doesn't support methods using closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: I changed the issue title to focus this issue on enhance dataclasses to support @dataclasses.dataclass(slots=True) on methods using closures: it would be a new Python 3.11 feature. I created https://bugs.python.org/issue47143 "Add functools.copy_

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
New submission from STINNER Victor : Class decorarators of attrs and stdlib dataclasses modules have to copy a class to *add* slots: * old fixed attrs issue: https://github.com/python-attrs/attrs/issues/102 * attrs issue with Python 3.11: https://github.com/python-attrs/attrs/issues/907

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

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: > Should sys.getrefcount try to "fix" the value (...) https://peps.python.org/pep-0683/ would make it possible. Right now, I don't think that it's possible. Right now, a refcount of 100210 can be a real value, or it can be an im

[issue42197] Disable automatic update of frame locals during tracing

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: Mark: Please add the new PyFrame_GetLocals() function to the C API > New Features doc: https://docs.python.org/dev/whatsnew/3.11.html#id1 -- ___ Python tracker <https://bugs.python.org/issu

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2022-03-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue16958> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46964] The global config should not be stored on each interpreter

2022-03-26 Thread STINNER Victor
STINNER Victor added the comment: > Moving the invariant bits would certainly make sense. IMO it's convenient to have a single structure for all "configuration", even if a few parameters are expected to be the same in all interpreters. Python/initconfig.c is already

[issue47075] test_multiprocessing_spawn leaks QueueManager dangling processes

2022-03-25 Thread STINNER Victor
STINNER Victor added the comment: > BaseManager._finalize_manager() timeout should be configurable I proposed GH-32112 for that. -- ___ Python tracker <https://bugs.python.org/issu

[issue47075] test_multiprocessing_spawn leaks QueueManager dangling processes

2022-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30188 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32112 ___ Python tracker <https://bugs.python.org/issu

[issue40465] Deprecate the optional *random* argument to random.shuffle()

2022-03-24 Thread STINNER Victor
STINNER Victor added the comment: commit 70a071d9e1d65f8c168b4b96a18c86d5230789c5 Author: Raymond Hettinger Date: Tue May 4 01:55:40 2021 -0700 bpo-40465: Remove random module features deprecated in 3.9 (GH-25874) -- nosy: +vstinner

[issue47106] test_asyncio: test_shutdown_cleanly() failed with timeout (10 seconds) on slow x86 Gentoo Non-Debug with X 3.x

2022-03-24 Thread STINNER Victor
New submission from STINNER Victor : test_shutdown_cleanly() of test_asyncio failed on x86 Gentoo Non-Debug with X 3.x with a timeout of 10 seconds: https://buildbot.python.org/all/#/builders/58/builds/1958 asyncio uses a default timeout of 60 seconds for a TLS handshake, but the test takes

[issue46964] The global config should not be stored on each interpreter

2022-03-23 Thread STINNER Victor
STINNER Victor added the comment: > thus far we have had no actual use cases for initializing an interpreter > with a different config I don't think that sub-interpreters should have config.install_signal_handlers=1. Same for config.configure_c_stdio=1. Only the main interpreter

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset b0f886d1bca499db1118a60b707923fa8e157073 by Victor Stinner in branch 'main': bpo-46836: Add Doc/c-api/frame.rst (GH-32051) https://github.com/python/cpython/commit/b0f886d1bca499db1118a60b707923fa8e157073

[issue47000] Make encoding="locale" uses locale encoding even in UTF-8 mode is enabled.

2022-03-23 Thread STINNER Victor
STINNER Victor added the comment: sys.getlocaleencoding() versus locale.getencoding(). For me, the Python locale module should use the C API to access the Unix locales like LC_CTYPE, nl_langinfo(CODESET), etc. The sys module are more for things specific to Python, like

[issue42238] Deprecate suspicious.py?

2022-03-23 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue42238> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47092] [C API] Add PyFrame_GetVar(frame, name) function

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-42197: Disable automatic update of frame locals during tracing. -- ___ Python tracker <https://bugs.python.org/issue47

[issue42197] Disable automatic update of frame locals during tracing

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-47092: [C API] Add PyFrame_GetVar(frame, name) function. -- ___ Python tracker <https://bugs.python.org/issue42

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30144 pull_request: https://github.com/python/cpython/pull/32054 ___ Python tracker <https://bugs.python.org/issue46

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30141 pull_request: https://github.com/python/cpython/pull/32052 ___ Python tracker <https://bugs.python.org/issue46

[issue47092] [C API] Add PyFrame_GetVar(frame, name) function

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: If PyFrameStack_GetVar(depth, name) is added, would it make PyFrame_GetVar() irrelevant? -- ___ Python tracker <https://bugs.python.org/issue47

[issue40421] [C API] Add public getter functions for the internal PyFrameObject structure

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: Issue title: "[C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API" bpo-46836 moved PyFrameObject to the internal C API. I update the issue title. -- title: [C API] Add getter functions for PyF

[issue47092] [C API] Add PyFrame_GetVar(frame, name) function

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: See also: * bpo-46836: [C API] Move PyFrameObject to the internal C API. * bpo-46836: GH-32051 "Add Doc/c-api/frame.rst" * bpo-40421: [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the inte

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30140 pull_request: https://github.com/python/cpython/pull/32051 ___ Python tracker <https://bugs.python.org/issue46

[issue45963] Embed interpreter frame in generator.

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: Leak fixed by: commit 064e53d19aea6d6906fa8f7706a2556a2c293ccd Author: Mark Shannon Date: Tue Dec 7 18:05:48 2021 + Fix leak when an exception is raised during generator creation. (GH-29960) -- nosy: +vstinner

[issue47092] [C API] Add PyFrame_GetVar(frame, name) function

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: Currently, Tools/gdb/libpython.py uses PyFramePtr.iter_locals() which iterates on PyFrameObject.f_frame.localsplus. There is a PyFramePtr.get_var_by_name() function which only checks for frame variables in PyFrameObject.f_frame.localsplus, or look up

[issue47092] [C API] Add PyFrame_GetVar(frame, name) function

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: > In Python 3.10, it's possible to call PyFrame_FastToLocalsWithError() on a > frame to get all variables as a dictionary. In 2018, it was decided to *not* document this function: see bpo-19431. In C, It is possible to call PyObject_GetAttrString

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-47092: [C API] Add PyFrame_GetVar(frame, name) function. -- ___ Python tracker <https://bugs.python.org/issue40

[issue47092] [C API] Add PyFrame_GetVar(frame, name) function

2022-03-22 Thread STINNER Victor
New submission from STINNER Victor : In Python 3.10, it's possible to call PyFrame_FastToLocalsWithError() on a frame to get all variables as a dictionary. In Python, getting frame.f_locals calls PyFrame_FastToLocalsWithError(). It's used by the pdb module for example

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: Thank you Andrew! -- ___ Python tracker <https://bugs.python.org/issue47076> ___ ___ Python-bugs-list mailing list Unsub

[issue47000] Make encoding="locale" uses locale encoding even in UTF-8 mode is enabled.

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: I propose: * sys.getfilesystemencoding(): Python filesystem encoding, return "UTF-8" if the Python UTF-8 Mode is enabled * Implementation: PyConfig.filesystem_encoding * https://docs.python.org/dev/library/sys.html#sys.getfilesystemencoding

[issue47000] Make encoding="locale" uses locale encoding even in UTF-8 mode is enabled.

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: > But some user want to use UTF-8 mode to change default encoding in their > Python environments without waiting Python default encoding changed. IMO it's a different use case and it should be a different thing. Changing encoding="locale" t

[issue47000] Make encoding="locale" uses locale encoding even in UTF-8 mode is enabled.

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: > Is it safe to use `locale.getlocale(locale.LC_CTYPE)[1] or "UTF-8"`? I would like to deprecate getlocale(), see bpo-43557. -- ___ Python tracker <https://bugs.pytho

[issue25489] sys.exit() caught in async event loop exception handler

2022-03-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue25489> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46857] Python leaks one reference at exit on Windows

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: The last leak of a memory block on Windows was fixed by: New changeset 88872a29f19092d2fde27365af230abd6d301941 by Jeremy Kloth in branch 'main': bpo-47084: Clear Unicode cached representations on finalization (GH-32032) https://github.com/python/cpython

[issue47084] Statically allocated Unicode objects leak cached representations

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: > The newly implemented statically allocated Unicode objects do not clear their > cached representations (wstr and utf-8) at exit causing leaked blocks at exit > (see also issue46857). Good job to discover this single leaking memory a

[issue47084] Statically allocated Unicode objects leak cached representations

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 88872a29f19092d2fde27365af230abd6d301941 by Jeremy Kloth in branch 'main': bpo-47084: Clear Unicode cached representations on finalization (GH-32032) https://github.com/python/cpython/commit/88872a29f19092d2fde27365af230abd6d301941

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed

2022-03-21 Thread STINNER Victor
STINNER Victor added the comment: It's a Linux kernel 5.17 regression on static-pie programs affecting AArch64: https://bugzilla.kernel.org/show_bug.cgi?id=215720 -- ___ Python tracker <https://bugs.python.org/issue47

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-21 Thread STINNER Victor
STINNER Victor added the comment: > Again a relative short timeouts and super slow test boxes. The problem is more that a sleep is not a reliable synchronization primitive: https://pythondev.readthedocs.io/unstable_tests.html#don-t-use-sleep-as-synchronizat

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed

2022-03-21 Thread STINNER Victor
STINNER Victor added the comment: I still reproduce the issue after an upgrade to the Linux kernel: 5.17.0-0.rc8.20220318git551acdc3c3d2.125.fc37.aarch64 -- ___ Python tracker <https://bugs.python.org/issue47

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: Oh, the kernel was also upgraded. /var/log/dnf.log: --- 2022-03-18T19:32:05+0100 DEBUG Installed: kernel-5.17.0-0.rc8.123.fc37.aarch64 --- == Build 440 (old, ok) == https://buildbot.python.org/all/#/builders/245/builds/440 os.uname: posix.uname_result

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: Fedora glibc issue: https://bugzilla.redhat.com/show_bug.cgi?id=2066147 -- ___ Python tracker <https://bugs.python.org/issue47

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: /var/log/dnf.log: 2022-03-18T19:32:05+0100 DEBUG Upgraded: glibc-2.35.9000-11.fc37.aarch64 ... 2022-03-20T06:55:49+0100 DDEBUG Cleaning up. 2022-03-20T06:55:49+0100 DDEBUG /var/cache/dnf/rawhide-135a69fc59e3201d/packages/glibc-2.35-2.fc37.aarch64.rpm

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: # rpm -qf /sbin/ldconfig glibc-2.35.9000-11.fc37.aarch64 -- ___ Python tracker <https://bugs.python.org/issue47078> ___ ___

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed

2022-03-20 Thread STINNER Victor
Change by STINNER Victor : -- title: test_ctypes modified files on aarch64 Fedora Rawhide 3.9 -> test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed ___ Python tracker <https://bugs.python.org/issu

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9

2022-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +cstratak ___ Python tracker <https://bugs.python.org/issue47078> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9

2022-03-20 Thread STINNER Victor
New submission from STINNER Victor : aarch64 Fedora Rawhide 3.9: https://buildbot.python.org/all/#/builders/245/builds/445 It seems like the "ldconfig" command crashed (signal 11: SIGSEGV). ldconfig is used by _findSoname_ldconfig() of ctypes.util which runs the "/sbin/ldcon

[issue47077] test_asyncio ignores exception in _ProactorBasePipeTransport.__del__: RuntimeError('Event loop is closed')

2022-03-20 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Windows8.1 Refleaks 3.x: https://buildbot.python.org/all/#/builders/511/builds/274 Logs (reformatted manually): --- 0:52:04 load avg: 4.31 [147/433/1] test_asyncio failed (env changed) (41 min 6 sec) -- running: test_io (3 min 8 sec) beginning 6

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: > Recent change related to this test: commit > e707ceb6e464b24ddc9fdbdac7bfe15f7eeb43fd This change comes from bpo-47035 "Rewrite asyncio queue tests with IsolatedAsyncioTestCase". -- ___ Python

[issue47035] Rewrite asyncio queue tests with IsolatedAsyncioTestCase

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: Please have a look at bpo-47076 "test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x". -- nosy: +vstinner ___ Python tracker <https://bugs.python.o

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-20 Thread STINNER Victor
New submission from STINNER Victor : x86-64 macOS 3.x failures: * https://buildbot.python.org/all/#/builders/366/builds/2085 * https://buildbot.python.org/all/#/builders/366/builds/2078 * https://buildbot.python.org/all/#/builders/366/builds/2077 * https://buildbot.python.org/all/#/builders

[issue47075] test_multiprocessing_spawn leaks QueueManager dangling processes

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: Recent failures. AMD64 FreeBSD Non-Debug 3.x: https://buildbot.python.org/all/#/builders/172/builds/1654 --- Warning -- Dangling processes: {} Warning -- Dangling processes: {} 1 test altered the execution environment: test_multiprocessing_spawn

[issue47075] test_multiprocessing_spawn leaks QueueManager dangling processes

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: BaseManager._finalize_manager() timeout should be configurable, the test should use the same timeout than support.wait_process() (SHORT_TIMEOUT), and maybe the default timeout should be increased? I propose to use the same timeout for the two process.join

[issue47075] test_multiprocessing_spawn leaks QueueManager dangling processes

2022-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +erlendaasland, pablogsal ___ Python tracker <https://bugs.python.org/issue47075> ___ ___ Python-bugs-list mailing list Unsub

[issue47075] test_multiprocessing_spawn leaks QueueManager dangling processes

2022-03-20 Thread STINNER Victor
New submission from STINNER Victor : Apply attached manager_timeout.patch and run the command: ./python -m test --fail-env-changed test_multiprocessing_spawn -v -m test_rapid_restart -F -j4 If you fail to reproduce the issue, replace -j4 with -j10 or use a larger number of concurrent

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset e63894b3eed8ad2dd7690695f7f07bfbff59c05a by Victor Stinner in branch 'main': bpo-46850: Remove _PyEval_CallTracing() function (GH-32019) https://github.com/python/cpython/commit/e63894b3eed8ad2dd7690695f7f07bfbff59c05a

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30107 pull_request: https://github.com/python/cpython/pull/32019 ___ Python tracker <https://bugs.python.org/issue46

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9087243e2c167e38570e819b228efc3492c38c9c by Victor Stinner in branch 'main': bpo-46850: Remove _PyEval_GetCoroutineOriginTrackingDepth() (GH-32018) https://github.com/python/cpython/commit/9087243e2c167e38570e819b228efc3492c38c9c

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30106 pull_request: https://github.com/python/cpython/pull/32018 ___ Python tracker <https://bugs.python.org/issue46

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 332b04bac35cd7305c60da2d5733940dc089949a by Victor Stinner in branch 'main': bpo-46850: Remove _PyEval_SetAsyncGenFinalizer() (GH-32017) https://github.com/python/cpython/commit/332b04bac35cd7305c60da2d5733940dc089949a

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30105 pull_request: https://github.com/python/cpython/pull/32017 ___ Python tracker <https://bugs.python.org/issue46

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix Pablo. -- priority: release blocker -> ___ Python tracker <https://bugs.python.org/issue46968> ___ _

[issue45979] Fix Tkinter tests with old Tk

2022-03-18 Thread STINNER Victor
STINNER Victor added the comment: Python 3.10 didn't get a fix? https://github.com/python/cpython/pull/31939 was closed, not merged. -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/issue45

[issue46994] Accept explicit contextvars.Context in asyncio create_task() API

2022-03-18 Thread STINNER Victor
STINNER Victor added the comment: Nice enhancement! -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/issue46994> ___ ___ Python-bugs-list mailin

[issue18309] Make python slightly more relocatable

2022-03-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue18309> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 Thread STINNER Victor
STINNER Victor added the comment: > Commit 393e2bf6bc6effbfe821f051a230978f0edd70df has broken CPython in RedHat 6 Too bad that we want to support RHEL 6 but have no buildbot for that. -- ___ Python tracker <https://bugs.python.org/issu

[issue45786] Avoid allocating when exiting frame; it may be unsafe.

2022-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2217462bda1865a047d358306088682ee6a091ed by Victor Stinner in branch 'main': bpo-45786: Remove _PyFrame_Fini() and _PyFrame_DebugMallocStats() (GH-31874) https://github.com/python/cpython/commit/2217462bda1865a047d358306088682ee6a091ed

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: Ned Deily: > My apologies for not testing running the test suite with installed Pythons as > I usually do and thanks, Victor, for noting the buildbot failures. Well, the change didn't land into a Python release. Right now, the test suite is on

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks Oleg Iarygin for the cleanup! -- ___ Python tracker <https://bugs.python.org/issue46920> ___ ___ Python-bugs-list mailin

[issue31415] Add -X option to show import time

2022-03-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29973 pull_request: https://github.com/python/cpython/pull/31875 ___ Python tracker <https://bugs.python.org/issue31

[issue45786] Avoid allocating when exiting frame; it may be unsafe.

2022-03-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 2.0 -> 3.0 pull_requests: +29972 pull_request: https://github.com/python/cpython/pull/31874 ___ Python tracker <https://bugs.python.org/issu

[issue47013] test_bdb and test_distutils fail on installed Python 3.9, 3.10 and 3.11 (setuptools 60.9.3, pip 22.0.4)

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: > $ ./configure --prefix /opt/py310 && make clean && make && make install > $ cd /somewhere/else/ > $ /opt/py310/bin/python3 -m test -v test_bdb I also reproduce test_bdb and test_dist

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: > This update broke the "s390x Fedora Rawhide Clang Installed 3.10" buildbot: > bpo-47013. test_bdb and test_distutils fail on 3.9, 3.10 and main branches when run on an installed Python. I didn't

[issue47013] test_bdb and test_distutils fail on installed Python 3.9, 3.10 and 3.11 (setuptools 60.9.3, pip 22.0.4)

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: AMD64 Fedora Stable Clang Installed 3.x: https://buildbot.python.org/all/#builders/350/builds/1621 2 re-run tests: test_bdb test_distutils -- title: test_bdb and test_distutils fail on installed Python 3.9 and 3.10 (setuptools 60.9.3, pip 22.0.4

[issue47013] test_bdb and test_distutils fail on installed Python 3.9 and 3.10 (setuptools 60.9.3, pip 22.0.4)

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: x86 Gentoo Installed with X 3.9: https://buildbot.python.org/all/#builders/527/builds/474 4 tests failed: test_bdb test_distutils test_importlib test_peg_generator Python 3.9 gets two more issues: test_importlib and test_peg_generator

[issue47013] 3.10: test_bdb test_distutils fail on s390x Fedora Rawhide Clang Installed 3.10

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: See: [BUG] Having setuptools installed causes cpython stdlib build to fail https://github.com/pypa/setuptools/issues/3007 -- ___ Python tracker <https://bugs.python.org/issue47

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: This update broke the "s390x Fedora Rawhide Clang Installed 3.10" buildbot: bpo-47013. -- nosy: +vstinner ___ Python tracker <https://bugs.python.o

[issue47013] 3.10: test_bdb test_distutils fail on s390x Fedora Rawhide Clang Installed 3.10

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: Reproduce: $ ./configure --prefix /opt/py310 && make clean && make && make install $ cd /somewhere/else/ $ /opt/py310/bin/python3 -m test -v test_bdb ... FAIL: test_skip (test.test_bdb.StateTestCase) ... $ /opt/py310/bin/python3 -

[issue47013] 3.10: test_bdb test_distutils fail on s390x Fedora Rawhide Clang Installed 3.10

2022-03-14 Thread STINNER Victor
New submission from STINNER Victor : Since build 298, test_bdb test_distutils fail on s390x Fedora Rawhide Clang Installed 3.10: https://buildbot.python.org/all/#/builders/694/builds/298 2 changes of build 298: * bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)(21 hours ago

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: Can this issue be closed? Or is there remaining dead code that you want to remove? -- ___ Python tracker <https://bugs.python.org/issue46

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 13b041222399152acb555337572bd1d571734984 by Oleg Iarygin in branch 'main': bpo-46920: Remove code that has explainers why it was disabled (GH-31813) https://github.com/python/cpython/commit/13b041222399152acb555337572bd1d571734984

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset a52f82baf246e2fbbc58fe03ef7a51f3cc9514e1 by Oleg Iarygin in branch 'main': bpo-46920: Remove disabled debug code added decades ago and likely unnecessary (GH-31812) https://github.com/python/cpython/commit

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset e885ac3d5f2fd83617ab75a098aab269b7a446c3 by Oleg Iarygin in branch 'main': bpo-46920: Remove code that has no explainer why it was disabled (GH-31814) https://github.com/python/cpython/commit/e885ac3d5f2fd83617ab75a098aab269b7a446c3

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: msgpack and bitstruct use the newly added functions: my two PRs got merged. msgpack was my main motivation to add these functions :-) Thanks to great reviews, the functions got a new better documentation! I close the issue. Thanks again for reviews

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 11c25b87aeed162d422bc18530fe9699f311e586 by Victor Stinner in branch 'main': bpo-46906: Mention native endian in PyFloat_Pack8() doc (GH-31866) https://github.com/python/cpython/commit/11c25b87aeed162d422bc18530fe9699f311e586

[issue40735] test_nntplib depends on unreliable external servers

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: It tomorrow a test_nntplib test fails too often, I suggest to simply skip it, since PEP 594 is accepted. Especially tests using external real NNTP servers. -- ___ Python tracker <https://bugs.python.

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2022-03-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue37355> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47000] Make encoding="locale" uses locale encoding even in UTF-8 mode is enabled.

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: There are multiple "locale encodings": * "current" locale encoding: locale.nl_langinfo(locale.CODESET) * "Python" locale encoding: locale.getpreferredencoding(False), ignore the locale in UTF-8 Mode (always return "UT

[issue47000] Make encoding="locale" uses locale encoding even in UTF-8 mode is enabled.

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: > So I think `encoding="locale"` should use real locale encoding (ACP on > Windows) regardless UTF-8 mode is enabled or not. If you want to change the default, would it be possible to add a function to g

[issue37907] speed-up PyLong_As*() for large longs

2022-03-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue37907> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18309] Make python slightly more relocatable

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.11, Modules/getpath.c has been rewritten in Python: Modules/getpath.py. Maybe it's now simpler to hack this file. But you must rebuild Python to take changes in account. -- ___ Python tracker <ht

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29964 pull_request: https://github.com/python/cpython/pull/31866 ___ Python tracker <https://bugs.python.org/issue46

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: > So where getauxval(AT_MINSIGSTKSZ) < SIGSTKSZ the merged changes actually > resulted in decrease of the allocated signal deliver stack. faulthandler stack is only used in the least likely case: on a fatal error. It should reduce its memory foot

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: On my x86-64 Fedora 35 with the CPU "Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz", I get: * SIGSTKSZ = 8192 * getauxval(AT_MINSIGSTKSZ) = 2032 * faulthandler stack.ss_size = 10224 * os.sysconf('SC_MINSIGSTKSZ') = 2032 In C, sysconf(_SC_MINSIGSTKSZ)

[issue46915] Build with Py_LIMITED_API fails unknown type name ‘PyModuleDef_Slot’

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: > Fixed by > https://github.com/python/cpython/commit/0b63215bb152c06404cecbd5303b1a50969a9f9f This change is now part of Python 3.11 alpha6 released a few days ago. Python 3.11a6 news entries were merged into the Misc/NEWS.d/3.11.0a6.rst file. &g

[issue45274] Race condition in Thread._wait_for_tstate_lock()

2022-03-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue45274> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29971] threading.Lock.acquire() not interruptible on Windows

2022-03-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue29971> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: zodbpickle issue: https://github.com/zopefoundation/zodbpickle/issues/67 -- ___ Python tracker <https://bugs.python.org/issue46

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: PR for bitstruct: https://github.com/eerimoq/bitstruct/pull/26 -- ___ Python tracker <https://bugs.python.org/issue46

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29929 pull_request: https://github.com/python/cpython/pull/31832 ___ Python tracker <https://bugs.python.org/issue46

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: PR for msgpack: https://github.com/msgpack/msgpack-python/pull/499 -- ___ Python tracker <https://bugs.python.org/issue46

<    1   2   3   4   5   6   7   8   9   10   >