]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 weeks agoGH-145278: freeze encodings (partially) and linecache (#145279)
Filipe Laíns [Mon, 9 Mar 2026 13:28:00 +0000 (13:28 +0000)] 
GH-145278: freeze encodings (partially) and linecache (#145279)

6 weeks agogh-145376: Fix various reference leaks in Objects/ and Modules/ (#145385)
Pieter Eendebak [Mon, 9 Mar 2026 13:19:36 +0000 (14:19 +0100)] 
gh-145376: Fix various reference leaks in Objects/ and Modules/ (#145385)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
6 weeks agogh-145376: Fix various refleaks in Objects/ (#145609)
Pieter Eendebak [Mon, 9 Mar 2026 13:17:27 +0000 (14:17 +0100)] 
gh-145376: Fix various refleaks in Objects/ (#145609)

6 weeks agogh-145376: Fix reference leaks in _lprof.c (#145539)
Pieter Eendebak [Mon, 9 Mar 2026 12:50:45 +0000 (13:50 +0100)] 
gh-145376: Fix reference leaks in _lprof.c (#145539)

6 weeks agoFix intermittent `test_ci_fuzz_stdlib` failures (GH-145641)
Chris Eibl [Mon, 9 Mar 2026 09:23:34 +0000 (10:23 +0100)] 
Fix intermittent `test_ci_fuzz_stdlib` failures (GH-145641)

6 weeks agogh-145219: Add Emscripten cross-build and clean configurability (#145581)
Hood Chatham [Mon, 9 Mar 2026 02:25:21 +0000 (03:25 +0100)] 
gh-145219: Add Emscripten cross-build and clean configurability (#145581)

Modifies the Emscripten build script to allow for custom cross-build directory
names, and to only clean Emscripten-specific paths (optionally including the
build python).

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
6 weeks agogh-145642: Docs: Avoid warning for invalid escape sequence in tutorial (#145643)
James [Sun, 8 Mar 2026 22:41:47 +0000 (18:41 -0400)] 
gh-145642: Docs: Avoid warning for invalid escape sequence in tutorial (#145643)

* Match tutorial output to real interpreter output

* Avoid invalid escape sequence in example

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
---------

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
6 weeks agoFix bug notifier for issues with no body text (#145603)
Hugo van Kemenade [Sat, 7 Mar 2026 14:53:13 +0000 (16:53 +0200)] 
Fix bug notifier for issues with no body text (#145603)

6 weeks agogh-145623: Fix crashes on uninitialized struct.Struct objects (gh-145624)
Ramin Farajpour Cami [Sat, 7 Mar 2026 13:31:45 +0000 (17:01 +0330)] 
gh-145623: Fix crashes on uninitialized struct.Struct objects (gh-145624)

6 weeks agogh-145376: Fix refleak in `queuemodule.c` out-of-memory path (#145543)
Pieter Eendebak [Sat, 7 Mar 2026 09:05:08 +0000 (10:05 +0100)] 
gh-145376: Fix refleak in `queuemodule.c` out-of-memory path (#145543)

6 weeks agogh-116738: Make mmap.set_name thread-safe (#145555)
AN Long [Sat, 7 Mar 2026 08:14:44 +0000 (17:14 +0900)] 
gh-116738: Make mmap.set_name thread-safe (#145555)

* Add critical section around mmap.set_name to make it thread-safe

* Add news entry

* Apply suggestion from @aisk

6 weeks agogh-144175: Add PyArg_ParseArray() function (#144283)
Victor Stinner [Fri, 6 Mar 2026 21:57:44 +0000 (22:57 +0100)] 
gh-144175: Add PyArg_ParseArray() function (#144283)

Add PyArg_ParseArray() and PyArg_ParseArrayAndKeywords()
functions to parse arguments of functions using the METH_FASTCALL
calling convention.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
6 weeks agogh-145376: Fix crashes in `md5module.c` and `hmacmodule.c` (#145422)
Pieter Eendebak [Fri, 6 Mar 2026 20:00:06 +0000 (21:00 +0100)] 
gh-145376: Fix crashes in `md5module.c` and `hmacmodule.c` (#145422)

Fix a possible NULL pointer dereference in `md5module.c` and a double-free in `hmacmodule.c`.
Those crashes only occur in error paths taken when the interpreter fails to allocate memory.

6 weeks agogh-145566: Skip stop-the-world when reassigning `__class__` on newly created objects...
Sam Gross [Fri, 6 Mar 2026 17:01:06 +0000 (12:01 -0500)] 
gh-145566: Skip stop-the-world when reassigning `__class__` on newly created objects (gh-145567)

6 weeks agogh-69223: Document that add_argument() returns an Action object (#145538)
Andrew Barnes [Fri, 6 Mar 2026 16:10:12 +0000 (11:10 -0500)] 
gh-69223: Document that add_argument() returns an Action object (#145538)

6 weeks agogh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (#145589)
Victor Stinner [Fri, 6 Mar 2026 15:51:36 +0000 (16:51 +0100)] 
gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (#145589)

Prefer VMADDR_CID_LOCAL instead of VMADDR_CID_ANY for bind() in the
server. Skip the test if bind() fails with EADDRNOTAVAIL.

Log vsock CID in test.pythoninfo.

6 weeks agogh-144370: Disallow usage of control characters in status in wsgiref.handlers for...
Benedikt Johannes [Fri, 6 Mar 2026 12:22:21 +0000 (13:22 +0100)] 
gh-144370: Disallow usage of control characters in status in wsgiref.handlers for security (#144371)

Disallow usage of control characters in status in wsgiref.handlers
to prevent HTTP header injections.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
6 weeks agoDocs: `import datetime as dt` in examples (#145315)
Hugo van Kemenade [Fri, 6 Mar 2026 11:18:11 +0000 (13:18 +0200)] 
Docs: `import datetime as dt` in examples (#145315)

6 weeks agogh-141510: Use frozendict in the stdlib (#144909)
Victor Stinner [Fri, 6 Mar 2026 09:25:09 +0000 (10:25 +0100)] 
gh-141510: Use frozendict in the stdlib (#144909)

Co-authored-by: Donghee Na <donghee.na@python.org>
6 weeks agogh-141510: Change marshal version to 6 (#145551)
Victor Stinner [Fri, 6 Mar 2026 09:23:11 +0000 (10:23 +0100)] 
gh-141510: Change marshal version to 6 (#145551)

Fix SliceTestCase: test also that version 4 fails with ValueError.

6 weeks agogh-145177: Support multiple Emscripten versions for Emscripten buildbot (#145180)
Hood Chatham [Fri, 6 Mar 2026 00:42:41 +0000 (01:42 +0100)] 
gh-145177: Support multiple Emscripten versions for Emscripten buildbot (#145180)

Adds an `--emsdk-cache` argument to the Emscripten build script and an
emscripten_version.txt file. If the `--emsdk-cache` argument is passed, the build script
will look in `emscripten_version.txt` to get the expected emsdk version is installed in
a folder called e.g., 4.0.12 in the directory indicated by the `--emsdk-cache` argument,
and run the build with that Emscripten tooling activated.

6 weeks agogh-145557: Check ctypes is available in test_external_inspection (#145558)
Alex Malyshev [Thu, 5 Mar 2026 19:03:30 +0000 (14:03 -0500)] 
gh-145557: Check ctypes is available in test_external_inspection (#145558)

Currently TestGetStackTrace.test_self_trace_after_ctypes_import() will fail if
the _ctypes extension is not built.  Make it match test_ctypes by skipping
the test in that case.

6 weeks agodoc: Clarify logger creation example in logging HOWTO (GH-145540)
Yash Kaushik [Thu, 5 Mar 2026 17:48:48 +0000 (23:18 +0530)] 
doc: Clarify logger creation example in logging HOWTO (GH-145540)

6 weeks agogh-141510: Complete What's New in Python 3.15 for frozendict (#145537)
Victor Stinner [Thu, 5 Mar 2026 16:44:58 +0000 (17:44 +0100)] 
gh-141510: Complete What's New in Python 3.15 for frozendict (#145537)

Mention updated stdlib modules and built-in functions.

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
6 weeks agogh-141510: No longer accept frozendict in PyDict_Copy() (#145542)
Victor Stinner [Thu, 5 Mar 2026 14:26:54 +0000 (15:26 +0100)] 
gh-141510: No longer accept frozendict in PyDict_Copy() (#145542)

Rename _PyDict_Copy() to anydict_copy().

Replace PyObject_IsInstance(op, &PyFrozenDict_Type) with
PyFrozenDict_Check().

6 weeks agogh-145417: Do not preserve SELinux context when copying venv scripts (#145454)
Shrey Naithani [Thu, 5 Mar 2026 14:19:49 +0000 (19:49 +0530)] 
gh-145417: Do not preserve SELinux context when copying venv scripts (#145454)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
6 weeks agogh-141510: Fix frozendict.items() ^ frozendict.items() (#145535)
Victor Stinner [Thu, 5 Mar 2026 13:14:04 +0000 (14:14 +0100)] 
gh-141510: Fix frozendict.items() ^ frozendict.items() (#145535)

Add non-regression tests.

6 weeks agogh-140681: Freeze pre-commit hooks and update zizmor links (#140682)
Xianpeng Shen [Thu, 5 Mar 2026 12:23:06 +0000 (14:23 +0200)] 
gh-140681: Freeze pre-commit hooks and update zizmor links (#140682)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
6 weeks agogh-145056: Accept frozendict in xml.etree (#145508)
Victor Stinner [Thu, 5 Mar 2026 11:55:28 +0000 (12:55 +0100)] 
gh-145056: Accept frozendict in xml.etree (#145508)

Element and SubElement of xml.etree.ElementTree now also accept
frozendict for attrib.

Export _PyDict_CopyAsDict() function.

6 weeks agogh-145055: Accept frozendict for globals in exec() and eval() (#145072)
Victor Stinner [Thu, 5 Mar 2026 11:35:43 +0000 (12:35 +0100)] 
gh-145055: Accept frozendict for globals in exec() and eval() (#145072)

6 weeks agogh-141510: Use frozendict in the _opcode_metadata (#144910)
Victor Stinner [Thu, 5 Mar 2026 11:33:13 +0000 (12:33 +0100)] 
gh-141510: Use frozendict in the _opcode_metadata (#144910)

Enhance py_metadata_generator.py to skip duplicates.

Co-authored-by: Donghee Na <donghee.na@python.org>
6 weeks agogh-82626: Schedule removal of bool used as file descriptor (#145469)
Victor Stinner [Thu, 5 Mar 2026 11:32:32 +0000 (12:32 +0100)] 
gh-82626: Schedule removal of bool used as file descriptor (#145469)

6 weeks agogh-141510: Don't accept frozendict in PyDict_Watch() (#145529)
Victor Stinner [Thu, 5 Mar 2026 11:31:29 +0000 (12:31 +0100)] 
gh-141510: Don't accept frozendict in PyDict_Watch() (#145529)

Don't accept frozendict in PyDict_Watch() and PyDict_Unwatch().
A frozendict cannot be modified, so it's not useful to watch for
modifications.

6 weeks agogh-145335: Skip Emscripten for os.execve() test (#145528)
Hood Chatham [Thu, 5 Mar 2026 11:29:34 +0000 (12:29 +0100)] 
gh-145335: Skip Emscripten for os.execve() test (#145528)

Emscripten's os.execve() always fails with ENOEXEC.

Co-authored-by: Victor Stinner <vstinner@python.org>
6 weeks agogh-145376: Fix refleak and null pointer deref in unusual error path of datetime modul...
Pieter Eendebak [Thu, 5 Mar 2026 10:21:49 +0000 (11:21 +0100)] 
gh-145376: Fix refleak and null pointer deref in unusual error path of datetime module (GH-145476)

6 weeks agogh-145301: Fix double-free in hashlib and hmac module initialization (GH-145321)
krylosov-aa [Thu, 5 Mar 2026 03:48:25 +0000 (06:48 +0300)] 
gh-145301: Fix double-free in hashlib and hmac module initialization (GH-145321)

gh-145301: Fix double-free in hashlib and hmac initialization

6 weeks agogh-144991: Use runtime JIT threshold in _testinternalcapi (gh-145496)
Donghee Na [Thu, 5 Mar 2026 00:07:47 +0000 (09:07 +0900)] 
gh-144991: Use runtime JIT threshold in _testinternalcapi (gh-145496)

6 weeks agogh-141510: Add frozendict support to python-gdb.py (#145511)
Victor Stinner [Wed, 4 Mar 2026 23:57:54 +0000 (00:57 +0100)] 
gh-141510: Add frozendict support to python-gdb.py (#145511)

6 weeks agogh-145376: Fix reference leaks in deque (#145421)
Pieter Eendebak [Wed, 4 Mar 2026 22:45:43 +0000 (23:45 +0100)] 
gh-145376: Fix reference leaks in deque (#145421)

Fix a reference leak if newblock() fails in _collections.deque.

6 weeks agoUse bytecodealliance/setup-wasi-sdk-action to install the WASI SDK (#145445)
Brett Cannon [Wed, 4 Mar 2026 21:27:47 +0000 (13:27 -0800)] 
Use bytecodealliance/setup-wasi-sdk-action to install the WASI SDK (#145445)

6 weeks agoRefactor `Platforms/WASI/__main__.py` for lazy importing and future new subcommands...
Brett Cannon [Wed, 4 Mar 2026 21:27:23 +0000 (13:27 -0800)] 
Refactor `Platforms/WASI/__main__.py` for lazy importing and future new subcommands (#145404)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
6 weeks agoFix bugs in `compute-changes.py` logic for CIFuzz (#145232)
Stan Ulbrych [Wed, 4 Mar 2026 20:43:44 +0000 (20:43 +0000)] 
Fix bugs in `compute-changes.py` logic for CIFuzz (#145232)

6 weeks agogh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code...
Steve Dower [Wed, 4 Mar 2026 19:55:52 +0000 (19:55 +0000)] 
gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code (GH-145507)

6 weeks agogh-141510: Optimize PyDict_Copy() for frozendict (#145509)
Victor Stinner [Wed, 4 Mar 2026 19:49:20 +0000 (20:49 +0100)] 
gh-141510: Optimize PyDict_Copy() for frozendict (#145509)

Implement fast-path for frozendict in PyDict_Copy().

6 weeks agogh-141510: Return frozendict unmodified in PyDict_Copy() (#145505)
Victor Stinner [Wed, 4 Mar 2026 19:11:00 +0000 (20:11 +0100)] 
gh-141510: Return frozendict unmodified in PyDict_Copy() (#145505)

Add also the internal _PyDict_CopyAsDict() function.

6 weeks agogh-145500: Delete _PyType_GetMRO (gh-145501)
Sam Gross [Wed, 4 Mar 2026 18:32:43 +0000 (13:32 -0500)] 
gh-145500: Delete _PyType_GetMRO (gh-145501)

6 weeks agogh-122941: Fix test_launcher sporadic failures via py.ini isolation (GH-145090)
Itamar Oren [Wed, 4 Mar 2026 18:06:49 +0000 (10:06 -0800)] 
gh-122941: Fix test_launcher sporadic failures via py.ini isolation (GH-145090)

Adds _PYLAUNCHER_INIDIR as a private variable since the launcher is deprecated and not getting new features.

6 weeks agogh-144741: Fix test_frame_pointer_unwind for libpython (#145499)
Victor Stinner [Wed, 4 Mar 2026 17:29:02 +0000 (18:29 +0100)] 
gh-144741: Fix test_frame_pointer_unwind for libpython (#145499)

Fix test_frame_pointer_unwind when Python is built with
--enable-shared. Classify also libpython frames as "python".

6 weeks agogh-145376: Fix refleak in unusual error path in BaseExceptionGroup_new (GH-145474)
Pieter Eendebak [Wed, 4 Mar 2026 13:34:24 +0000 (14:34 +0100)] 
gh-145376: Fix refleak in unusual error path in BaseExceptionGroup_new (GH-145474)

6 weeks agogh-145376: Avoid reference leaks in failure path of _functoolsmodule.c method partial...
Pieter Eendebak [Wed, 4 Mar 2026 13:32:14 +0000 (14:32 +0100)] 
gh-145376: Avoid reference leaks in failure path of _functoolsmodule.c method partial_new (GH-145423)

6 weeks agogh-145376: Fix refleak in error path of time_tzset (GH-145477)
Pieter Eendebak [Wed, 4 Mar 2026 13:21:10 +0000 (14:21 +0100)] 
gh-145376: Fix refleak in error path of time_tzset (GH-145477)

6 weeks agoGH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version...
Miro Hrončok [Wed, 4 Mar 2026 12:59:50 +0000 (13:59 +0100)] 
GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (#144740)

6 weeks agogh-142417: Restore private _Py_InitializeMain() function (#145472)
Victor Stinner [Wed, 4 Mar 2026 10:00:08 +0000 (11:00 +0100)] 
gh-142417: Restore private _Py_InitializeMain() function (#145472)

This reverts commit 07c3518ffb27875b14a0f1637aa85f773ff2f9ff.

Co-authored-by: Petr Viktorin <encukou@gmail.com>
7 weeks agoFix incorrect statement about argparse.ArgumentParser.add_argument() (#145479)
Justin Kunimune [Tue, 3 Mar 2026 21:41:26 +0000 (16:41 -0500)] 
Fix incorrect statement about argparse.ArgumentParser.add_argument() (#145479)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
7 weeks agoDocs: use a Sphinx extension to eliminate excessive links (#145130)
Ned Batchelder [Tue, 3 Mar 2026 20:48:43 +0000 (15:48 -0500)] 
Docs: use a Sphinx extension to eliminate excessive links (#145130)

7 weeks agogh-135883: Fix sqlite3 CLI history scrolling with colored prompts (#135884)
Tan Long [Tue, 3 Mar 2026 18:48:03 +0000 (02:48 +0800)] 
gh-135883: Fix sqlite3 CLI history scrolling with colored prompts (#135884)

7 weeks agogh-145452: Initialize `PyLazyImport_Type` during interpreter startup (#145453)
Bartosz Sławecki [Tue, 3 Mar 2026 16:14:12 +0000 (17:14 +0100)] 
gh-145452: Initialize `PyLazyImport_Type` during interpreter startup (#145453)

Co-authored-by: Victor Stinner <vstinner@python.org>
7 weeks agoReference `memoryview.tolist` as a method (#145412)
Victorien [Tue, 3 Mar 2026 16:05:14 +0000 (16:05 +0000)] 
Reference `memoryview.tolist` as a method (#145412)

7 weeks agogh-145376: Fix various reference leaks (GH-145377)
Jelle Zijlstra [Tue, 3 Mar 2026 15:23:30 +0000 (07:23 -0800)] 
gh-145376: Fix various reference leaks (GH-145377)

7 weeks agoAdd myself to initialization and import machinery codeowners (#145473)
Filipe Laíns [Tue, 3 Mar 2026 14:35:48 +0000 (14:35 +0000)] 
Add myself to initialization and import machinery codeowners (#145473)

7 weeks agogh-144475: Fix reference management in partial_repr (GH-145362)
bkap123 [Tue, 3 Mar 2026 13:46:02 +0000 (08:46 -0500)] 
gh-144475: Fix reference management in partial_repr (GH-145362)

7 weeks agogh-145335: Fix os functions when passing fd -1 as path (#145439)
Victor Stinner [Tue, 3 Mar 2026 12:57:08 +0000 (13:57 +0100)] 
gh-145335: Fix os functions when passing fd -1 as path (#145439)

os.listdir(-1) and os.scandir(-1) now fail with OSError(errno.EBADF)
rather than listing the current directory.

os.listxattr(-1) now fails with OSError(errno.EBADF) rather than
listing extended attributes of the current directory.

7 weeks agoGH-145450: Document missing `wave.Wave_write` getter methods (GH-145451)
Michiel W. Beijen [Tue, 3 Mar 2026 12:44:56 +0000 (13:44 +0100)] 
GH-145450: Document missing `wave.Wave_write` getter methods (GH-145451)

7 weeks agoAdd `PyExc_OverflowError` to the list of possible exceptions in `fuzz_ast_literal_eva...
Stan Ulbrych [Tue, 3 Mar 2026 12:10:34 +0000 (12:10 +0000)] 
Add `PyExc_OverflowError` to the list of possible exceptions in `fuzz_ast_literal_eval` fuzzer (GH-145429)

7 weeks agogh-144995: Optimize memoryview == memoryview (#144996)
Victor Stinner [Tue, 3 Mar 2026 11:15:32 +0000 (12:15 +0100)] 
gh-144995: Optimize memoryview == memoryview (#144996)

Optimize memoryview comparison: a memoryview is equal to itself, there is no
need to compare values, except if it uses float format.

Benchmark comparing 1 MiB:

    from timeit import timeit
    with open("/dev/random", 'br') as fp:
        data = fp.read(2**20)
    view = memoryview(data)
    LOOPS = 1_000
    b = timeit('x == x', number=LOOPS, globals={'x': data})
    m = timeit('x == x', number=LOOPS, globals={'x': view})
    print("bytes %f seconds" % b)
    print("mview %f seconds" % m)
    print("=> %f time slower" % (m / b))

Result before the change:

    bytes 0.000026 seconds
    mview 1.445791 seconds
    => 55660.873940 time slower

Result after the change:

    bytes 0.000026 seconds
    mview 0.000028 seconds
    => 1.104382 time slower

This missed optimization was discovered by Pierre-Yves David
while working on Mercurial.

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
7 weeks agogh-145455: Show output of blurb & sphinx-build version commands (GH-145457)
Petr Viktorin [Tue, 3 Mar 2026 10:47:02 +0000 (11:47 +0100)] 
gh-145455: Show output of blurb & sphinx-build version commands (GH-145457)

In gh-145455, an outdated dependency caused an import error that was not
printed out (`2>&1`); the message instead said that the tools are missing.

Don't redirect stderr, to show warnings and failures.

Also, switch `blurb` to output a version on a single line (`--version` rather
than `help`), and, and don't redirect stdout either.
This results in two version info lines being printed out. These get drowned
in typical Sphinx output, and can be helpful when debugging.

7 weeks agogh-145214: Narrow _GUARD_TOS_ANY_{SET,DICT} by using probable type (gh-145215)
Donghee Na [Tue, 3 Mar 2026 00:58:38 +0000 (09:58 +0900)] 
gh-145214: Narrow _GUARD_TOS_ANY_{SET,DICT} by using probable type (gh-145215)

7 weeks agogh-117865: Speedup import of `inspect` module (#144756)
Daniel Hollas [Mon, 2 Mar 2026 21:39:07 +0000 (21:39 +0000)] 
gh-117865: Speedup import of `inspect` module (#144756)

Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
7 weeks agoGH-145273: skip stdlib warning on module_search_paths_set (#145442)
Filipe Laíns [Mon, 2 Mar 2026 21:11:27 +0000 (21:11 +0000)] 
GH-145273: skip stdlib warning on module_search_paths_set (#145442)

7 weeks agoHide "object" prefix on dunders in contextlib docs & selectivly link some more (...
C.A.M. Gerlach [Mon, 2 Mar 2026 21:10:26 +0000 (13:10 -0800)] 
Hide "object" prefix on dunders in contextlib docs & selectivly link some more (#145436)

7 weeks agoAdd `sysconfig[VPATH]` to `test.pythoninfo` (#145434)
Filipe Laíns [Mon, 2 Mar 2026 20:48:07 +0000 (20:48 +0000)] 
Add `sysconfig[VPATH]` to `test.pythoninfo` (#145434)

7 weeks agoGH-145273: drop build_prefix check from missing stdlib warning (#145437)
Filipe Laíns [Mon, 2 Mar 2026 20:23:22 +0000 (20:23 +0000)] 
GH-145273: drop build_prefix check from missing stdlib warning (#145437)

7 weeks agogh-145118: Add `frozendict` support to `type()` (#145124)
Stan Ulbrych [Mon, 2 Mar 2026 19:45:03 +0000 (19:45 +0000)] 
gh-145118: Add `frozendict` support to `type()` (#145124)

7 weeks agogh-130327: Always traverse managed dictionaries, even when inline values are availabl...
Peter Bierma [Mon, 2 Mar 2026 19:32:06 +0000 (14:32 -0500)] 
gh-130327: Always traverse managed dictionaries, even when inline values are available (#130469)

7 weeks agoGH-145275: add -X pathconfig_warnings and PYTHON_PATHCONFIG_WARNINGS (#145277)
Filipe Laíns [Mon, 2 Mar 2026 19:19:05 +0000 (19:19 +0000)] 
GH-145275: add -X pathconfig_warnings and PYTHON_PATHCONFIG_WARNINGS (#145277)

7 weeks agoGH-145273: warn when we can't find the standard library (#145274)
Filipe Laíns [Mon, 2 Mar 2026 18:51:45 +0000 (18:51 +0000)] 
GH-145273: warn when we can't find the standard library (#145274)

7 weeks agogh-145335: Fix crash when passing -1 as fd in os.pathconf (#145390)
AN Long [Mon, 2 Mar 2026 18:07:49 +0000 (03:07 +0900)] 
gh-145335: Fix crash when passing -1 as fd in os.pathconf (#145390)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
7 weeks agogh-130555: Fix use-after-free in dict.clear() with embedded values (gh-145268)
Sam Gross [Mon, 2 Mar 2026 17:25:13 +0000 (12:25 -0500)] 
gh-130555: Fix use-after-free in dict.clear() with embedded values (gh-145268)

7 weeks agogh-144569: Avoid creating temporary objects in `BINARY_SLICE` for list, tuple, and...
Hai Zhu [Mon, 2 Mar 2026 17:02:38 +0000 (01:02 +0800)] 
gh-144569: Avoid creating temporary objects in `BINARY_SLICE` for list, tuple, and unicode (GH-144590)

* Scalar replacement of BINARY_SLICE for list, tuple, and unicode

7 weeks agogh-145307: Defer loading psapi.dll until ctypes.util.dllist() is called. (GH-145308)
Steve Dower [Mon, 2 Mar 2026 16:10:15 +0000 (16:10 +0000)] 
gh-145307: Defer loading psapi.dll until ctypes.util.dllist() is called. (GH-145308)

7 weeks agoDOC: clarify and expand documentation about PYTHONUSERBASE and PYTHONNOUSERSITE ...
Thomas A Caswell [Mon, 2 Mar 2026 15:54:26 +0000 (10:54 -0500)] 
DOC: clarify and expand documentation about PYTHONUSERBASE and PYTHONNOUSERSITE (#144637)

7 weeks agogh-142781: Fix type confusion in zoneinfo weak cache (GH-142925)
zhong [Mon, 2 Mar 2026 12:30:38 +0000 (20:30 +0800)] 
gh-142781: Fix type confusion in zoneinfo weak cache (GH-142925)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
7 weeks agogh-144835: Added missing explanations for some parameters in glob and iglob. (#144836)
Facundo Batista [Mon, 2 Mar 2026 11:56:28 +0000 (08:56 -0300)] 
gh-144835: Added missing explanations for some parameters in glob and iglob. (#144836)

* Added missing explanations for some parameters in glob and iglob.

* News entry.

* Added proper 'func' indication in News file.

* Consistent use of backticks.

* Improved wording.

* consistent wording between the two docstrings

---------

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
7 weeks agogh-144851: Fix `__lazy_import__` crash with user-defined filters (#144852)
Bartosz Sławecki [Mon, 2 Mar 2026 11:01:32 +0000 (12:01 +0100)] 
gh-144851: Fix `__lazy_import__` crash with user-defined filters (#144852)

7 weeks agogh-144748: Make PyErr_CheckSignals raise the exception scheduled by PyThreadState_Set...
Petr Viktorin [Mon, 2 Mar 2026 10:47:32 +0000 (11:47 +0100)] 
gh-144748: Make PyErr_CheckSignals raise the exception scheduled by PyThreadState_SetAsyncExc (GH-145178)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
7 weeks agogh-100538: Add workflow to verify bundled libexpat (GH-145359)
Stan Ulbrych [Sun, 1 Mar 2026 19:48:28 +0000 (19:48 +0000)] 
gh-100538: Add workflow to verify bundled libexpat (GH-145359)

Add workflow to verify bundled libexpat.

7 weeks agogh-137829: Fix shelve tests for backend compatibility (#137879)
Furkan Onder [Sun, 1 Mar 2026 15:48:13 +0000 (00:48 +0900)] 
gh-137829: Fix shelve tests for backend compatibility (#137879)

7 weeks agogh-145351: use `--no-install-recommends` (#145352)
Thomas Kowalski [Sun, 1 Mar 2026 15:24:42 +0000 (16:24 +0100)] 
gh-145351: use `--no-install-recommends` (#145352)

7 weeks agogh-140715: Improve class reference links on datetime.rst (#123980)
edson duarte [Sun, 1 Mar 2026 11:59:02 +0000 (08:59 -0300)] 
gh-140715: Improve class reference links on datetime.rst (#123980)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
7 weeks agogh-136728: Combine OpenSSL and AWS-LC CI configurations (#144805)
Zachary Ware [Sun, 1 Mar 2026 09:18:23 +0000 (03:18 -0600)] 
gh-136728: Combine OpenSSL and AWS-LC CI configurations (#144805)

7 weeks agogh-145033: Implement PEP 747 (#145034)
Jelle Zijlstra [Sun, 1 Mar 2026 03:52:04 +0000 (19:52 -0800)] 
gh-145033: Implement PEP 747 (#145034)

7 weeks agogh-144551: Update iOS builds to use OpenSSL 3.5.5 (GH-145372)
Zachary Ware [Sat, 28 Feb 2026 22:26:47 +0000 (16:26 -0600)] 
gh-144551: Update iOS builds to use OpenSSL 3.5.5 (GH-145372)

7 weeks agogh-144551: Update Android builds to use OpenSSL 3.5.5 (GH-145371)
Zachary Ware [Sat, 28 Feb 2026 22:14:46 +0000 (16:14 -0600)] 
gh-144551: Update Android builds to use OpenSSL 3.5.5 (GH-145371)

7 weeks agoDestroy the turtle window after its doctests finish (GH-125294)
Zachary Ware [Sat, 28 Feb 2026 21:12:05 +0000 (15:12 -0600)] 
Destroy the turtle window after its doctests finish (GH-125294)

7 weeks agogh-145349: Do not install `ccache` (#145350)
Thomas Kowalski [Sat, 28 Feb 2026 20:37:15 +0000 (21:37 +0100)] 
gh-145349: Do not install `ccache` (#145350)

7 weeks agogh-142352: Fix `asyncio` `start_tls()` to transfer buffered data from StreamReader...
Maksym Kasimov [Sat, 28 Feb 2026 17:49:04 +0000 (19:49 +0200)] 
gh-142352: Fix `asyncio` `start_tls()` to transfer buffered data from StreamReader (#142354)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
7 weeks agoAdd Stan to 'Dates and times' reviewers (#145360)
Stan Ulbrych [Sat, 28 Feb 2026 13:07:35 +0000 (13:07 +0000)] 
Add Stan to 'Dates and times' reviewers (#145360)

7 weeks agogh-145269: simplify bisect.bisect doc example (#145270)
Nathan Goldbaum [Sat, 28 Feb 2026 09:09:39 +0000 (02:09 -0700)] 
gh-145269: simplify bisect.bisect doc example (#145270)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
---------

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
7 weeks agogh-145241: specialize SyntaxError for single trailing-comma with item (#145282)
Pablo Galindo Salgado [Sat, 28 Feb 2026 02:24:06 +0000 (02:24 +0000)] 
gh-145241: specialize SyntaxError for single trailing-comma with item (#145282)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
7 weeks agogh-142927: Tachyon: Fix singular and plurals (#145329)
Hugo van Kemenade [Sat, 28 Feb 2026 01:48:35 +0000 (03:48 +0200)] 
gh-142927: Tachyon: Fix singular and plurals (#145329)