]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
9 hours agogh-141125: delete unused import textwrap in interpreter.py (#141126) main
yihong [Fri, 7 Nov 2025 00:02:47 +0000 (08:02 +0800)] 
gh-141125: delete unused import textwrap in interpreter.py (#141126)

13 hours agoGH-136895: Fixes for pulling LLVM as a release artifact (#141002)
Savannah Ostrowski [Thu, 6 Nov 2025 19:58:01 +0000 (11:58 -0800)] 
GH-136895: Fixes for pulling LLVM as a release artifact (#141002)

16 hours agoMinor documentation improvements (#140626)
Rodrigo Girão Serrão [Thu, 6 Nov 2025 17:11:50 +0000 (17:11 +0000)] 
Minor documentation improvements (#140626)

16 hours agoRemove duplicated tests in test_base64 (gh-125346) (GH-141153)
Serhiy Storchaka [Thu, 6 Nov 2025 16:48:58 +0000 (18:48 +0200)] 
Remove duplicated tests in test_base64 (gh-125346) (GH-141153)

16 hours agogh-141004: Document `Py_GetRecursionLimit` and `Py_SetRecursionLimit` (GH-141151)
Peter Bierma [Thu, 6 Nov 2025 16:37:52 +0000 (11:37 -0500)] 
gh-141004: Document `Py_GetRecursionLimit` and `Py_SetRecursionLimit` (GH-141151)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
17 hours agogh-140826: Update winreg's docstring (GH-141050)
AN Long [Thu, 6 Nov 2025 15:33:30 +0000 (00:33 +0900)] 
gh-140826: Update winreg's docstring (GH-141050)

18 hours agogh-141150: Don't rely on implicit conversion from void * to pointer in _PyModule...
Dino Viehland [Thu, 6 Nov 2025 15:16:56 +0000 (10:16 -0500)] 
gh-141150: Don't rely on implicit conversion from void * to pointer in _PyModule… (#141147)

Don't rely on implicit conversion from void * to pointer in _PyModule_GetToken

18 hours agogh-134745: Use "pymutex" for sys.thread_info on Windows (#141140)
Victor Stinner [Thu, 6 Nov 2025 15:10:39 +0000 (16:10 +0100)] 
gh-134745: Use "pymutex" for sys.thread_info on Windows (#141140)

19 hours agogh-141004: Document `PyLong_FromPid` and `PyLong_AsPid` (GH-141028)
Peter Bierma [Thu, 6 Nov 2025 14:01:48 +0000 (09:01 -0500)] 
gh-141004: Document `PyLong_FromPid` and `PyLong_AsPid` (GH-141028)

Co-authored-by: Victor Stinner <vstinner@python.org>
19 hours agogh-141004: Document `Py_hexdigits` (GH-141059)
Stan Ulbrych [Thu, 6 Nov 2025 13:48:42 +0000 (13:48 +0000)] 
gh-141004: Document `Py_hexdigits` (GH-141059)

Co-authored-by: Victor Stinner <vstinner@python.org>
20 hours agogh-141004: Document built-in iterator types in the C API (GH-141006)
Peter Bierma [Thu, 6 Nov 2025 12:29:04 +0000 (07:29 -0500)] 
gh-141004: Document built-in iterator types in the C API (GH-141006)

Adds documentation for each of the following:

- PyEnum_Type
- PyFilter_Type
- PyMap_Type
- PyReversed_Type
- PyZip_Type

In addition, PyRange_Type and PyRange_Check are also documented.

22 hours agogh-139707: Add docs for optional modules (GH-140171)
Petr Viktorin [Thu, 6 Nov 2025 10:49:44 +0000 (11:49 +0100)] 
gh-139707: Add docs for optional modules (GH-140171)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Author: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Victor Stinner <vstinner@python.org>
23 hours agogh-137232: Update free-threading HOWTOs with up-to-date info for 3.14 (#140817)
Lysandros Nikolaou [Thu, 6 Nov 2025 10:20:02 +0000 (11:20 +0100)] 
gh-137232: Update free-threading HOWTOs with up-to-date info for 3.14 (#140817)

23 hours agogh-125346: Add more base64 tests (GH-141061)
Serhiy Storchaka [Thu, 6 Nov 2025 09:34:32 +0000 (11:34 +0200)] 
gh-125346: Add more base64 tests (GH-141061)

Add more tests for the altchars argument of b64decode() and for the map01
argument of b32decode().

24 hours agoMinor fixes to `idle.rst` and regenerate `help.html` (#140037)
Stan Ulbrych [Thu, 6 Nov 2025 08:21:02 +0000 (08:21 +0000)] 
Minor fixes to `idle.rst` and regenerate `help.html` (#140037)

25 hours agogh-129876: Move misplaced IDLE news item (#141118)
Terry Jan Reedy [Thu, 6 Nov 2025 08:08:24 +0000 (03:08 -0500)] 
gh-129876: Move misplaced IDLE news item (#141118)

27 hours agogh-140939: Fix memory leak in `_PyBytes_FormatEx` error path (#140957)
Stan Ulbrych [Thu, 6 Nov 2025 05:50:57 +0000 (05:50 +0000)] 
gh-140939: Fix memory leak in `_PyBytes_FormatEx` error path (#140957)

27 hours agodocs: fix a grammatical error in function.rst (#140990)
RayXu [Thu, 6 Nov 2025 05:48:30 +0000 (13:48 +0800)] 
docs: fix a grammatical error in function.rst (#140990)

27 hours agogh-140569: recommend the new REPL in the asyncio REPL docs (#140570)
Bartosz Sławecki [Thu, 6 Nov 2025 05:39:07 +0000 (06:39 +0100)] 
gh-140569: recommend the new REPL in the asyncio REPL docs (#140570)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
28 hours agogh-118516: clarify that subprocess are automatically killed if transport gets garbage...
Kumar Aditya [Thu, 6 Nov 2025 04:51:13 +0000 (10:21 +0530)] 
gh-118516: clarify that subprocess are automatically killed if transport gets garbage collected (#140997)

34 hours agoGH-108009: Add clarification of parser and argument defaults in argparse docs (#124154)
Savannah Ostrowski [Wed, 5 Nov 2025 22:46:30 +0000 (14:46 -0800)] 
GH-108009: Add clarification of parser and argument defaults in argparse docs (#124154)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
34 hours agogh-141004: Document `PyDict_GET_SIZE` (GH-141078)
Peter Bierma [Wed, 5 Nov 2025 22:32:12 +0000 (17:32 -0500)] 
gh-141004: Document `PyDict_GET_SIZE` (GH-141078)

35 hours agogh-76007: remove curses.__version__ doc (#141052)
Zenith [Wed, 5 Nov 2025 22:00:36 +0000 (17:00 -0500)] 
gh-76007: remove curses.__version__ doc (#141052)

35 hours agogh-141004: Document `Py_RETURN_NAN` and `Py_RETURN_INF` (GH-141029)
Peter Bierma [Wed, 5 Nov 2025 22:00:26 +0000 (17:00 -0500)] 
gh-141004: Document `Py_RETURN_NAN` and `Py_RETURN_INF` (GH-141029)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
35 hours agogh-140916: Remove unused codes in winreg.c (#140934)
AN Long [Wed, 5 Nov 2025 21:49:45 +0000 (06:49 +0900)] 
gh-140916: Remove unused codes in winreg.c (#140934)

35 hours agogh-133467: Fix typeobject `tp_base` race in free threading (gh-140549)
Edward Xu [Wed, 5 Nov 2025 21:20:40 +0000 (05:20 +0800)] 
gh-133467: Fix typeobject `tp_base` race in free threading (gh-140549)

37 hours agogh-83714: Fix stat_nanosecond_timestamp() for 32-bit time_t (#141069)
Victor Stinner [Wed, 5 Nov 2025 20:16:37 +0000 (21:16 +0100)] 
gh-83714: Fix stat_nanosecond_timestamp() for 32-bit time_t (#141069)

38 hours agoFix compiler warnings in remote debugging (#141060)
Victor Stinner [Wed, 5 Nov 2025 19:18:45 +0000 (20:18 +0100)] 
Fix compiler warnings in remote debugging (#141060)

Example of fixed warnings on 32-bit Windows:

    Python\remote_debugging.c(24,53): warning C4244: 'function':
    conversion from 'uint64_t' to 'uintptr_t', possible loss of data

    Modules\_remote_debugging_module.c(789,44): warning C4244:
    'function': conversion from 'uint64_t' to 'size_t', possible loss
    of data

38 hours agogh-140650: Fix write(), flush() and close() methods of io.BufferedWriter (GH-140653)
Sachin Shah [Wed, 5 Nov 2025 19:15:27 +0000 (14:15 -0500)] 
gh-140650: Fix write(), flush() and close() methods of io.BufferedWriter (GH-140653)

They could raise SystemError or crash when getting the "closed" attribute
or converting it to boolean raises an exception.

38 hours agogh-131527: Stackref debug borrow checker (#140599)
Mikhail Efimov [Wed, 5 Nov 2025 19:12:56 +0000 (22:12 +0300)] 
gh-131527: Stackref debug borrow checker (#140599)

Add borrow checking to the stackref debug mode

---------

Co-authored-by: mpage <mpage@meta.com>
38 hours agogh-139313: Improve docs on XML security (GH-139460)
Sebastian Pipping [Wed, 5 Nov 2025 18:59:59 +0000 (19:59 +0100)] 
gh-139313: Improve docs on XML security (GH-139460)

Clarify that:
- it takes parsing for an attack
- that some doors are closed by default
- only Expat version 2.7.2 has all the fixes
- use of the bundle depends on configuration

39 hours agoFix a compiler warning in _randommodule.c (#141058)
Victor Stinner [Wed, 5 Nov 2025 18:00:32 +0000 (19:00 +0100)] 
Fix a compiler warning in _randommodule.c (#141058)

The test just before the cast ensures that the cast cannot overflow.

Fix the warning on 32-bit Windows:

    Modules\_randommodule.c(525,28): warning C4244: '=': conversion
    from 'uint64_t' to 'Py_ssize_t', possible loss of data

39 hours agoRemove internal _PyTime_AsLong() function (#141053)
Victor Stinner [Wed, 5 Nov 2025 17:37:06 +0000 (18:37 +0100)] 
Remove internal _PyTime_AsLong() function (#141053)

* Replace _PyTime_AsLong() with PyLong_FromInt64()
* Replace _PyTime_FromLong() with PyLong_AsInt64().

39 hours agogh-83714: Fix a compiler warning in stat_nanosecond_timestamp() (#141043)
Victor Stinner [Wed, 5 Nov 2025 17:31:35 +0000 (18:31 +0100)] 
gh-83714: Fix a compiler warning in stat_nanosecond_timestamp() (#141043)

Disable the fast path on systems with 32-bit long.

40 hours agogh-140550: Run make regen-limited-abi (#141056)
Victor Stinner [Wed, 5 Nov 2025 16:57:06 +0000 (17:57 +0100)] 
gh-140550: Run make regen-limited-abi (#141056)

40 hours agogh-141004: Document `PyMemoryView_Type` (GH-141034)
Peter Bierma [Wed, 5 Nov 2025 16:45:13 +0000 (11:45 -0500)] 
gh-141004: Document `PyMemoryView_Type` (GH-141034)

43 hours agogh-141004: Document missing iterator types in the C API (GH-141010)
Peter Bierma [Wed, 5 Nov 2025 14:13:57 +0000 (09:13 -0500)] 
gh-141004: Document missing iterator types in the C API (GH-141010)

Add documentation for each of the following:

- PyByteArrayIter_Type
- PyBytesIter_Type
- PyListIter_Type
- PyListRevIter_Type
- PySetIter_Type
- PyTupleIter_Type
- PyRangeIter_Type
- PyLongRangeIter_Type
- PyDictIterKey_Type
- PyDictRevIterKey_Type
- PyDictIterValue_Type
- PyDictRevIterValue_Type
- PyDictIterItem_Type
- PyDictRevIterItem_Type

---------

Co-authored-by: Petr Viktorin <encukou@gmail.com>
45 hours agogh-140550: Initial implementation of PEP 793 – PyModExport (GH-140556)
Petr Viktorin [Wed, 5 Nov 2025 11:31:42 +0000 (12:31 +0100)] 
gh-140550: Initial implementation of PEP 793 – PyModExport (GH-140556)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
46 hours agogh-140691: urllib.request: Close FTP control socket if data socket can't connect...
Petr Viktorin [Wed, 5 Nov 2025 10:52:11 +0000 (11:52 +0100)] 
gh-140691: urllib.request: Close FTP control socket if data socket can't connect (GH-140835)

Co-authored-by: codenamenam <bluetire27@gmail.com>
2 days agoFix typo in Apple/__main__.py (#141038)
Lê Nam Khánh [Wed, 5 Nov 2025 07:23:25 +0000 (14:23 +0700)] 
Fix typo in Apple/__main__.py (#141038)

Corrected a typo in a return value docstring.

2 days agoDocs: Fix cached calls count in factorial example (gh-140882)
Clifford Gama [Wed, 5 Nov 2025 00:29:25 +0000 (02:29 +0200)] 
Docs: Fix cached calls count in factorial example (gh-140882)

2 days agogh-141007: update string module source code link (#141008)
alex [Wed, 5 Nov 2025 00:05:49 +0000 (00:05 +0000)] 
gh-141007: update string module source code link (#141008)

In 3.14, the former string.py became `__init__.py` within a new `string` directory that also contains a new submodule file, `templatelib.py`.

2 days agogh-140454: Normalize the JIT stencils filename on Linux to avoid mismatches between...
Miro Hrončok [Tue, 4 Nov 2025 22:29:15 +0000 (23:29 +0100)] 
gh-140454: Normalize the JIT stencils filename on Linux to avoid mismatches between the Makefile and the generator (#140823)

2 days agogh-138189: Document type slots, and other constants, as part of Limited API (GH-138190)
Petr Viktorin [Tue, 4 Nov 2025 21:58:53 +0000 (22:58 +0100)] 
gh-138189: Document type slots, and other constants, as part of Limited API (GH-138190)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 days agogh-141004: Document `Py_UNICODE_{HIGH, LOW}_SURROGATE` functions (GH-141019)
Stan Ulbrych [Tue, 4 Nov 2025 21:19:06 +0000 (21:19 +0000)] 
gh-141004: Document `Py_UNICODE_{HIGH, LOW}_SURROGATE` functions (GH-141019)

2 days agogh-139434: Update selected RFC 2822 references to RFC 5322 (#139435)
Filip Łajszczak [Tue, 4 Nov 2025 19:46:07 +0000 (20:46 +0100)] 
gh-139434: Update selected RFC 2822 references to RFC 5322 (#139435)

Update selected RFC 2822 references to RFC 5322

RFC 2822 was obsoleted by RFC 5322 in 2008. This updates references
to use the current standard in documentation, docstrings, and comments.

It preserves RFC 2822 references in legacy API components to maintain their
historical context.

RFC 822 → RFC 2822 → RFC 5322 progression is explained where relevant.

In some places specific sections of RFC are referenced where it seems helpful.

Scout rule was applied in some places and RFC mentions format was
normalized in doc strings and comments.

2 days agoDocs: Fix typo in `email.headerregistry.rst` (#140965)
Guo Ci [Tue, 4 Nov 2025 19:29:13 +0000 (14:29 -0500)] 
Docs: Fix typo in `email.headerregistry.rst` (#140965)

Fix missing 'Header' suffix on header class name in `email.headerregistry.rst`

2 days agogh-134817: Restore accidentally deleted line in documentation. (GH-141013)
Vinay Sajip [Tue, 4 Nov 2025 18:29:44 +0000 (18:29 +0000)] 
gh-134817: Restore accidentally deleted line in documentation. (GH-141013)

2 days agoDocument that returning `sys.monitoring.DISABLE` in response to a global event raises...
Brett Cannon [Tue, 4 Nov 2025 18:28:17 +0000 (10:28 -0800)] 
Document that returning `sys.monitoring.DISABLE` in response to a global event raises `ValueError` (#140726)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 days agoGH-139946: Colorize error and warning messages in argparse (#140695)
Savannah Ostrowski [Tue, 4 Nov 2025 16:31:35 +0000 (08:31 -0800)] 
GH-139946: Colorize error and warning messages in argparse (#140695)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 days agogh-140979: Fix off-by-one error in the RE code validator (GH-140984)
Serhiy Storchaka [Tue, 4 Nov 2025 15:49:44 +0000 (17:49 +0200)] 
gh-140979: Fix off-by-one error in the RE code validator (GH-140984)

It was too lenient and allowed MARK opcodes with too large value.

2 days agogh-140797: Forbid capturing groups in re.Scanner lexicon patterns (GH-140944)
Abhishek Tiwari [Tue, 4 Nov 2025 10:54:28 +0000 (16:24 +0530)] 
gh-140797: Forbid capturing groups in re.Scanner lexicon patterns (GH-140944)

2 days agogh-140815: Fix faulthandler for invalid/freed frame (#140921)
Victor Stinner [Tue, 4 Nov 2025 10:48:28 +0000 (11:48 +0100)] 
gh-140815: Fix faulthandler for invalid/freed frame (#140921)

faulthandler now detects if a frame or a code object is invalid or
freed.

Add helper functions:

* _PyCode_SafeAddr2Line()
* _PyFrame_SafeGetCode()
* _PyFrame_SafeGetLasti()

_PyMem_IsPtrFreed() now detects pointers in [-0xff, 0xff] range
as freed.

2 days agoFix minor typo: 'web site' -> 'website' (GH-140561)
commitWithTisha [Tue, 4 Nov 2025 09:23:49 +0000 (03:23 -0600)] 
Fix minor typo: 'web site' -> 'website' (GH-140561)

3 days agogh-140889: Bump tailcall and JIT CI to llvm 20 (#140963)
Ken Jin [Mon, 3 Nov 2025 20:37:29 +0000 (04:37 +0800)] 
gh-140889: Bump tailcall and JIT CI to llvm 20 (#140963)

3 days agoFix minor typos and wording in C API docs (#140955)
Petr Viktorin [Mon, 3 Nov 2025 20:04:46 +0000 (21:04 +0100)] 
Fix minor typos and wording in C API docs (#140955)

3 days agoJIT: Fix compiler warning from visibility attribute in typedef (#139981)
Savannah Ostrowski [Mon, 3 Nov 2025 19:46:53 +0000 (11:46 -0800)] 
JIT: Fix compiler warning from visibility attribute in typedef (#139981)

3 days agogh-131253: free-threaded build support for pystats (gh-137189)
Neil Schemenauer [Mon, 3 Nov 2025 19:36:37 +0000 (11:36 -0800)] 
gh-131253: free-threaded build support for pystats (gh-137189)

Allow the --enable-pystats build option to be used with free-threading.  The
stats are now stored on a per-interpreter basis, rather than process global.
For free-threaded builds, the stats structure is allocated per-thread and
then periodically merged into the per-interpreter stats structure (on thread
exit or when the reporting function is called). Most of the pystats related
code has be moved into the file Python/pystats.c.

3 days agogh-133600: Run `Tools/wasm/wasi` on CI instead of deprecated `Tools/wasm/wasi.py...
Hugo van Kemenade [Mon, 3 Nov 2025 19:26:09 +0000 (21:26 +0200)] 
gh-133600: Run `Tools/wasm/wasi` on CI instead of deprecated `Tools/wasm/wasi.py` (#140907)

3 days agogh-140889: Test tailcall and JIT in CI (GH-140891)
Ken Jin [Mon, 3 Nov 2025 19:07:55 +0000 (03:07 +0800)] 
gh-140889: Test tailcall and JIT in CI (GH-140891)

3 days agoGH-136895: Update JIT builds to use LLVM 20 (#140329)
Savannah Ostrowski [Mon, 3 Nov 2025 18:01:44 +0000 (10:01 -0800)] 
GH-136895: Update JIT builds to use LLVM 20 (#140329)

Co-authored-by: Emma Harper Smith <emma@emmatyping.dev>
3 days agoDocs: Fix a typo in `idle.rst` (Chitespace -> Whitespace) (GH-140946)
Yongzi Li [Mon, 3 Nov 2025 15:48:10 +0000 (23:48 +0800)] 
Docs: Fix a typo in `idle.rst` (Chitespace -> Whitespace) (GH-140946)

Fix typo in idle.rst

3 days agoDocs: Fix typo in codecs documentation (GH-140883)
Stan Ulbrych [Mon, 3 Nov 2025 15:47:52 +0000 (15:47 +0000)] 
Docs: Fix typo in codecs documentation (GH-140883)

3 days agogh-138151: Fix annotationlib handling of multiple nonlocals (#138164)
Jelle Zijlstra [Mon, 3 Nov 2025 15:22:32 +0000 (07:22 -0800)] 
gh-138151: Fix annotationlib handling of multiple nonlocals (#138164)

3 days agogh-133879: Clean up What's New for 3.15 (#140435)
Jelle Zijlstra [Mon, 3 Nov 2025 14:54:23 +0000 (06:54 -0800)] 
gh-133879: Clean up What's New for 3.15 (#140435)

Clean up What's New for 3.15

A bit early but I was reading through it and noticed some issues:

- A few improvements were listed in the removals section
- The "Porting to 3.15" section in the C API chapter had some
  changes that aren't about the C API
- Some other typos and wording fixes

3 days agogh-140348: Fix using | on unusual objects plus Unions (#140383)
Jelle Zijlstra [Mon, 3 Nov 2025 14:50:37 +0000 (06:50 -0800)] 
gh-140348: Fix using | on unusual objects plus Unions (#140383)

4 days agogh-140826: Compare winreg.HKEYType by the internal handle value (GH-140843)
AN Long [Mon, 3 Nov 2025 08:14:22 +0000 (17:14 +0900)] 
gh-140826: Compare winreg.HKEYType by the internal handle value (GH-140843)

4 days agoRevert "gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects...
Jelle Zijlstra [Mon, 3 Nov 2025 05:35:15 +0000 (21:35 -0800)] 
Revert "gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects (#138075)" (#140930)

This reverts commit 63e01d6bae9ddc9ff35aca2134945670eacef163.

4 days agoRemove redundant `sys.exit(2)` call in `pdb` CLI (#139948)
Frost Ming [Mon, 3 Nov 2025 02:47:18 +0000 (10:47 +0800)] 
Remove redundant `sys.exit(2)` call in `pdb` CLI (#139948)

4 days agogh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects (#138075)
dr-carlos [Mon, 3 Nov 2025 01:20:30 +0000 (11:50 +1030)] 
gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects (#138075)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
4 days agogh-138425: Correctly partially evaluate global generics with undefined params in...
dr-carlos [Sun, 2 Nov 2025 23:15:47 +0000 (09:45 +1030)] 
gh-138425: Correctly partially evaluate global generics with undefined params in `ref.evaluate(format=Format.FORWARDREF)` (#138430)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 days agogh-140693: Improve `argparse` documentation about controlling color (#140737)
Krishna Chaitanya [Sun, 2 Nov 2025 21:58:16 +0000 (03:28 +0530)] 
gh-140693: Improve `argparse` documentation about controlling color (#140737)

4 days agogh-140808: Remove __class_getitem__ from mailbox._ProxyFile (#140838)
Sebastian Rittau [Sun, 2 Nov 2025 21:56:59 +0000 (22:56 +0100)] 
gh-140808: Remove __class_getitem__ from mailbox._ProxyFile (#140838)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
4 days agogh-135307: Fix email error when policy max_line_length is set to 0 or None (#135367)
Jiucheng(Oliver) [Sun, 2 Nov 2025 14:32:14 +0000 (09:32 -0500)] 
gh-135307: Fix email error when policy max_line_length is set to 0 or None (#135367)

RDM: Like the change made in a earlier PR to the folder, we can/must use 'maxlen' as a stand in for 'unlimited' when computing line lengths when max_line_length is 0 or None; otherwise the computation results in a traceback.

4 days agoDocs: avoid informal formulation in `Doc/c-api/conversion.rst` (#140898)
RayXu [Sun, 2 Nov 2025 13:49:49 +0000 (21:49 +0800)] 
Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (#140898)

4 days agogh-134786: raise error if `Py_TPFLAGS_MANAGED_WEAKREF` or `Py_TPFLAGS_MANAGED_DICT...
Sergey Miryanov [Sun, 2 Nov 2025 11:04:49 +0000 (16:04 +0500)] 
gh-134786: raise error if `Py_TPFLAGS_MANAGED_WEAKREF` or `Py_TPFLAGS_MANAGED_DICT` is used without `Py_TPFLAGS_HAVE_GC` set (#135863)

5 days agoDocs: fix some grammatical errors in `Doc/c-api/dict.rst` (#140899)
RayXu [Sun, 2 Nov 2025 08:31:26 +0000 (16:31 +0800)] 
Docs: fix some grammatical errors in `Doc/c-api/dict.rst` (#140899)

5 days agogh-140513: Fail to compile if `_Py_TAIL_CALL_INTERP` is set but `preserve_none` and...
Krishna Chaitanya [Sat, 1 Nov 2025 16:41:23 +0000 (22:11 +0530)] 
gh-140513: Fail to compile if `_Py_TAIL_CALL_INTERP` is set but `preserve_none` and `musttail` do not exist. (GH-140548)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
5 days agogh-140868: Don't rely on undefined left shift behavior in assert (#140869)
Dino Viehland [Sat, 1 Nov 2025 16:23:58 +0000 (12:23 -0400)] 
gh-140868: Don't rely on undefined left shift behavior in assert (#140869)

Don't rely on undefined left shift behavior in assert

5 days agogh-140312: Set lltrace on JIT debug builds (GH-140313)
Ken Jin [Sat, 1 Nov 2025 16:22:59 +0000 (00:22 +0800)] 
gh-140312: Set lltrace on JIT debug builds (GH-140313)

Co-authored-by: Mark Shannon <mark@hotpy.org>
5 days agogh-140874: Upgrade bundled pip to 25.3 (GH-140876)
Damian Shaw [Sat, 1 Nov 2025 10:25:19 +0000 (06:25 -0400)] 
gh-140874: Upgrade bundled pip to 25.3 (GH-140876)

Upgrade bundled pip to 25.3

6 days agoGH-119668: expose importlib.machinery.NamespacePath (#119669)
Filipe Laíns [Sat, 1 Nov 2025 00:39:48 +0000 (00:39 +0000)] 
GH-119668: expose importlib.machinery.NamespacePath (#119669)

* GH-119668: expose importlib.NamespacePath

Signed-off-by: Filipe Laíns <lains@riseup.net>
* add news

Signed-off-by: Filipe Laíns <lains@riseup.net>
* add to docs

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Apply suggestions from code review

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Fix news (importlib.NamespacePath > importlib.machinery.NamespacePath)

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Link to module.__path__ in NamespacePath docs

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Mention the path argument in the documentation

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Simplify docs text

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Highlight argument names in docs text

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Update Lib/importlib/_bootstrap_external.py

Co-authored-by: Brett Cannon <brett@python.org>
* Rewrite NamespacePath's doc

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Specify path_finder's type in the NamespacePath docstring

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Fix doc tests

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Apply suggestions from code review

Co-authored-by: Barry Warsaw <barry@python.org>
* Fix doc lint

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Update Doc/library/importlib.rst

Co-authored-by: Brett Cannon <brett@python.org>
---------

Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Barry Warsaw <barry@python.org>
6 days agogh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLParser (GH-137837)
Serhiy Storchaka [Fri, 31 Oct 2025 15:44:02 +0000 (17:44 +0200)] 
gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLParser (GH-137837)

* the "plaintext" element
* the RAWTEXT elements "xmp", "iframe", "noembed" and "noframes"
* optionally RAWTEXT (if scripting=True) element "noscript"

6 days agogh-140212: Add html for year-month option in Calendar (#140230)
Pål Grønås Drange [Fri, 31 Oct 2025 15:28:53 +0000 (16:28 +0100)] 
gh-140212: Add html for year-month option in Calendar (#140230)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
6 days agogh-81313: Add the math.integer module (PEP-791) (GH-133909)
Serhiy Storchaka [Fri, 31 Oct 2025 14:13:43 +0000 (16:13 +0200)] 
gh-81313: Add the math.integer module (PEP-791) (GH-133909)

6 days agogh-136063: fix quadratic-complexity parsing in `email.message._parseparam` (GH-136072)
Bénédikt Tran [Fri, 31 Oct 2025 13:50:40 +0000 (14:50 +0100)] 
gh-136063: fix quadratic-complexity parsing in `email.message._parseparam` (GH-136072)

6 days agogh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952)
Serhiy Storchaka [Fri, 31 Oct 2025 13:49:51 +0000 (15:49 +0200)] 
gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
6 days agogh-57665: Remove 'response_class' from getresponse docstring. (#140707)
R. David Murray [Fri, 31 Oct 2025 13:09:22 +0000 (09:09 -0400)] 
gh-57665: Remove 'response_class' from getresponse docstring. (#140707)

Remove 'response_class' from getresponse docstring.

This variable is not documented as part of the API in the standard
library documentation; it should be considered as an implementation
detail and as such should not be included in the doc string.

Closes #57665.

6 days agogh-131885: Document `*` for `code.InteractiveConsole` (#132029)
Semyon Moroz [Fri, 31 Oct 2025 10:16:32 +0000 (14:16 +0400)] 
gh-131885: Document `*` for `code.InteractiveConsole` (#132029)

6 days agogh-140373: Correctly emit `PY_UNWIND` event when generator is closed (GH-140767)
Mikhail Efimov [Fri, 31 Oct 2025 10:09:22 +0000 (13:09 +0300)] 
gh-140373: Correctly emit `PY_UNWIND` event when generator is closed (GH-140767)

7 days agoMove WASI CI over to Arm runners (GH-140810)
Brett Cannon [Thu, 30 Oct 2025 22:29:39 +0000 (15:29 -0700)] 
Move WASI CI over to Arm runners (GH-140810)

7 days agoMake printing log lines to the terminal a little cleaner when building WASI (GH-140772)
Brett Cannon [Thu, 30 Oct 2025 17:35:53 +0000 (10:35 -0700)] 
Make printing log lines to the terminal a little cleaner when building WASI (GH-140772)

7 days agogh-140766: [Enum] add `show_flag_values` and `bin` to `enum.__all__` (GH-140765)
Guo Ci [Thu, 30 Oct 2025 17:32:55 +0000 (13:32 -0400)] 
gh-140766: [Enum] add `show_flag_values` and `bin` to `enum.__all__` (GH-140765)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
7 days agoGH-140768: Warn when the WASI SDK version doesn't match the supported version (GH...
Brett Cannon [Thu, 30 Oct 2025 16:32:18 +0000 (09:32 -0700)] 
GH-140768: Warn when the WASI SDK version doesn't match the supported version (GH-140769)

7 days agogh-139246: zero-width word paste can be wrong in default repl (GH-139254)
yihong [Thu, 30 Oct 2025 15:14:06 +0000 (23:14 +0800)] 
gh-139246: zero-width word paste can be wrong in default repl (GH-139254)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: grayjk <grayjk@gmail.com>
7 days agogh-55531: Implement `normalize_encoding` in C (#136643)
Stan Ulbrych [Thu, 30 Oct 2025 14:31:47 +0000 (14:31 +0000)] 
gh-55531: Implement `normalize_encoding` in C (#136643)

Closes gh-55531

7 days agogh-135801: Improve filtering by module in warn_explicit() without module argument...
Serhiy Storchaka [Thu, 30 Oct 2025 13:55:39 +0000 (15:55 +0200)] 
gh-135801: Improve filtering by module in warn_explicit() without module argument (GH-140151)

* Try to match the module name pattern with module names constructed
  starting from different parent directories of the filename.
  E.g., for "/path/to/package/module" try to match with
  "path.to.package.module", "to.package.module", "package.module" and
  "module".
* Ignore trailing "/__init__.py".
* Ignore trailing ".pyw" on Windows.
* Keep matching with the full filename (without optional ".py" extension)
  for compatibility.
* Only ignore the case of the ".py" extension on Windows.

7 days agogh-139353: Add Objects/unicode_writer.c file (#139911)
Victor Stinner [Thu, 30 Oct 2025 13:36:15 +0000 (14:36 +0100)] 
gh-139353: Add Objects/unicode_writer.c file (#139911)

Move the public PyUnicodeWriter API and the private _PyUnicodeWriter
API to a new Objects/unicode_writer.c file.

Rename a few helper functions to share them between unicodeobject.c
and unicode_writer.c, such as resize_compact() or unicode_result().

7 days agogh-140748: socket_helper.transient_internet: Unwrap UrlError.__cause__ (GH-140749)
Petr Viktorin [Thu, 30 Oct 2025 11:14:17 +0000 (12:14 +0100)] 
gh-140748: socket_helper.transient_internet: Unwrap UrlError.__cause__ (GH-140749)

7 days agogh-139188: Remove `Tools/tz/zdump.py` script (GH-139189)
Stan Ulbrych [Thu, 30 Oct 2025 11:12:45 +0000 (11:12 +0000)] 
gh-139188: Remove `Tools/tz/zdump.py` script (GH-139189)