https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
2305ca5 Python 3.12.1 07 December 2023, 20:46:47 UTC
c0fc88f [3.12] gh-112826: Fix the threading Module When _thread is Missing _is_main_interpreter() (#112850) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 07 December 2023, 20:15:20 UTC
34e9e20 [3.12] gh-79325: Fix recursion error in TemporaryDirectory cleanup on Windows (GH-112762) (GH-112847) (cherry picked from commit b2923a61a10dc2717f4662b590cc9f6d181c6983) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 07 December 2023, 17:36:29 UTC
418adf6 [3.12] gh-87319: Simplify TemporaryDirectory cleanup using os.path.isjunction() (GH-112791) (GH-112845) (cherry picked from commit ba18893555bbf69b1da262aaf85d65e4b67e8955) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 07 December 2023, 17:17:27 UTC
6ceb8ae [3.12] gh-91133: tempfile.TemporaryDirectory: fix symlink bug in cleanup (GH-99930) (GH-112838) (cherry picked from commit 81c16cd94ec38d61aa478b9a452436dc3b1b524d) Co-authored-by: Søren Løvborg <sorenl@unity3d.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 07 December 2023, 16:35:50 UTC
8f1c912 [3.12] gh-110190: Temporarily skip new test introduced in gh-112604 on PPC64LE (GH-112818) (#112829) (cherry picked from commit 9f67042f28bf886a9bf30fed6795d26cff255f1e) Co-authored-by: Łukasz Langa <lukasz@langa.pl> 07 December 2023, 14:07:45 UTC
f272716 [3.12] gh-112125: Fix None.__ne__(None) returning NotImplemented instead of … (#112827) gh-112125: Fix None.__ne__(None) returning NotImplemented instead of False (#112504) (cherry picked from commit 9c3458e05865093dd55d7608810a9d0ef0765978) Co-authored-by: andrewluotechnologies <44252973+andrewluotechnologies@users.noreply.github.com> 07 December 2023, 13:41:00 UTC
e21a7a9 [3.12] gh-109981: Fix support.fd_count() on macOS 14 (GH-112797) (#112824) gh-109981: Fix support.fd_count() on macOS 14 (GH-112797) Use scanning "/dev/fd/" on macOS in support.fd_count(). That's both more efficient than scanning all possible file descriptors, and avoids crashing the interpreter when there are open "guarded" file descriptors. "Guarded" file descriptors are a macOS feature where file descriptors used by system libraries are marked and cause hard crashes when used by "user" code. (cherry picked from commit 953ee622b3901d3467e65e3484dcfa75ba6fcddf) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: Victor Stinner <vstinner@python.org> 07 December 2023, 10:28:26 UTC
ca11aec [3.12] gh-101100: Improve documentation of code object attributes (#112781) (#112816) (cherry-picked from commit e9707d3c3d) 06 December 2023, 22:11:53 UTC
af7cf38 [3.12] gh-101100: Fix Sphinx nitpicks in `library/reprlib.rst` (GH-112811) (#112813) gh-101100: Fix Sphinx nitpicks in `library/reprlib.rst` (GH-112811) (cherry picked from commit 3870d19d151c31d77b737d6a480aa946b4e87af6) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 06 December 2023, 20:22:42 UTC
f941ecf [3.12] gh-110190: Fix ctypes structs with array on Arm (#112604) (#112767) Set MAX_STRUCT_SIZE to 32 in stgdict.c when on Arm platforms. This because on Arm platforms structs with at most 4 elements of any floating point type values can be passed through registers. If the type is double the maximum size of the struct is 32 bytes. On x86-64 Linux, it's maximum 16 bytes hence we need to differentiate. (cherry picked from commit bc68f4a4abcfbea60bb1db1ccadb07613561931c) 06 December 2023, 15:57:34 UTC
f189bd3 [3.12] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH-111322) (GH-112802) Previously, "widget.unbind(sequence, funcid)" destroyed the current binding for "sequence", leaving "sequence" unbound, and deleted the "funcid" command. Now it removes only "funcid" from the binding for "sequence", keeping other commands, and deletes the "funcid" command. It leaves "sequence" unbound only if "funcid" was the last bound command. (cherry picked from commit cc7e45cc572dd818412a649970fdee579417701f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: GiovanniL <13402461+GiovaLomba@users.noreply.github.com> 06 December 2023, 15:12:37 UTC
399a3f2 [3.12] gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructor` parameters in slot typedefs table (GH-112742) (GH-112792) gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructor` parameters in slot typedefs table (GH-112742) In the slot typedefs table, the parameter of `destructor` and the first parameter of `traverseproc` should both be `PyObject *` rather than `void *`. Same for `inquiry`. (cherry picked from commit 00cce0fe495ee820cd3ca5878bdbe3dd65b1be7b) Co-authored-by: Christopher Chavez <chrischavez@gmx.us> 06 December 2023, 10:03:22 UTC
7527cda [3.12] gh-101100: Fix most Sphinx nitpicks in the glossary and `stdtypes.rst` (GH-112757) (#112789) gh-101100: Fix most Sphinx nitpicks in the glossary and `stdtypes.rst` (GH-112757) (cherry picked from commit e3f670e13792305cfb977d5cffd8e6aa03e8fe7f) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 06 December 2023, 08:50:30 UTC
cf16aaa [3.12] gh-108927: Include new dir test/regrtestdata in the installation (GH-112765) (GH-112785) (cherry picked from commit f8c0198e3bfa2f6f65e426765a5efddd8ece78b0) Co-authored-by: Victor Stinner <vstinner@python.org> 06 December 2023, 08:14:34 UTC
5720f7f [3.12] gh-112769: test_zlib: Fix comparison of ZLIB_RUNTIME_VERSION with non-int suffix (GH-112771) (GH-112773) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813ff18b33280a90b6d2011654528a2b6ad1) Co-authored-by: Miro Hrončok <miro@hroncok.cz> 05 December 2023, 20:03:00 UTC
ef92e9e [3.12] gh-101100: Properly document frame object attributes (GH-112735) (#112772) gh-101100: Properly document frame object attributes (GH-112735) (cherry picked from commit d109f637c048c2b5fc95dc7fdfd50f8ac41a7747) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 05 December 2023, 19:34:06 UTC
e63bb9c [3.12] bpo-35332: Handle os.close() errors in shutil.rmtree() (GH-23766) (GH-112763) * Ignore os.close() errors when ignore_errors is True. * Pass os.close() errors to the error handler if specified. * os.close no longer retried after error. (cherry picked from commit 11d88a178b077e42025da538b890db3151a47070) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 05 December 2023, 17:38:44 UTC
5acfb82 [3.12] bpo-43153: Don't mask `PermissionError` with `NotADirectoryError` during tempdirectory cleanup (GH-29940) (GH-112753) (cherry picked from commit 8cdfee1bb902fd1e38d79170b751ef13a0907262) Co-authored-by: Ken Jin <kenjin@python.org> Co-authored-by: andrei kulakov <andrei.avk@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 05 December 2023, 13:58:36 UTC
68f05dd [3.12] gh-101100: Fix many easily solvable Sphinx nitpicks in the datamodel docs (GH-112737) (#112748) gh-101100: Fix many easily solvable Sphinx nitpicks in the datamodel docs (GH-112737) (cherry picked from commit 2f20cafdbfc39925f9374f36f9d53bac365ed32a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 05 December 2023, 10:06:11 UTC
f1a0c77 [3.12] gh-62897: Update PyUnicode C API parameter names (GH-12680) (GH-112744) Standardize PyUnicode C API parameter names across the documentation. (cherry picked from commit b31232ddf7f219ca8ff9e8d0401c02eb0b6ffec3) Co-authored-by: Rune Tynan <runetynan@gmail.com> 05 December 2023, 09:30:44 UTC
85bbfa8 [3.12] gh-112334: Restore subprocess's use of `vfork()` & fix `extra_groups=[]` behavior (GH-112617) (#112731) Restore `subprocess`'s intended use of `vfork()` by default for performance on Linux; also fixes the behavior of `extra_groups=[]` which was unintentionally broken in 3.12.0: Fixed a performance regression in 3.12's :mod:`subprocess` on Linux where it would no longer use the fast-path ``vfork()`` system call when it could have due to a logic bug, instead falling back to the safe but slower ``fork()``. Also fixed a security bug introduced in 3.12.0. If a value of ``extra_groups=[]`` was passed to :mod:`subprocess.Popen` or related APIs, the underlying ``setgroups(0, NULL)`` system call to clear the groups list would not be made in the child process prior to ``exec()``. The security issue was identified via code inspection in the process of fixing the first bug. Thanks to @vain for the detailed report and analysis in the initial bug on Github. (cherry picked from commit 9fe7655c6ce0b8e9adc229daf681b6d30e6b1610) + Reword NEWS for the bugfix/security release. (mentions the assigned CVE number) Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 04 December 2023, 23:33:59 UTC
494cd50 [3.12] gh-112671: Fixing typo in the Macro Docs (GH-112715) (GH-112726) Replace Py_T_STRING_INLINE with Py_T_STRING_INPLACE (cherry picked from commit a8ce149628c9eaafb8c38fbf25fbd1ed483d2902) Co-authored-by: Amioplk <amir.worms@dauphine.eu> 04 December 2023, 20:58:04 UTC
88ec2a4 [3.12] gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-112615) (#112724) gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-112615) Work around a macOS bug, limit zlib crc32 calls to 1GiB. Without this, `zlib.crc32` and `binascii.crc32` could produce incorrect results on multi-gigabyte inputs depending on the macOS version's Apple supplied zlib implementation. (cherry picked from commit 4eddb4c9d9452482c9af7fa9eec223d12b5a9f33) Co-authored-by: Gregory P. Smith <greg@krypto.org> 04 December 2023, 20:29:23 UTC
8d21242 [3.12] gh-108927: Fix removing testing modules from sys.modules (GH-108952) (ПР-112711) It breaks import machinery if the test module has submodules used in other tests. (cherry picked from commit e08b70fab1fbc45fa498020aac522ae1d5da6136) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 04 December 2023, 16:17:38 UTC
f49d073 [3.12] gh-101100: Fix Sphinx nitpicks in `library/abc.rst` (#112703) (#112705) (cherry-picked from commit 9560e0d6d7a316341939b4016e47e03bd5bf17c3) 04 December 2023, 13:12:38 UTC
55896f4 [3.12] gh-109786: Fix leaks and crash when re-enter itertools.pairwise.__next__() (GH-109788) (GH-112699) (cherry picked from commit 6ca9d3e0173c38e2eac50367b187d4c1d43f9892) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 04 December 2023, 12:15:41 UTC
8d1b3c0 [3.12] gh-101100: Fix Sphinx nitpicks in `library/functions.rst` (GH-112669) (#112697) gh-101100: Fix Sphinx nitpicks in `library/functions.rst` (GH-112669) (cherry picked from commit cda737924fd616c4e08027888258f97e81f34447) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 04 December 2023, 12:11:26 UTC
09b3e8f [3.12] gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` (#109814) (#112702) (cherry-picked from commit f2eaa92b0cc5a37a9e6010c7c6f5ad1a230ea49b) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 04 December 2023, 12:04:48 UTC
e005dab [3.12] gh-106550: Fix sign conversion in pycore_code.h (GH-112613) (#112696) gh-106550: Fix sign conversion in pycore_code.h (GH-112613) Fix sign conversion in pycore_code.h: use unsigned integers and cast explicitly when needed. (cherry picked from commit a74902a14cdc0952abf7bfabcf529c9b132c5cce) Co-authored-by: Victor Stinner <vstinner@python.org> 04 December 2023, 11:14:13 UTC
29a5ff0 [3.12] gh-112625: Protect bytearray from being freed by misbehaving iterator inside bytearray.join (GH-112626) (GH-112693) (cherry picked from commit 0e732d0997cff08855d98c17af4dd5527f10e419) Co-authored-by: chilaxan <chilaxan@gmail.com> 04 December 2023, 08:46:40 UTC
bfad957 [3.12] gh-112678: Declare `Tkapp_CallDeallocArgs()` as `static` (GH-112679) (GH-112690) (cherry picked from commit 23e001fa9f1897ba3384c02bbbe634313358a549) Co-authored-by: Christopher Chavez <chrischavez@gmx.us> 04 December 2023, 08:21:28 UTC
838e968 [3.12] gh-66819: More IDLE htest updates(4) (GH-112686) (#112688) Mostly double spacing before 'if __name__...'. (cherry picked from commit e5b0db0315941b968ebcc2414bfcdd2da44fd3c2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 04 December 2023, 07:08:01 UTC
55a4bb9 [3.12] gh-66819: More IDLE htest updates(3) (GH-112683) (#112684) Revise spec-callable pairs from percolator to end. (cherry picked from commit 5a1b5316af648ae79bb91f28253b6272bbbd2886) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 04 December 2023, 05:10:19 UTC
da73a5c [3.12] gh-101100: Fix Sphinx warning in `library/gettext.rst` (GH-112668) (#112674) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 03 December 2023, 20:32:57 UTC
5608112 [3.12] gh-101100: Fix most Sphinx nitpicks in `inspect.rst` (GH-112662) (#112666) gh-101100: Fix most Sphinx nitpicks in `inspect.rst` (GH-112662) (cherry picked from commit 45650d1c479a8b0370f126d821718dd3c502f333) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 03 December 2023, 17:39:26 UTC
ee3ef7f [3.12] gh-66819: More IDLE htest updates(2) (GH-112642) (#112643) Examine and update spec -- callable pairs. Revise run method. (cherry picked from commit 3855b45874d5f8eb92a4957fb9de6fdce63eb760) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 03 December 2023, 16:34:08 UTC
f5965c2 [3.12] gh-112645: remove deprecation warning for use of onerror in shutil.rmtree (#112659) (#112665) gh-112645: remove deprecation warning for use of onerror in shutil.rmtree (#112659) (cherry picked from commit 97857ac0580057c3a4f75d34209841c81ee11a96) 03 December 2023, 16:28:57 UTC
b3b2706 [3.12] Fix link to 'The Perils of Floating Point', on the tutorial (GH-112499) (GH-112664) Use author link to 'The Perils of Floating Point'. (cherry picked from commit c27b09c81368bc3b756e94a79a39307ce44a4a2c) Co-authored-by: Marco Aurélio A. Barbosa <aureliobarbosa@gmail.com> 03 December 2023, 15:20:13 UTC
12083c0 [3.12] Run more `inspect.rst` code snippets in CI (GH-112654) (#112655) Run more `inspect.rst` code snippets in CI (GH-112654) (cherry picked from commit 4ed46d224401243399b41c7ceef4532bd249da27) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 03 December 2023, 11:57:15 UTC
34d57d5 [3.12] gh-106560: Fix redundant declarations in Python/frozen.c (#112612) (#112651) gh-106560: Fix redundant declarations in Python/frozen.c (#112612) Avoid duplicated declarations of "extern" functions in Python/frozen.c. Compiler warnings seen by building Python with gcc -Wredundant-decls. (cherry picked from commit d9e444dbb86e173ee5b8491e3facbd447b91eaed) 03 December 2023, 11:54:59 UTC
05f5d41 [3.12] gh-106560: Fix redundant declarations in Include/ (#112611) (#112650) gh-106560: Fix redundant declarations in Include/ (#112611) Don't declare PyBool_Type and PyLong_Type twice, but only once. Compiler warnings seen by building Python with gcc -Wredundant-decls. 03 December 2023, 11:45:32 UTC
73cda99 [3.12] gh-112578: Fix RuntimeWarning when running zipfile (GH-112579) (GH-112646) (cherry picked from commit 29e6c7b68acac628b084a82670708008be262379) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 03 December 2023, 11:41:50 UTC
6221482 [3.12] gh-112316: improve docs for `inspect.signature` and `inspect.Signature` (#112631) (#112649) (cherry-picked from commit fc9e24b01fb7da4160b82cef26981d72bb678c13) 03 December 2023, 11:26:53 UTC
2a378ca [3.12] gh-112618: Make Annotated cache typed (#112619) (#112628) 03 December 2023, 00:41:03 UTC
e3c7947 [3.12] gh-112316: Improve docs of `inspect.signature` and `Signature.from_callable` (#112317) (#112629) gh-112316: Improve docs of `inspect.signature` and `Signature.from_callable` (#112317) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 02 December 2023, 22:38:11 UTC
acc62db [3.12] gh-109413: libregrtest: Backport `.py`-file changes from #112558 (#112605) 01 December 2023, 18:54:38 UTC
36dbebe [3.12] gh-109413: libregrtest: enable mypy's `--strict-optional` check on most files (#112586) (#112602) gh-109413: libregrtest: enable mypy's `--strict-optional` check on most files (#112586) Co-authored-by: Victor Stinner <vstinner@python.org> 01 December 2023, 17:13:22 UTC
4fc010c [3.12] Bump mypy to 1.7.1 (#112581) (#112601) 01 December 2023, 17:10:38 UTC
11232c1 [3.12] gh-112367: Only free perf trampoline arenas at shutdown (GH-112368) (#112590) (cherry picked from commit a73aa48e6bec900be7edd3431deaa5fc1d809e6f) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> 01 December 2023, 16:05:31 UTC
4f919cf [3.12] gh-109413: regrtest: add WorkerRunTests class (GH-112588) (#112593) gh-109413: regrtest: add WorkerRunTests class (GH-112588) (cherry picked from commit f8ff80f63536e96b004d29112452a8f1738fde37) Co-authored-by: Victor Stinner <vstinner@python.org> 01 December 2023, 14:46:42 UTC
7eff607 [3.12] gh-111058: Change coro.cr_frame/gen.gi_frame to be None for a closed coroutine/generator. (GH-112428) (#112589) 01 December 2023, 14:13:15 UTC
edce0c4 [3.12] gh-82565: Add tests for pickle and unpickle with bad files (GH-16606) (GH-112591) (cherry picked from commit 058444308abee79bb1b3358883adfa8c97bd043a) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 01 December 2023, 14:12:46 UTC
ae1ea41 [3.12] gh-104231: Add more tests for str(), repr(), ascii(), and bytes() (GH-112551) (GH-112555) (cherry picked from commit 2223899adce858a09ebeaaf82111e6cda9b42415) 01 December 2023, 08:16:47 UTC
88d9142 [3.12] gh-66819: More IDLE htest updates (GH-112574) (#112575) Revise htest.py docstring and move 2 specs to alphabetical position. (cherry picked from commit e44f1940bd6d2ba4a3f8ac4585b3cf4f9cb93e49) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 01 December 2023, 07:20:28 UTC
a99305e [3.12] gh-112356: LOAD_GLOBAL can only include one PUSH_NULL (#112566) 01 December 2023, 00:35:49 UTC
4c9da4c [3.12] gh-111699: Move smtpd note to dedicated section in What's New Python 3.12 doc (GH-112544) (GH-112552) Relocate smtpd deprecation notice to it's own section rather than under 'locale' in docs for What's New in Python 3.12 doc (cherry picked from commit 1ff212debdc094c28928011cff9f4eea8de34d44) Co-authored-by: Matt Prodani <mp5908@nyu.edu> 30 November 2023, 13:00:08 UTC
46adf6b [3.12] IDLE: fix config_key htest (GH-112545) (#112546) Change 'Dialog' to 'Window' in two places to match the name of the config_key class being tested. (cherry picked from commit 81261fa67ff82b03c255733b0d1abbbb8a228187) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 30 November 2023, 08:29:59 UTC
749c8fd [3.12] [Enum] update class creation for RuntimeError changes (GH-111815) (GH-112526) (cherry picked from commit f9e6ce03953e9ee988d55324dc715b0ef2303cfb) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> 29 November 2023, 21:49:52 UTC
8f43250 [3.12] Add more C API tests (GH-112522) (GH-112525) Add tests for PyObject_Str(), PyObject_Repr(), PyObject_ASCII() and PyObject_Bytes(). (cherry picked from commit e0449b9a7fffc0c0eed806bf4cbb8f1f65397bbb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 29 November 2023, 20:02:57 UTC
c678126 [3.12] gh-112509: Fix keys being present in both required_keys and optional_keys in TypedDict (GH-112512) (#112530) (cherry picked from commit 403886942376210662610627b01fea6acd77d331) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 29 November 2023, 17:55:06 UTC
01b882b [3.12] gh-110930: Correct book title by Alan D. Moore (GH-112490) (#112523) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 29 November 2023, 15:55:46 UTC
3e6b328 [3.12] gh-112503: Fix test_sys on WASI (gh-112505) Skip tests if no interpreters module.gh-110713 added some tests that use the interpreters module but did not accommodated builds that don't support subinterpreters (incl. an interpreters module). We fix that here by catching ImportError and skipping tests as appropriate. 29 November 2023, 00:36:07 UTC
5b6858c [3.12] gh-105716: Fix Refleaks in test_interpreters (gh-112500) gh-110707 (0122b4d) added some tests that didn't close file descriptors they created, leading to failures on the refleak buildbots. This closes the leaking file descriptors, resolving the failure. 28 November 2023, 19:42:49 UTC
49494c4 [3.12] gh-112431: Unconditionally call `hash -r` (GH-112432) (GH-112493) gh-112431: Unconditionally call `hash -r` (GH-112432) The `activate` script calls `hash -r` in two places to make sure the shell picks up the environment changes the script makes. Before that, it checks to see if the shell running the script is bash or zsh. `hash -r` is specified by POSIX and is not exclusive to bash and zsh. This guard prevents the script from calling `hash -r` in other `GH-!/bin/sh`-compatible shells like dash. (cherry picked from commit a194938f33a71e727e53490815bae874eece1460) Co-authored-by: James Morris <6653392+J-M0@users.noreply.github.com> 28 November 2023, 09:44:03 UTC
e28722e [3.12] gh-109802: Increase test coverage for complexobject.c (GH-112452) (GH-112489) (cherry picked from commit f14d741daa1b9e5b9c9fc1edba93d0fa92b5ba8d) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com> 28 November 2023, 08:33:44 UTC
7225a01 [3.12] gh-112105: Make completer delims work on libedit (gh-112106) (gh-112487) gh-112105: Make completer delims work on libedit (gh-112106) (cherry picked from commit 2df26d83486b8f9ac6b7df2a9a4669508aa61983) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com> 28 November 2023, 06:42:54 UTC
f7251e2 [3.12] gh-111698: Restrict Py_mod_multiple_interpreters to 3.12+ Under Py_LIMITED_API (gh-111707) (gh-111787) This should have been done in gh-104148. (A similar fix has already be done for that slot's value macros, and backported to 3.12. See gh-110968.) (cherry picked from commit 836e0a75d565ecb7e2485fee88dbe67e649a1d5f) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> 28 November 2023, 02:42:27 UTC
0aceac5 [3.12] gh-109894: Fix initialization of static `MemoryError` in subinterpreter (gh-110911) (gh-111238) Fixes GH-109894 * set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call * allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init --------- (cherry picked from commit 47d3e2ed930a9f3d228aed4f62133737dae74cf7) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> 28 November 2023, 02:41:53 UTC
1e1a30f [3.12] gh-110310: Add a Per-Interpreter XID Registry for Heap Types (gh-110311) (gh-110714) We do the following: * add a per-interpreter XID registry (PyInterpreterState.xidregistry) * put heap types there (keep static types in _PyRuntimeState.xidregistry) * clear the registries during interpreter/runtime finalization * avoid duplicate entries in the registry (when _PyCrossInterpreterData_RegisterClass() is called more than once for a type) * use Py_TYPE() instead of PyObject_Type() in _PyCrossInterpreterData_Lookup() The per-interpreter registry helps preserve isolation between interpreters. This is important when heap types are registered, which is something we haven't been doing yet but I will likely do soon. (cherry-picked from commit 80dc39e1dc2abc809f448cba5d2c5b9c1c631e11) 28 November 2023, 02:36:29 UTC
0122b4d [3.12] gh-105716: Support Background Threads in Subinterpreters Consistently (gh-109921) (gh-110707) The existence of background threads running on a subinterpreter was preventing interpreters from getting properly destroyed, as well as impacting the ability to run the interpreter again. It also affected how we wait for non-daemon threads to finish. We add PyInterpreterState.threads.main, with some internal C-API functions. (cherry-picked from commit 1dd9dee45d2591b4e701039d1673282380696849) 28 November 2023, 02:01:05 UTC
82ae5a6 [3.12] gh-109793: Allow Switching Interpreters During Finalization (gh-109794) (gh-110705) Essentially, we should check the thread ID rather than the thread state pointer. 28 November 2023, 00:58:02 UTC
daf9ff9 [3.12] gh-112414: Add additional unit tests for calling `repr()` on a namespace package (GH-112475) (#112480) gh-112414: Add additional unit tests for calling `repr()` on a namespace package (GH-112475) (cherry picked from commit cf2054059c08ef1c5546f24874191f341dc94eb9) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> 28 November 2023, 00:39:01 UTC
c44af75 [3.12] Docs: fix markup for `importlib.machinery.NamespaceLoader` (GH-112479) (#112481) Docs: fix markup for `importlib.machinery.NamespaceLoader` (GH-112479) (cherry picked from commit 2e632fa07d13a58be62f59be4e656ad58b378f9b) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 28 November 2023, 00:21:47 UTC
4f71f16 [3.12] gh-106931: Intern Statically Allocated Strings Globally (gh-107272) (gh-110713) We tried this before with a dict and for all interned strings. That ran into problems due to interpreter isolation. However, exclusively using a per-interpreter cache caused some inconsistency that can eliminate the benefit of interning. Here we circle back to using a global cache, but only for statically allocated strings. We also use a more-basic _Py_hashtable_t for that global cache instead of a dict. Ideally we would only have the global cache, but the optional isolation of each interpreter's allocator means that a non-static string object must not outlive its interpreter. Thus we would have to store a copy of each such interned string in the global cache, tied to the main interpreter. (cherry-picked from commit b72947a8d26915156323ccfd04d273199ecb870c) 27 November 2023, 23:51:12 UTC
60a08e6 [3.12] Correct documentation for AF_PACKET (GH-112339) (#112477) Correct documentation for AF_PACKET (GH-112339) Protocol in the address tuple should *not* be in the network-byte-order, because it is converted internally[1]. [1] https://github.com/python/cpython/blob/89ddea4886942b0c27a778a0ad3f0d5ac5f518f0/Modules/socketmodule.cGH-L2144 network byte order doesn't make sense for a python level int anyways. It's a fixed size C serialization concept. (cherry picked from commit 562d7149c6944fb9e4c7be80664b2f2d5a12a3ea) Co-authored-by: Eugene Toder <eltoder@users.noreply.github.com> 27 November 2023, 23:48:59 UTC
ee7dc67 [3.12] gh-105699: Revert gh-107783 "Re-enable the Multiple-Interpreters Stress Tests" (gh-112474) Revert "[3.12] gh-105699: Re-enable the Multiple-Interpreters Stress Tests (gh-107572) (#107783)" This reverts commit a4aac7d3eafc413ae75f26ca1a1246bdba23c7fb. The stress tests are still failing on FreeBSD. 27 November 2023, 22:39:04 UTC
3135544 [3.12] gh-109853: Fix sys.path[0] For Subinterpreters (gh-109994) (gh-110701) This change makes sure sys.path[0] is set properly for subinterpreters. Before, it wasn't getting set at all. This change does not address the broader concerns from gh-109853. (cherry-picked from commit a040a32ea2f13f16172394d3e3e3f80f47f25a68) 27 November 2023, 22:21:12 UTC
592a849 [3.12] gh-76785: Use Pending Calls When Releasing Cross-Interpreter Data (gh-109556) (gh-112288) This fixes some crashes in the _xxinterpchannels module, due to a race between interpreters. (cherry picked from commit fd7e08a6f35581e1189b9bf12feb51f7167a86c5) 27 November 2023, 21:49:48 UTC
a4aac7d [3.12] gh-105699: Re-enable the Multiple-Interpreters Stress Tests (gh-107572) (#107783) We had disabled them due to crashes they exposed, which have since been fixed. (cherry picked from commit f9e3ff1ea4b2c8b787360409d55f2037652b7456) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: T. Wouters <thomas@python.org> 27 November 2023, 21:48:08 UTC
1cb95cd [3.12] gh-68166: Tkinter: Add tests and examples for element_create() (GH-111453) (GH-111857) * Remove mention of "vsapi" element type from the documentation. * Add tests for element_create() and other ttk.Style methods. * Add examples for element_create() in the documentation. (cherry picked from commit 005d1e8fc81539c60c6b21ebba34de3edd5bb232) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 27 November 2023, 20:14:37 UTC
698b4b7 [3.12] gh-112388: Fix an error that was causing the parser to try to overwrite tokenizer errors (GH-112410) (#112466) gh-112388: Fix an error that was causing the parser to try to overwrite tokenizer errors (GH-112410) (cherry picked from commit 2c8b19174274c183eb652932871f60570123fe99) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> 27 November 2023, 19:02:57 UTC
7140716 [3.12] gh-112387: Fix error positions for decoded strings with backwards tokenize errors (GH-112409) (#112468) gh-112387: Fix error positions for decoded strings with backwards tokenize errors (GH-112409) (cherry picked from commit 45d648597b1146431bf3d91041e60d7f040e70bf) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> 27 November 2023, 18:57:34 UTC
4463d2e [3.12] bpo-41422: Visit the Pickler's and Unpickler's memo in tp_traverse (GH-21664) (GH-112464) (cherry picked from commit 967f2a3052c2d22e31564b428a9aa8cc63dc2a9f) Co-authored-by: kale-smoothie <34165060+kale-smoothie@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 27 November 2023, 18:42:48 UTC
46047bb [3.12] gh-112438: Fix support of format units with the "e" prefix in nested tuples in PyArg_Parse (gh-112439) (GH-112460) (cherry picked from commit 4eea1e82369fbf7a795d1956e7a8212a1b58009f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 27 November 2023, 17:57:30 UTC
3ef75ee [3.12] gh-84443: SSLSocket.recv_into() now support buffer protocol with itemsize != 1 (GH-20310) (GH-112458) It is also no longer use __len__(). (cherry picked from commit 812360fddda86d7aff5823f529ab720f57ddc411) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 27 November 2023, 17:30:53 UTC
a2ed553 [3.12] GH-101100: Fix reference warnings for ``socket`` methods (GH-110114) (#112455) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 27 November 2023, 15:04:18 UTC
a826962 [3.12] Move What's New In Python 3.12 entries to the right section (GH-112447) (#112450) Move What's New In Python 3.12 entries to the right section (GH-112447) Jython and ctypes removals are unrelated to C API Removals. (cherry picked from commit d44ee42cd7c9a40e1d7096b95476fe47156f571f) Co-authored-by: Victor Stinner <vstinner@python.org> 27 November 2023, 12:02:16 UTC
2718947 [3.12] Docs: fix typo in doc for sqlite3.Cursor.execute (GH-112442) (#112444) Docs: fix typo in doc for sqlite3.Cursor.execute (GH-112442) (cherry picked from commit fb79e1ed4a985a487a02bb8585cc1bd2933dfa7c) Co-authored-by: Tom Levy <tomlevy93@gmail.com> 27 November 2023, 09:34:19 UTC
f9861e6 [3.12] gh-112414: Fix `AttributeError` when calling `repr()` on a namespace package imported with a custom loader (GH-112425) (#112440) gh-112414: Fix `AttributeError` when calling `repr()` on a namespace package imported with a custom loader (GH-112425) (cherry picked from commit 0622839cfedacbb48eba27180fd0f0586fe97771) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 27 November 2023, 08:53:57 UTC
42df736 [3.12] gh-112358: Fix Python 3.12 regression with subclassing struct.Struct (GH-112424) (#112426) * [3.12] gh-112358: Fix Python 3.12 regression with subclassing struct.Struct. (GH-112424) Revert commit c8c0afc7137ab9f22bf59d591084948ca967c97c (PR GH-94532), which moved `struct.Struct` initialisation from `Struct.__init__` to `Struct.__new__`. This caused issues with code in the wild that subclasses `struct.Struct`.. (cherry picked from commit 9fe60340d7e8dc22b3aec205c557bc69a1b2d18c) Co-authored-by: Mark Dickinson <dickinsm@gmail.com> * Remove unrelated test 27 November 2023, 08:25:06 UTC
d7a7883 [3.12] gh-101100: Fix Sphinx reference warnings (GH-112416) (#112420) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 26 November 2023, 12:22:13 UTC
b478c5e [3.12] gh-112331: Fix reference manual description of attribute lookup mechanics (gh-112375) (#112412) 25 November 2023, 22:26:31 UTC
2199ceb [3.12] Descriptor HowTo: Sync the error-messages with the C code. Add tests. (gh-112403) (gh-112411) 25 November 2023, 22:24:43 UTC
8b3c66b [3.12] gh-101100 : Fix Sphinx warnings in `library/doctest.rst` (GH-112399) (#112402) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 25 November 2023, 19:26:00 UTC
e93af80 [3.12] gh-94722: fix DocTest.__eq__ for case of no line number on one side (GH-112385) (#112400) gh-94722: fix DocTest.__eq__ for case of no line number on one side (GH-112385) (cherry picked from commit fbb9027a037ff1bfaf3f596df033ca45743ee980) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> 25 November 2023, 17:56:46 UTC
44eb329 [3.12] gh-101100: Define `_tkinter` module to fix references (GH-112382) (#112392) gh-101100: Define `_tkinter` module to fix references (GH-112382) Define _tkinter module to fix references (cherry picked from commit 6b961b8ceaba372b78d03feaceb4837bf7236694) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 25 November 2023, 08:00:21 UTC
4b9d50b [3.12] gh-101100: Define `test.regrtest` module to fix references (GH-112381) (#112390) gh-101100: Define `test.regrtest` module to fix references (GH-112381) Define test.regrtest module to fix references (cherry picked from commit d525d01e2794e7e736527eaa7ee309ca1252f5bd) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 25 November 2023, 07:59:09 UTC
103728d [3.12] gh-59254: mention in open() doc that line buffering is for writing (GH-112318) (#112378) gh-59254: mention in open() doc that line buffering is for writing (GH-112318) (cherry picked from commit fafae08cc7caa25f2bd6b29106b50ef76c3e296f) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> 24 November 2023, 18:15:54 UTC
86db104 [3.12] Remove bogus annotations from the descriptor howto guide (GH-112349) (#112352) Remove bogus annotations from the descriptor howto guide (GH-112349) (cherry picked from commit d9fc15222e96942e30ea8b0561dec5c82ecb4663) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 23 November 2023, 23:07:14 UTC
back to top