]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 months ago[3.14] Doc/c-api/memory.rst: extend --without-pymalloc doc with ASan information...
Miss Islington (bot) [Sun, 20 Jul 2025 08:55:06 +0000 (10:55 +0200)] 
[3.14] Doc/c-api/memory.rst: extend --without-pymalloc doc with ASan information (GH-136790) (GH-136798)

Extend the documentation for disabling pymalloc with the `--without-pymalloc` flag regarding why it is worth to use it when enabling AddressSanitizer for Python build (which is done, e.g., in CPython's CI builds).

I have tested the CPython latest main build with both ASan and pymalloc enabled and it seems to work just fine. I did run the `python -m test` suite which didn't uncover any ASan crashes (though, it detected some memory leaks, which I believe are irrelevant here).

I have discussed ASan and this flag with @encukou on the CPython Core sprint on EuroPython 2025. We initially thought that the `--without-pymalloc` flag is needed for ASan builds due to the fact pymalloc must hit the begining of page when determining if the memory to be freed comes from pymalloc or was allocated by the system malloc. In other words, we thought, that ASan would crash CPython during free of big objects (allocated by system malloc). It may be that this was the case in the past, but it is not the case anymore as the `address_in_range` function used by pymalloc is annotated to be skipped from the ASan instrumentation.

(cherry picked from commit d19bb4471331ca2cb87b86e4c904bc9a2bafb044)

Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 months ago[3.14] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136841)
Miss Islington (bot) [Sat, 19 Jul 2025 18:00:15 +0000 (20:00 +0200)] 
[3.14] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136841)

gh-136764: improve comment in enum.verify.__call__ (GH-136774)
(cherry picked from commit 6a1c93af806d0ca5d3fb86cd183d00013bbf28d1)

Co-authored-by: Saurav Singh <sauravsinghshakya@yahoo.com>
3 months ago[3.14] gh-136839: Refactor simple dict.update calls (GH-136811) (#136840)
Miss Islington (bot) [Sat, 19 Jul 2025 17:36:31 +0000 (19:36 +0200)] 
[3.14] gh-136839: Refactor simple dict.update calls (GH-136811) (#136840)

gh-136839: Refactor simple dict.update calls (GH-136811)

Refactor simple dict.update calls

This commit refactors simple `dict.update({key: value})` calls which can
be done via `dict[key] = value` instead.

I found those cases with the [semgrep](https://semgrep.dev/) tool:

```
$ semgrep --lang python --pattern '$DICT.update({$A: ...})'

┌─────────────────┐
│ 5 Code Findings │
└─────────────────┘

    Lib/dataclasses.py
         1268┆ slots.update({slot: doc})

    Lib/multiprocessing/resource_tracker.py
           50┆ _CLEANUP_FUNCS.update({
           51┆     'semaphore': _multiprocessing.sem_unlink,
           52┆ })
            ⋮┆----------------------------------------
           53┆ _CLEANUP_FUNCS.update({
           54┆     'shared_memory': _posixshmem.shm_unlink,
           55┆ })

    Lib/tkinter/scrolledtext.py
           26┆ kw.update({'yscrollcommand': self.vbar.set})

    Lib/xmlrpc/server.py
          242┆ self.funcs.update({'system.multicall' : self.system_multicall})
```
(cherry picked from commit 69ea1b3a8f45fec46add3272ad47f14ff5321ae8)

Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
3 months ago[3.14] gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794...
Miss Islington (bot) [Sat, 19 Jul 2025 14:50:30 +0000 (16:50 +0200)] 
[3.14] gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794) (#136827)

gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794)
(cherry picked from commit 6293d8a1a648a498b7ac899631b74fa25c71c1ac)

Co-authored-by: Matthieu Lienart <50069805+mlnrt@users.noreply.github.com>
Co-authored-by: Matthieu Lienart <matthieu.lienart@axians.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 months ago[3.14] gh-54732: Make argparse error caused by empty rows in option files explicit...
Miss Islington (bot) [Sat, 19 Jul 2025 14:28:52 +0000 (16:28 +0200)] 
[3.14] gh-54732: Make argparse error caused by empty rows in option files explicit (GH-136795) (#136818)

gh-54732: Make argparse error caused by empty rows in option files explicit (GH-136795)
(cherry picked from commit 8ffc3ef01e83ffe629c6107082677de4d23974d5)

Co-authored-by: jdunter <2ve@mailbox.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 months ago[3.14] gh-136801: Fix PyREPL syntax highlightning on match cases after multi-line...
Miss Islington (bot) [Sat, 19 Jul 2025 13:56:40 +0000 (15:56 +0200)] 
[3.14] gh-136801: Fix PyREPL syntax highlightning on match cases after multi-line case (GH-136804) (GH-136813)

(cherry picked from commit 3a648445337098abf22c7faa296389dab597797c)

Co-authored-by: Olga Matoula <olgamatoula@gmail.com>
3 months ago[3.14] gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803...
Miss Islington (bot) [Sat, 19 Jul 2025 12:57:52 +0000 (14:57 +0200)] 
[3.14] gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803) (GH-136806)

gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803)

Add a copy of the text from SimpleQueue.close()

---------
(cherry picked from commit f575588ccf27d8d54a1e99cfda944f2614b3255c)

Co-authored-by: aggshruti99 <aggshruti99@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 months ago[3.14] gh-136769: Include fixed-width integers in the fundamental data types table...
Miss Islington (bot) [Sat, 19 Jul 2025 10:26:22 +0000 (12:26 +0200)] 
[3.14] gh-136769: Include fixed-width integers in the fundamental data types table (GH-136784) (#136785)

gh-136769: Include fixed-width integers in the fundamental data types table (GH-136784)

Fixed-sized types, like ``c_int32``, are currently missing from the fundamental data types table
in the ``ctypes`` documentation. This commit adds them, and  notes that ``c_[u]int8`` is an alias
of ``c_[u]byte``.
(cherry picked from commit acefb978dcb5dd554e3c49a3015ee5c2ad6bfda1)

Co-authored-by: Sina Zel taat <111974143+SZeltaat@users.noreply.github.com>
3 months ago[3.14] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#136783)
Miss Islington (bot) [Sat, 19 Jul 2025 10:23:52 +0000 (12:23 +0200)] 
[3.14] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#136783)

Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767)

`ASTOptimiziationTests` -> `ASTOptimizationTests`
(cherry picked from commit 60146f4f6f24f37e3bfcb9f101565f6e86cf0146)

Co-authored-by: Hunter Hogan <hunterhogan@users.noreply.github.com>
3 months ago[3.14] gh-74598: document that `fnmatch.filterfalse` is affected by cache limitation...
Miss Islington (bot) [Sat, 19 Jul 2025 09:56:55 +0000 (11:56 +0200)] 
[3.14] gh-74598: document that `fnmatch.filterfalse` is affected by cache limitation (GH-136781) (#136782)

gh-74598: document that `fnmatch.filterfalse` is affected by cache limitation (GH-136781)
(cherry picked from commit 263e451c4114ac98add1f1e8aa9ee030e054bdfd)

Co-authored-by: Gergely Elias <gergely.elias@gmail.com>
3 months ago[3.14] Docs: Improve example for ``itertools.batched()`` (GH-136775) (#136778)
Miss Islington (bot) [Sat, 19 Jul 2025 09:36:35 +0000 (11:36 +0200)] 
[3.14] Docs: Improve example for ``itertools.batched()`` (GH-136775) (#136778)

Docs: Improve example for ``itertools.batched()`` (GH-136775)

The current example `batched('ABCDEFG', n=3) → ABC DEF G` can confuse readers because both, the size of the tuples and the number of tuples are 3.
By using a batch size of n=2, it is clearer that the `n` argument refers to the size of the resulting tuples.
I.e. the new example is: `batched('ABCDEFG', n=2) → AB CD EF G`
(cherry picked from commit 3eecc72ac70943f7e33297eea17803af15322c88)

Co-authored-by: RafaelWO <38643099+RafaelWO@users.noreply.github.com>
3 months ago[3.14] parser_generator.py typo - keywods -> keywords (GH-135014) (#136772)
Miss Islington (bot) [Sat, 19 Jul 2025 09:18:55 +0000 (11:18 +0200)] 
[3.14] parser_generator.py typo - keywods -> keywords (GH-135014) (#136772)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
3 months ago[3.14] Fix typo: "occured" =>"occurred" (GH-134928) (#136771)
Miss Islington (bot) [Sat, 19 Jul 2025 09:13:51 +0000 (11:13 +0200)] 
[3.14] Fix typo: "occured" =>"occurred" (GH-134928) (#136771)

Co-authored-by: Roman <121314722+GameRoMan@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 months ago[3.14] gh-136697: Use the standard audit event format for sys.monitoring docs (GH...
Miss Islington (bot) [Thu, 17 Jul 2025 19:00:09 +0000 (21:00 +0200)] 
[3.14] gh-136697: Use the standard audit event format for sys.monitoring docs (GH-136747) (#136749)

gh-136697: Use the standard audit event format for sys.monitoring docs (GH-136747)
(cherry picked from commit 28937d3a21cf8168c853ae43374a8287c21f71c9)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
3 months ago[3.14] gh-127146: Emscripten: Set umask to zero in python.sh (GH-136740) (#136745)
Miss Islington (bot) [Thu, 17 Jul 2025 16:05:40 +0000 (18:05 +0200)] 
[3.14] gh-127146: Emscripten: Set umask to zero in python.sh (GH-136740) (#136745)

Clears the umask used during a test of pydoc.apropos when testing on
Emscripten. This is to work around a known issue in Emscripten; but it's not
clear if the chmod call that is causing the problem is actually testing
anything of significance.
(cherry picked from commit 22af5d35a620ee44393853036a8450ceb047688e)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
3 months ago[3.14] Improved venv docs to indicate that isolation is the default. (GH-136698)...
Miss Islington (bot) [Thu, 17 Jul 2025 10:24:54 +0000 (12:24 +0200)] 
[3.14] Improved venv docs to indicate that isolation is the default. (GH-136698) (GH-136705)

(cherry picked from commit 8e2f4b448380b4c835442534d566618f06e32573)
Co-authored-by: Facundo Batista <facundo@taniquetil.com.ar>
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
3 months ago[3.14] gh-135148: Correctly handle f/t strings with comments and debug expressions...
Miss Islington (bot) [Wed, 16 Jul 2025 22:10:46 +0000 (00:10 +0200)] 
[3.14] gh-135148: Correctly handle f/t strings with comments and debug expressions (GH-135198) (#136720)

3 months ago[3.14] gh-136710: Fix bad indentation in `os.chdir` docstring (GH-136719)
Zachary Ware [Wed, 16 Jul 2025 17:15:50 +0000 (12:15 -0500)] 
[3.14] gh-136710: Fix bad indentation in `os.chdir` docstring (GH-136719)

(cherry picked from commit bde808ad6ba5eee8a6201983cf071449d7ce7e39)

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
3 months ago[3.14] gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704...
Miss Islington (bot) [Wed, 16 Jul 2025 16:40:11 +0000 (18:40 +0200)] 
[3.14] gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704) (GH-136723)

gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704)
(cherry picked from commit 69d8fe50ddc4dbe757c9929a532e2e882f0261ba)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
3 months ago[3.14] gh-127146: Emscripten: Don't need to avoid unpaired surrogate anymore (GH...
Miss Islington (bot) [Wed, 16 Jul 2025 16:24:15 +0000 (18:24 +0200)] 
[3.14] gh-127146: Emscripten: Don't need to avoid unpaired surrogate anymore (GH-136707) (#136717)

This might have been fixed by gh-136624, or by some Emscripten change.
In any case, it no longer seems to be needed.
(cherry picked from commit dcd27aace180737adaddc79c00c181816fc6e162)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
3 months ago[3.14] gh-127146: Emscripten: Make os.umask() actually work (GH-136706) (#136711)
Miss Islington (bot) [Wed, 16 Jul 2025 16:12:36 +0000 (18:12 +0200)] 
[3.14] gh-127146: Emscripten: Make os.umask() actually work (GH-136706) (#136711)

Provide a stub implementation of umask that is enough to get some tests passing.
More work is needed upstream in Emscripten to make all umask tests to pass.
(cherry picked from commit 12e52cad718723636a96042f9399634392285c44)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
3 months ago[3.14] gh-127146: Emscripten: more regular stack overflow skips (GH-136708) (#136712)
Miss Islington (bot) [Wed, 16 Jul 2025 15:54:04 +0000 (17:54 +0200)] 
[3.14] gh-127146: Emscripten: more regular stack overflow skips (GH-136708) (#136712)

Makes the Emscripten stack overflow skip message consistent with WASI,
and replaces some ad-hoc skips.
(cherry picked from commit c730952aa64b790c75c437cb63a1242dc08c2e97)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
3 months ago[3.14] Add `.gram` file to the `.editorconfig` (GH-136680) (#136714)
Miss Islington (bot) [Wed, 16 Jul 2025 15:01:44 +0000 (17:01 +0200)] 
[3.14] Add `.gram` file to the `.editorconfig` (GH-136680) (#136714)

Add `.gram` file to the `.editorconfig` (GH-136680)
(cherry picked from commit 2f0db9b05f0598548c0c136571c31065ecf961e5)

Co-authored-by: sobolevn <mail@sobolevn.me>
3 months ago[3.14] gh-136523: Fix wave.Wave_write emitting an unraisable when open raises (GH...
Miss Islington (bot) [Wed, 16 Jul 2025 07:26:52 +0000 (09:26 +0200)] 
[3.14] gh-136523: Fix wave.Wave_write emitting an unraisable when open raises (GH-136529) (GH-136606)

(cherry picked from commit 171de05b4884d1353044417ea51a4efcb55ba633)

Co-authored-by: Sachin Shah <39803835+inventshah@users.noreply.github.com>
3 months ago[3.14] gh-127146: Report uid in Emscripten + node as native uid (GH-136509) (#136699)
Miss Islington (bot) [Wed, 16 Jul 2025 04:50:51 +0000 (06:50 +0200)] 
[3.14] gh-127146: Report uid in Emscripten + node as native uid (GH-136509) (#136699)

Corrects the handling of getuid on emscripten, which was consistently reporting as 0.
(cherry picked from commit e81c4e84b3a8688a367099e3adf9b2fcf914447f)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
3 months ago[3.14] Fix the doctest.testmod() docstring (GH-136675) (GH-136690)
Miss Islington (bot) [Tue, 15 Jul 2025 17:07:01 +0000 (19:07 +0200)] 
[3.14] Fix the doctest.testmod() docstring (GH-136675) (GH-136690)

__test__ = None is not supported since Python 2.4.
(cherry picked from commit cb59eaefeda5ff44ac0c742bff2b8afc023be313)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 months ago[3.14] Fix index entry and anchor for module.__test__ (GH-136674) (GH-136688)
Miss Islington (bot) [Tue, 15 Jul 2025 15:58:52 +0000 (17:58 +0200)] 
[3.14] Fix index entry and anchor for module.__test__ (GH-136674) (GH-136688)

It was "doctest.module attribute". Now it is "module attribute".
(cherry picked from commit 7689407fa4406ab79d7e9e02363f50be4ec35b5e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 months ago[3.14] gh-136396: Include instrumentation when creating new copies of the bytecode...
Miss Islington (bot) [Tue, 15 Jul 2025 15:10:37 +0000 (17:10 +0200)] 
[3.14] gh-136396: Include instrumentation when creating new copies of the bytecode (GH-136525) (GH-136657)

Previously, we assumed that instrumentation would happen for all copies of
the bytecode if the instrumentation version on the code object didn't match
the per-interpreter instrumentation version. That assumption was incorrect:
instrumentation will exit early if there are no new "events," even if there
is an instrumentation version mismatch.

To fix this, include the instrumented opcodes when creating new copies of
the bytecode, rather than replacing them with their uninstrumented variants.
I don't think we have to worry about races between instrumentation and creating
new copies of the bytecode: instrumentation and new bytecode creation cannot happen
concurrently. Instrumentation requires that either the world is stopped or the
code object's per-object lock is held and new bytecode creation requires holding
the code object's per-object lock.
(cherry picked from commit d995922198304a6de19ac1bec3e36d1e886d8468)

Co-authored-by: mpage <mpage@meta.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
3 months ago[3.14] gh-136682: Remove incorrect statement that `os.path.samestat` accepts file...
Miss Islington (bot) [Tue, 15 Jul 2025 12:59:38 +0000 (14:59 +0200)] 
[3.14] gh-136682: Remove incorrect statement that `os.path.samestat` accepts file-like objects (GH-136683) (#136684)

gh-136682: Remove incorrect statement that `os.path.samestat` accepts file-like objects (GH-136683)
(cherry picked from commit 7e10a103dfe52feb0ef3d541e08abc2640838101)

Co-authored-by: Ran Benita <ran@unusedvar.com>
3 months ago[3.14] gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) (#136678)
Miss Islington (bot) [Tue, 15 Jul 2025 12:09:54 +0000 (14:09 +0200)] 
[3.14] gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) (#136678)

gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676)
(cherry picked from commit a02cf19deed353d1e0e7564468f10aced61c12e8)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 months ago[3.14] GH-132661: Add ``string.templatelib.convert()`` (GH-135217) (#136671)
Miss Islington (bot) [Tue, 15 Jul 2025 10:22:24 +0000 (12:22 +0200)] 
[3.14] GH-132661: Add ``string.templatelib.convert()`` (GH-135217) (#136671)

GH-132661: Add ``string.templatelib.convert()`` (GH-135217)
(cherry picked from commit 5b969fd64502a6e2ba6513e2b18beaeae58b8aa1)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 months ago[3.14] gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not availabl...
Miss Islington (bot) [Tue, 15 Jul 2025 08:12:45 +0000 (10:12 +0200)] 
[3.14] gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available. (GH-131201) (GH-136668)

Fix "msvcrt" import warning on Linux when "_ctypes" is not available.

On Linux, compiling without "libffi" causes a
"No module named 'msvcrt'" warning when launching PyREPL.
(cherry picked from commit f320c951c3220aa6727b581216463e8b3f8bcd6b)

Co-authored-by: Dzmitry Plashchynski <plashchynski@gmail.com>
3 months ago[3.14] gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664) (#136666)
Miss Islington (bot) [Tue, 15 Jul 2025 05:36:47 +0000 (07:36 +0200)] 
[3.14] gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664) (#136666)

gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664)
(cherry picked from commit e4654e0b3e7d802c8fe984cf39a36a42b67de1ad)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
3 months ago[3.14] gh-116738: Make grp module thread-safe (GH-135434) (#136658)
Miss Islington (bot) [Tue, 15 Jul 2025 05:33:33 +0000 (07:33 +0200)] 
[3.14] gh-116738: Make grp module thread-safe (GH-135434) (#136658)

gh-116738: Make grp module thread-safe (GH-135434)

Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available.
---------
(cherry picked from commit 9363703bd3bf86e363c14a02e3d729caf1e29f44)

Co-authored-by: Alper <alperyoney@fb.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
3 months ago[3.14] Partially revert "gh-101100: Fix sphinx warnings in `library/email.parser...
Miss Islington (bot) [Mon, 14 Jul 2025 10:19:23 +0000 (12:19 +0200)] 
[3.14] Partially revert "gh-101100: Fix sphinx warnings in `library/email.parser.rst` (GH-136475)" (GH-136629) (#136646)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
3 months ago[3.14] gh-127146: Emscripten: Fix test_open_undecodable_uri by setting `-sTEXTDECODER...
Miss Islington (bot) [Mon, 14 Jul 2025 02:49:36 +0000 (04:49 +0200)] 
[3.14] gh-127146: Emscripten: Fix test_open_undecodable_uri by setting `-sTEXTDECODER=2` (GH-136624) (#136631)

Removes the JS text decoder fallback and gets rid of the bugs due to the differences
in behavior on invalid utf8 strings. See https://github.com/emscripten-core/emscripten/issues/24690.
(cherry picked from commit 283b05052338dd735cd4927011afc3735d9c6c7c)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
3 months ago[3.14] gh-135256: Simplify parsing parameters in Argument Clinic (GH-135257) (1219141...
Miss Islington (bot) [Sun, 13 Jul 2025 20:52:02 +0000 (22:52 +0200)] 
[3.14] gh-135256: Simplify parsing parameters in Argument Clinic (GH-135257) (121914136635)

(cherry picked from commit b74fb8e220a50a9580320dfd398a16995b845c69)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 months ago[3.14] gh-127971: fix off-by-one read beyond the end of a string during search (GH...
Miss Islington (bot) [Sun, 13 Jul 2025 13:58:03 +0000 (15:58 +0200)] 
[3.14] gh-127971: fix off-by-one read beyond the end of a string during search (GH-132574) (#136628)

gh-127971: fix off-by-one read beyond the end of a string during search (GH-132574)
(cherry picked from commit 85ec3b3b503ffd5b7e45f8b3fa2cec0c10e4bef0)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
3 months ago[3.14] gh-42237: Link to complete list of codec aliases (GH-136625) (#136626)
Miss Islington (bot) [Sun, 13 Jul 2025 13:19:23 +0000 (15:19 +0200)] 
[3.14] gh-42237: Link to complete list of codec aliases (GH-136625) (#136626)

gh-42237: Link to complete list of codec aliases (GH-136625)

Closes GH-42237
(cherry picked from commit a93d9aaf62bb2565e9eec00a2a8d06a91305127b)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 months ago[3.14] gh-132346: Docs: Clarify that reference counts aren't stable between versions...
Miss Islington (bot) [Sun, 13 Jul 2025 09:17:48 +0000 (11:17 +0200)] 
[3.14] gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352) (GH-136613)

gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352)
(cherry picked from commit 3dbe02ccd3eefc48ac9fa14427bb4cdb82d1ebae)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
3 months ago[3.14] gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-13483...
Miss Islington (bot) [Sun, 13 Jul 2025 06:58:45 +0000 (08:58 +0200)] 
[3.14] gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-134834) (#136608)

gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-134834)
(cherry picked from commit 609d5adc7cc241da8fe314a64ddd2c8a883ee8b7)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
3 months ago[3.14] Docs: Fix and improve the `PyUnstable_Object_EnableDeferredRefcount` documenta...
Miss Islington (bot) [Sun, 13 Jul 2025 06:52:58 +0000 (08:52 +0200)] 
[3.14] Docs: Fix and improve the `PyUnstable_Object_EnableDeferredRefcount` documentation (GH-135323) (GH-136610)

Docs: Fix and improve the `PyUnstable_Object_EnableDeferredRefcount` documentation (GH-135323)
(cherry picked from commit 0d4fd10fbab2767fad3eb27639905c8885b88c89)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
3 months ago[3.14] gh-134939: Correct `concurrent.interpreters` source code link (GH-136564)...
Miss Islington (bot) [Sun, 13 Jul 2025 05:42:51 +0000 (07:42 +0200)] 
[3.14] gh-134939: Correct `concurrent.interpreters` source code link (GH-136564) (#136605)

gh-134939: Correct `concurrent.interpreters` source code link (GH-136564)
(cherry picked from commit 42b251bcebd749eceeb62389e413a3be37cff343)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-101100: Fix sphinx warnings in Doc/library/platform.rst (GH-136562) (GH...
Miss Islington (bot) [Sat, 12 Jul 2025 18:22:51 +0000 (20:22 +0200)] 
[3.14] gh-101100: Fix sphinx warnings in Doc/library/platform.rst (GH-136562) (GH-136597)

(cherry picked from commit 47b01da4ccedd9c00fad4325b3e87d7732abeb6d)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.14] gh-136549: Fix signature of threading.excepthook() (GH-136559) (GH-136589)
Miss Islington (bot) [Sat, 12 Jul 2025 16:18:23 +0000 (18:18 +0200)] 
[3.14] gh-136549: Fix signature of threading.excepthook() (GH-136559) (GH-136589)

(cherry picked from commit be2c3d284ecce67474a260b8c37e2f1e0628a9cf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__ind...
Miss Islington (bot) [Sat, 12 Jul 2025 14:38:57 +0000 (16:38 +0200)] 
[3.14] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (GH-132379) (#136581)

gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (GH-132379)
(cherry picked from commit 5e1e21dee35b8e9066692d08033bbbdb562e2c28)

Co-authored-by: Bast <52266665+bast0006@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload`...
Miss Islington (bot) [Sat, 12 Jul 2025 13:56:10 +0000 (15:56 +0200)] 
[3.14] gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload` (GH-136071) (#136579)

gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload` (GH-136071)
(cherry picked from commit 25335d297b5248922a4c82183bcdf0c0ada8352b)

Co-authored-by: Kliment Lamonov <klimentlamonov@yandex.ru>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] gh-89083: Add CLI tests for `UUIDv{6,7,8}` (GH-136548) (#136576)
Miss Islington (bot) [Sat, 12 Jul 2025 12:33:53 +0000 (14:33 +0200)] 
[3.14] gh-89083: Add CLI tests for `UUIDv{6,7,8}` (GH-136548) (#136576)

gh-89083: Add CLI tests for `UUIDv{6,7,8}` (GH-136548)
(cherry picked from commit c564847e98db462edfc30a971da061eeb775e475)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] gh-101100: Fix sphinx warnings in Doc/library/functools.rst (GH-136424) (GH...
Miss Islington (bot) [Fri, 11 Jul 2025 17:09:22 +0000 (19:09 +0200)] 
[3.14] gh-101100: Fix sphinx warnings in Doc/library/functools.rst (GH-136424) (GH-136552)

Add index entries and anchors for cache_info, cache_clear and register.
(cherry picked from commit 252e2f710ea376a38c4545dd758e03d331c1eaad)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.14] gh-130160: use `.. program::` directive for documenting `venv` CLI (GH-130699...
Miss Islington (bot) [Fri, 11 Jul 2025 17:03:11 +0000 (19:03 +0200)] 
[3.14] gh-130160: use `.. program::` directive for documenting `venv` CLI (GH-130699) (#136550)

gh-130160: use `.. program::` directive for documenting `venv` CLI (GH-130699)
(cherry picked from commit fb9f933b8eda6cdc1336582dc8709b759ced91af)

Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] gh-130478: fix HACL* build for macOS Silicon (GH-134188) (#135009)
Miss Islington (bot) [Fri, 11 Jul 2025 16:25:58 +0000 (18:25 +0200)] 
[3.14] gh-130478: fix HACL* build for macOS Silicon (GH-134188) (#135009)

gh-130478: fix HACL* build for macOS Silicon (GH-134188)
(cherry picked from commit ac7511062bf8e16ad489b17990d99abd3b4351f5)

Co-authored-by: Sam Ng <hongsheng@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-136517: Print uncollectable objects if DEBUG_UNCOLLECTABLE mode was set...
Miss Islington (bot) [Fri, 11 Jul 2025 14:20:05 +0000 (16:20 +0200)] 
[3.14] gh-136517: Print uncollectable objects if DEBUG_UNCOLLECTABLE mode was set (GH-136518) (#136522)

gh-136517: Print uncollectable objects if DEBUG_UNCOLLECTABLE mode was set (GH-136518)
(cherry picked from commit c560df9658f1a24edea995fe6f9c84c55b37cfb3)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
4 months ago[3.14] gh-136541: Fix several problems of perf trampolines in x86_64 and aarch64...
Miss Islington (bot) [Fri, 11 Jul 2025 14:06:19 +0000 (16:06 +0200)] 
[3.14] gh-136541: Fix several problems of perf trampolines in x86_64 and aarch64 (GH-136500) (#136544)

gh-136541: Fix several problems of perf trampolines in x86_64 and aarch64 (GH-136500)

This commit fixes the following problems:

* The x86_64 trampolines are not preserving frame pointers
* The hardcoded offsets to the code segment from the FDE only worked properly for x64_64
* The CIE data was not following conventions of aarch64
* The eh_frame for aarch64 was not fully correct
(cherry picked from commit 236f733d8ffb3d587e1167fa0a0248c24512e7fd)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 months ago[3.14] gh-136434: Fix docs generation of `UnboundItem` in subinterpreters (GH-136435...
Miss Islington (bot) [Fri, 11 Jul 2025 12:57:52 +0000 (14:57 +0200)] 
[3.14] gh-136434: Fix docs generation of `UnboundItem` in subinterpreters (GH-136435) (#136540)

gh-136434: Fix docs generation of `UnboundItem` in subinterpreters (GH-136435)
(cherry picked from commit 3343fce05acb29a772599ce586abd43edf40bae6)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] gh-76637: Note that `undefined` Codec is for testing (GH-136531) (#136536)
Miss Islington (bot) [Fri, 11 Jul 2025 10:56:34 +0000 (12:56 +0200)] 
[3.14] gh-76637: Note that `undefined` Codec is for testing (GH-136531) (#136536)

gh-76637: Note that `undefined` Codec is for testing (GH-136531)

Closes GH-76637
(cherry picked from commit 975b57d945c84000949f241ded8f44413ecc6217)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-101100: Fix sphinx warnings in `library/email.parser.rst` (GH-136475) ...
Miss Islington (bot) [Fri, 11 Jul 2025 09:43:52 +0000 (11:43 +0200)] 
[3.14] gh-101100: Fix sphinx warnings in `library/email.parser.rst` (GH-136475) (#136532)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.14] gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions...
Miss Islington (bot) [Thu, 10 Jul 2025 16:09:45 +0000 (18:09 +0200)] 
[3.14] gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions (GH-136498) (#136514)

gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions (GH-136498)

Closes GH-52876
(cherry picked from commit 35e2c359703e076256c1249b74b87043972e04d6)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-82663: Clarify `codecs.iterdecode/encode` docs (GH-136497) (#136513)
Miss Islington (bot) [Thu, 10 Jul 2025 15:41:31 +0000 (17:41 +0200)] 
[3.14] gh-82663: Clarify `codecs.iterdecode/encode` docs (GH-136497) (#136513)

gh-82663: Clarify `codecs.iterdecode/encode` docs (GH-136497)

Closes GH-82663
(cherry picked from commit 4b41b2043b110a38616ff86ddb3f065ae7f15c3e)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-132661: Add default value (of `""`) for `Interpolation.expression` (GH...
Miss Islington (bot) [Thu, 10 Jul 2025 14:52:18 +0000 (16:52 +0200)] 
[3.14] gh-132661: Add default value (of `""`) for `Interpolation.expression` (GH-136441) (#136511)

Co-authored-by: Dave Peck <davepeck@gmail.com>
4 months ago[3.14] gh-136394: Fix race condition in test_zstd (GH-136432) (GH-136506)
Miss Islington (bot) [Thu, 10 Jul 2025 13:13:34 +0000 (15:13 +0200)] 
[3.14] gh-136394: Fix race condition in test_zstd (GH-136432) (GH-136506)

gh-136394: Fix race condition in test_zstd (GH-136432)
(cherry picked from commit f519918ec6c125715d4efc9713ba80e83346e466)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
4 months ago[3.14] gh-136209: Add .. c:var:: declarations for C exception types (GH-136210) ...
Miss Islington (bot) [Thu, 10 Jul 2025 13:10:43 +0000 (15:10 +0200)] 
[3.14] gh-136209: Add .. c:var:: declarations for C exception types (GH-136210) (GH-136504)

(cherry picked from commit 85bc89f35f40c844df74d913fd32b2b1475fc942)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 months ago[3.14] gh-136438: Make sure `test_builtins` pass with all optimization levels (GH...
Miss Islington (bot) [Thu, 10 Jul 2025 09:30:07 +0000 (11:30 +0200)] 
[3.14] gh-136438: Make sure `test_builtins` pass with all optimization levels (GH-136474) (#136496)

gh-136438: Make sure `test_builtins` pass with all optimization levels (GH-136474)
(cherry picked from commit c17654334946b232aa296696cf70ec93a09d8156)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] gh-136476: Remove creation of unused list (GH-136494) (GH-136495)
Miss Islington (bot) [Thu, 10 Jul 2025 08:36:48 +0000 (10:36 +0200)] 
[3.14] gh-136476: Remove creation of unused list (GH-136494) (GH-136495)

(cherry picked from commit b44316a0976fb3fcd50bae9d67b0810ee0252d93)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-135846: Add zstd dependency to Android build script (GH-136253) (#136491)
Miss Islington (bot) [Thu, 10 Jul 2025 00:51:09 +0000 (02:51 +0200)] 
[3.14] gh-135846: Add zstd dependency to Android build script (GH-136253) (#136491)

Adds zstd to the Android build process.
(cherry picked from commit 61dd9fdad729fe02d91c03804659f7d0c5a89276)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
4 months ago[3.14] gh-136476: Show the full stack in get_async_stack_trace in _remote_debugging...
Miss Islington (bot) [Wed, 9 Jul 2025 23:57:40 +0000 (01:57 +0200)] 
[3.14] gh-136476: Show the full stack in get_async_stack_trace in _remote_debugging (GH-136483) (#136490)

gh-136476: Show the full stack in get_async_stack_trace in _remote_debugging (GH-136483)
(cherry picked from commit ea45a2f97cb1d4774a6f88e63c6ce0a487f83031)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 months ago[3.14] gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431) ...
Miss Islington (bot) [Wed, 9 Jul 2025 23:13:29 +0000 (01:13 +0200)] 
[3.14] gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431) (#136488)

gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431)
(cherry picked from commit 9c4d28777526e9975b212d49fb0a530f773a3209)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 months ago[3.14] gh-136145: Define 'standard library' and 'stdlib' in the glossary (GH-136485)
Miss Islington (bot) [Wed, 9 Jul 2025 21:39:33 +0000 (23:39 +0200)] 
[3.14] gh-136145: Define 'standard library' and 'stdlib' in the glossary (GH-136485)

(cherry picked from commit 92f392ad9e5e10ff98eac319e58ec79df5951ce0)

Co-authored-by: Zachary Ware <zach@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Éric <merwok@netwok.org>
4 months ago[3.14] gh-81520: Document unexpected `os.path.ismount` behaviour with btrfs subvolume...
Miss Islington (bot) [Wed, 9 Jul 2025 16:00:54 +0000 (18:00 +0200)] 
[3.14] gh-81520: Document unexpected `os.path.ismount` behaviour with btrfs subvolumes (GH-136058) (GH-136471)

gh-81520: Document unexpected `os.path.ismount` behaviour with btrfs subvolumes (GH-136058)
(cherry picked from commit 591abcc01fcf1c65c7fdfaca7274f5d3f9f022da)

Co-authored-by: Oskar Roesler <o.roesler@oscloud.info>
4 months ago[3.14] gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136270) (GH-136467)
Miss Islington (bot) [Wed, 9 Jul 2025 14:12:47 +0000 (16:12 +0200)] 
[3.14] gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136270) (GH-136467)

gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136270)
(cherry picked from commit 6a6cd3c07c0300c8799878a48d555470be2a52f7)

Co-authored-by: NekrodNIK <60639354+NekrodNIK@users.noreply.github.com>
4 months ago[3.14] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136465)
Miss Islington (bot) [Wed, 9 Jul 2025 13:59:40 +0000 (15:59 +0200)] 
[3.14] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136465)

Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
4 months ago[3.14] gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL...
Miss Islington (bot) [Wed, 9 Jul 2025 09:23:43 +0000 (11:23 +0200)] 
[3.14] gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL (GH-136448) (#136458)

gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL (GH-136448)
(cherry picked from commit 77fa7a4dcc771bf4d297ebfd4f357483d0750a1c)

Co-authored-by: Justin Su <injustsu@gmail.com>
4 months ago[3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665...
Miss Islington (bot) [Wed, 9 Jul 2025 08:34:19 +0000 (10:34 +0200)] 
[3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455)

gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665)
(cherry picked from commit 797abd1f7fdeb744bf9f683ef844e7279aad3d72)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
4 months ago[3.14] gh-136162: Document `encodings` package functions (GH-136164) (#136454)
Miss Islington (bot) [Wed, 9 Jul 2025 08:07:34 +0000 (10:07 +0200)] 
[3.14] gh-136162: Document `encodings` package functions (GH-136164) (#136454)

gh-136162: Document `encodings` package functions (GH-136164)

Closes GH-136162.
(cherry picked from commit ffd7f2f231f5543e6863c6c85e86f72233229771)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-53243: Document `codecs.readbuffer_encode()` (GH-136284) (#136452)
Miss Islington (bot) [Wed, 9 Jul 2025 08:07:18 +0000 (10:07 +0200)] 
[3.14] gh-53243: Document `codecs.readbuffer_encode()` (GH-136284) (#136452)

gh-53243: Document `codecs.readbuffer_encode()` (GH-136284)

Closes GH-53243
(cherry picked from commit f1dcf3c7bf90961b8d5475154d3f28cfef0a054f)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-94503: Update logging cookbook example with info on addressing log injectio...
Miss Islington (bot) [Wed, 9 Jul 2025 08:00:30 +0000 (10:00 +0200)] 
[3.14] gh-94503: Update logging cookbook example with info on addressing log injection. (GH-136446) (GH-136449)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-136229: Remove Platform Emscripten is not supported warning (GH-136230...
Miss Islington (bot) [Wed, 9 Jul 2025 02:42:49 +0000 (04:42 +0200)] 
[3.14] gh-136229: Remove Platform Emscripten is not supported warning (GH-136230) (#136445)

Updates configure script to identify Emscripten as Tier 3.
(cherry picked from commit 6ea425828540d7a19296183c3410283897767d9a)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-91048: Revert the memory cache removal for remote debugging (GH-136440...
Miss Islington (bot) [Wed, 9 Jul 2025 01:21:56 +0000 (03:21 +0200)] 
[3.14] gh-91048: Revert the memory cache removal for remote debugging (GH-136440) (#136443)

gh-91048: Revert the memory cache removal for remote debugging (GH-136440)
(cherry picked from commit 77d25e5b169f7c306d3a6d9ca6777c0a0be80d8f)

gh-91048: Reintroduce the memory cache for remote debugging

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 months ago[3.14] GH-133136: Revise QSBR to reduce excess memory held (gh-135473) (#135912)
Miss Islington (bot) [Tue, 8 Jul 2025 17:58:01 +0000 (19:58 +0200)] 
[3.14] GH-133136: Revise QSBR to reduce excess memory held (gh-135473) (#135912)

The free threading build uses QSBR to delay the freeing of dictionary
keys and list arrays when the objects are accessed by multiple threads
in order to allow concurrent reads to proceed with holding the object
lock. The requests are processed in batches to reduce execution
overhead, but for large memory blocks this can lead to excess memory
usage.

Take into account the size of the memory block when deciding when to
process QSBR requests.

Also track the amount of memory being held by QSBR for mimalloc pages.  Advance the write sequence if this memory exceeds a limit.  Advancing the sequence will allow it to be freed more quickly.

Process the held QSBR items from the "eval breaker", rather than from `_PyMem_FreeDelayed()`.  This gives a higher chance that the global read sequence has advanced enough so that items can be freed.

(cherry picked from commit 113de8545ffe74a4a1dddb9351fa1cbd3562b621)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
4 months ago[3.14] Update bytecode magic number in tests for the 3.14 release candidate (GH-13642...
Miss Islington (bot) [Tue, 8 Jul 2025 17:38:37 +0000 (19:38 +0200)] 
[3.14] Update bytecode magic number in tests for the 3.14 release candidate (GH-136427) (#136429)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-136380: Fix import behavior for `concurrent.futures.InterpreterPoolExecutor...
Miss Islington (bot) [Tue, 8 Jul 2025 16:11:48 +0000 (18:11 +0200)] 
[3.14] gh-136380: Fix import behavior for `concurrent.futures.InterpreterPoolExecutor` (GH-136381) (#136420)

gh-136380: Fix import behavior for `concurrent.futures.InterpreterPoolExecutor` (GH-136381)
(cherry picked from commit 490eea02819ad303a5042529af7507b7b1fdabdc)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
4 months agoMerge branch '3.14' of https://github.com/python/cpython into 3.14
Hugo van Kemenade [Tue, 8 Jul 2025 14:35:22 +0000 (17:35 +0300)] 
Merge branch '3.14' of https://github.com/python/cpython into 3.14

4 months agoPost 3.14.0b4
Hugo van Kemenade [Tue, 8 Jul 2025 14:31:34 +0000 (17:31 +0300)] 
Post 3.14.0b4

4 months ago[3.14] gh-136186: Fix race condition in test_external_inspection.test_only_active_thr...
Miss Islington (bot) [Tue, 8 Jul 2025 12:48:03 +0000 (14:48 +0200)] 
[3.14] gh-136186: Fix race condition in test_external_inspection.test_only_active_thread (GH-136347) (#136416)

4 months ago[3.14] gh-101100: Fix sphinx warnings in `Doc/library/exceptions.rst` (GH-136309...
Miss Islington (bot) [Tue, 8 Jul 2025 12:11:28 +0000 (14:11 +0200)] 
[3.14] gh-101100: Fix sphinx warnings in `Doc/library/exceptions.rst` (GH-136309) (#136414)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months agoPython 3.14.0b4 v3.14.0b4
Hugo van Kemenade [Tue, 8 Jul 2025 08:56:46 +0000 (11:56 +0300)] 
Python 3.14.0b4

4 months ago[3.14] gh-120713: Make _Py_NORMALIZE_CENTURY private (GH-135933) (#136387)
Miss Islington (bot) [Tue, 8 Jul 2025 08:43:57 +0000 (10:43 +0200)] 
[3.14] gh-120713: Make _Py_NORMALIZE_CENTURY private (GH-135933) (#136387)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property...
Miss Islington (bot) [Tue, 8 Jul 2025 08:16:51 +0000 (10:16 +0200)] 
[3.14] gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property.py` (GH-136384) (#136407)

gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property.py` (GH-136384)
(cherry picked from commit db699db99d214dccb7c4849fa609fdd5188ee038)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] gh-136155: Docs: only add custom OpenGraph protocol meta tags for HTML builds...
Miss Islington (bot) [Tue, 8 Jul 2025 07:03:40 +0000 (09:03 +0200)] 
[3.14] gh-136155: Docs: only add custom OpenGraph protocol meta tags for HTML builds (GH-136187) (#136382)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
4 months ago[3.14] gh-101100: Fix sphinx warnings in `whatsnew/3.11.rst` (GH-136402) (#136405)
Miss Islington (bot) [Tue, 8 Jul 2025 06:47:17 +0000 (08:47 +0200)] 
[3.14] gh-101100: Fix sphinx warnings in `whatsnew/3.11.rst` (GH-136402) (#136405)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.14] gh-102567: Add missing newline to `--help-all` (GH-136391) (GH-136403)
Miss Islington (bot) [Tue, 8 Jul 2025 06:24:08 +0000 (08:24 +0200)] 
[3.14] gh-102567: Add missing newline to `--help-all` (GH-136391) (GH-136403)

gh-102567: Add missing newline to `--help-all` (GH-136391)
(cherry picked from commit fbef0c1d6a6540f5063138b861f79bdb2a935b0a)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-135913: Document ob_refcnt, ob_type, ob_size (GH-135914) (GH-136377)
Miss Islington (bot) [Tue, 8 Jul 2025 06:03:03 +0000 (08:03 +0200)] 
[3.14] gh-135913: Document ob_refcnt, ob_type, ob_size (GH-135914) (GH-136377)

gh-135913: Document ob_refcnt, ob_type, ob_size (GH-135914)

* gh-135913: Document ob_refcnt, ob_type, ob_size

In `typeobj.rst`, instead of `:c:member:` it would be better to
use `.. c:member::` with a `:no-index:` option, see:

See ref. https://www.sphinx-doc.org/en/master/usage/domains/index.html#basic-markup

However, `c:member` currently does not support `:no-index:`.
(cherry picked from commit 73e1207a4ebdb3b43d597cd6c288dae6d7d1dbdb)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-136032: Fix `argparse.BooleanOptionalAction` doc (GH-136133) (#136329)
Miss Islington (bot) [Tue, 8 Jul 2025 02:34:18 +0000 (04:34 +0200)] 
[3.14] gh-136032: Fix `argparse.BooleanOptionalAction` doc (GH-136133) (#136329)

gh-136032: Fix `argparse.BooleanOptionalAction` doc (GH-136133)
(cherry picked from commit 1953713d0d67a4f54ff75bf8449895a2f08cc750)

Co-authored-by: W. H. Wang <mattwang44@gmail.com>
4 months ago[3.14] gh-135906: Use `_PyObject_CAST` in internal headers (GH-135892) (GH-136392)
Miss Islington (bot) [Mon, 7 Jul 2025 17:21:28 +0000 (19:21 +0200)] 
[3.14] gh-135906: Use `_PyObject_CAST` in internal headers (GH-135892) (GH-136392)

gh-135906: Use `_PyObject_CAST` in internal headers (GH-135892)

Fixes build errors encountered in python-greenlet/greenlet#450 when building greenlet on the free-threaded build.

---------
(cherry picked from commit fe187fae8d8321f1b8d3c9560a35efe904de4217)

Co-authored-by: Charlie Lin <tuug@gmx.us>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 months ago[3.14] gh-101100: Fix Sphinx warnings in library/email.compat32-message.rst (GH-13632...
Miss Islington (bot) [Mon, 7 Jul 2025 16:50:56 +0000 (18:50 +0200)] 
[3.14] gh-101100: Fix Sphinx warnings in library/email.compat32-message.rst (GH-136323) (#136389)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.14] gh-87790: support thousands separators for formatting fractional part of Decim...
Miss Islington (bot) [Mon, 7 Jul 2025 16:24:30 +0000 (18:24 +0200)] 
[3.14] gh-87790: support thousands separators for formatting fractional part of Decimal (GH-132202) (#136365)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-87790: support thousands separators for formatting fractional part of Fract...
Miss Islington (bot) [Mon, 7 Jul 2025 16:24:24 +0000 (18:24 +0200)] 
[3.14] gh-87790: support thousands separators for formatting fractional part of Fraction (GH-132204) (#136364)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
4 months ago[3.14] gh-124486: Fix test_whichdb_ndbm in test_dbm on NetBSD (GH-136335) (GH-136378)
Miss Islington (bot) [Mon, 7 Jul 2025 12:57:37 +0000 (14:57 +0200)] 
[3.14] gh-124486: Fix test_whichdb_ndbm in test_dbm on NetBSD (GH-136335) (GH-136378)

On NetBSD, ndbm.open() does not fail for empty file.
(cherry picked from commit b7aa2a4b4df697db6ea45a555eeb3fefa5ca5bd4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-86682: Add versionadded for sys._getframemodulename (GH-136325) (#136375)
Miss Islington (bot) [Mon, 7 Jul 2025 11:27:54 +0000 (13:27 +0200)] 
[3.14] gh-86682: Add versionadded for sys._getframemodulename (GH-136325) (#136375)

gh-86682: Add versionadded for sys._getframemodulename (GH-136325)

add versionadded for sys._getframemodulename
(cherry picked from commit 11f074b243756bca0db5a7d35dd84f00879de616)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
4 months ago[3.14] gh-131591: Document Py_REMOTE_DEBUG (GH-135929) (GH-136374)
Miss Islington (bot) [Mon, 7 Jul 2025 11:07:23 +0000 (13:07 +0200)] 
[3.14] gh-131591: Document Py_REMOTE_DEBUG (GH-135929) (GH-136374)

gh-131591: Document Py_REMOTE_DEBUG (GH-135929)
(cherry picked from commit 9aac5a3d44d7191001660aed3a383b062ee4b29b)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980...
Miss Islington (bot) [Mon, 7 Jul 2025 10:55:20 +0000 (12:55 +0200)] 
[3.14] gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980) (GH-136370)

* Turn the __future__ table to list-table.
  This'll make it easier to add entries that need longer markup
* Semantic markup for __future__ feature descriptions.
* Document CO_* C macros.

(cherry picked from commit 2468aafe984fdf923811ef0c6969e3d6c1b92a82)

Co-authored-by: Petr Viktorin <encukou@gmail.com>