]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 months ago[3.14] gh-133893: asyncio.graph: Replace TextIO annotation with io.Writer (GH-133894...
Miss Islington (bot) [Sun, 11 May 2025 15:25:43 +0000 (17:25 +0200)] 
[3.14] gh-133893: asyncio.graph: Replace TextIO annotation with io.Writer (GH-133894) (#133901)

gh-133893: asyncio.graph: Replace TextIO annotation with io.Writer (GH-133894)
(cherry picked from commit 1d3eacedb8cc51256a5350c6d421fb85e2b21f18)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
6 months ago[3.14] gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-13368...
Miss Islington (bot) [Sun, 11 May 2025 08:44:22 +0000 (10:44 +0200)] 
[3.14] gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-133681) (#133872)

gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-133681)
(cherry picked from commit c838e21fda21bb3ff91f586374e0da776c1c567b)

Co-authored-by: Lauta <ljfp@ljfp.xyz>
6 months ago[3.14] gh-133823: update "Pending Removal in 3.15" notes about `TypedDict` (GH-133864...
Miss Islington (bot) [Sun, 11 May 2025 08:16:28 +0000 (10:16 +0200)] 
[3.14] gh-133823: update "Pending Removal in 3.15" notes about `TypedDict` (GH-133864) (#133870)

gh-133823: update "Pending Removal in 3.15" notes about `TypedDict` (GH-133864)
(cherry picked from commit f91127ae1a8bb233aa23b449e87da6df763f85b2)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
6 months agogh-133703: dict: fix calculate_log2_keysize() (GH-133809)
Miss Islington (bot) [Sun, 11 May 2025 07:34:15 +0000 (09:34 +0200)] 
gh-133703: dict: fix calculate_log2_keysize() (GH-133809)

(cherry picked from commit 92337f666e8a076a68305a8d6dc8bc9c095000e9)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 months ago[3.14] gh-132983: Remove leftovers from EndlessZstdDecompressor (GH-133856) (#133859)
Miss Islington (bot) [Sun, 11 May 2025 02:30:55 +0000 (04:30 +0200)] 
[3.14] gh-132983: Remove leftovers from EndlessZstdDecompressor (GH-133856) (#133859)

gh-132983: Remove leftovers from EndlessZstdDecompressor (GH-133856)
(cherry picked from commit 878e0fb8b43de62449b6d7974fb503498e1c0cf7)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
6 months ago[3.14] gh-132983: Make zstd types immutable (GH-133784) (#133857)
Miss Islington (bot) [Sat, 10 May 2025 23:02:44 +0000 (01:02 +0200)] 
[3.14] gh-132983: Make zstd types immutable (GH-133784) (#133857)

gh-132983: Make zstd types immutable (GH-133784)
(cherry picked from commit 1a87b6e9ae6da255f30465ed59a78913ebf2e898)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] gh-133336: Remove comment about reserved -J in ``initconfig.c`` (GH-133821...
Miss Islington (bot) [Sat, 10 May 2025 22:25:42 +0000 (00:25 +0200)] 
[3.14] gh-133336: Remove comment about reserved -J in ``initconfig.c`` (GH-133821) (#133855)

6 months ago[3.14] gh-132983: Reduce the size of ``_zstdmodule.h`` (GH-133793) (#133854)
Miss Islington (bot) [Sat, 10 May 2025 21:51:11 +0000 (23:51 +0200)] 
[3.14] gh-132983: Reduce the size of ``_zstdmodule.h`` (GH-133793) (#133854)

gh-132983: Reduce the size of ``_zstdmodule.h`` (GH-133793)
(cherry picked from commit 1a548c0a50641aa3358966e0949d29bcfa9dd480)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] Add classmethod to setUpClass in test_pdb (GH-133840) (#133846)
Miss Islington (bot) [Sat, 10 May 2025 18:38:14 +0000 (20:38 +0200)] 
[3.14] Add classmethod to setUpClass in test_pdb (GH-133840) (#133846)

Add classmethod to setUpClass in test_pdb (GH-133840)
(cherry picked from commit 4f2f780d534962261dcc7813e50d0dcb413a1d3c)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
6 months ago[3.14] gh-86155: Fix data loss after unclosed script or style tag in HTMLParser ...
Miss Islington (bot) [Sat, 10 May 2025 18:02:23 +0000 (20:02 +0200)] 
[3.14] gh-86155: Fix data loss after unclosed script or style tag in HTMLParser (GH-22658) (GH-133844)

When calling .close() the HTMLParser should flush all remaining content,
even when that content is in an unclosed script or style tag.
(cherry picked from commit 53383e90e4df7029f792b7aa81aa2e4cff348ed0)

Co-authored-by: Waylan Limberg <waylan.limberg@icloud.com>
6 months ago[3.14] gh-133783: Fix __replace__ on AST nodes for optional attributes (GH-133797...
Miss Islington (bot) [Sat, 10 May 2025 16:44:07 +0000 (18:44 +0200)] 
[3.14] gh-133783: Fix __replace__ on AST nodes for optional attributes (GH-133797) (#133842)

gh-133783: Fix __replace__ on AST nodes for optional attributes (GH-133797)
(cherry picked from commit 7dddb4e667b5eb76cbe11755051ec139b0f437a9)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
6 months ago[3.14] gh-132642: document how to render human-readable `timedelta` objects (GH-13382...
Miss Islington (bot) [Sat, 10 May 2025 16:00:36 +0000 (18:00 +0200)] 
[3.14] gh-132642: document how to render human-readable `timedelta` objects (GH-133825) (#133837)

gh-132642: document how to render human-readable `timedelta` objects (GH-133825)
(cherry picked from commit efcc42ba70fb09333a2be16401da731662e2984b)

Co-authored-by: Kentaro Jay Takahashi <64148935+KentaroJay@users.noreply.github.com>
6 months ago[3.14] gh-117088: Fix AIX build (GH-132595) (GH-133838)
Miss Islington (bot) [Sat, 10 May 2025 15:55:47 +0000 (17:55 +0200)] 
[3.14] gh-117088: Fix AIX build (GH-132595) (GH-133838)

(cherry picked from commit 47f1722d8053fb4f79e68cba07cbf08fb58a511c)

Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
6 months ago[3.14] gh-77057: Fix handling of invalid markup declarations in HTMLParser (GH-9295...
Miss Islington (bot) [Sat, 10 May 2025 14:58:23 +0000 (16:58 +0200)] 
[3.14] gh-77057: Fix handling of invalid markup declarations in HTMLParser (GH-9295) (GH-133833)

(cherry picked from commit 76c0b01bc401c3e976011bbc69cec56dbebe0ad5)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 months ago[3.14] Tiny doc fix to double up backslashes in a Windows filesystem path (GH-133828...
Miss Islington (bot) [Sat, 10 May 2025 13:51:49 +0000 (15:51 +0200)] 
[3.14] Tiny doc fix to double up backslashes in a Windows filesystem path (GH-133828) (#133830)

Tiny doc fix to double up backslashes in a Windows filesystem path (GH-133828)
(cherry picked from commit e7741dd77392ac1fef1e12d86045b0d1d27ec1d9)

Co-authored-by: Tim Golden <mail@timgolden.me.uk>
6 months ago[3.14] gh-115999: Note Python 3.14 free-threaded changes in What's New (gh-131285...
Miss Islington (bot) [Sat, 10 May 2025 10:37:02 +0000 (12:37 +0200)] 
[3.14] gh-115999: Note Python 3.14 free-threaded changes in What's New (gh-131285) (gh-133824)

gh-115999: Note Python 3.14 free-threaded changes in What's New (gh-131285)

---------
(cherry picked from commit f28cbc9fd3f37656ad55ef2488b65343b97fa902)

Co-authored-by: Donghee Na <donghee.na@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: T. Wouters <thomas@python.org>
Co-authored-by: mpage <mpage@cs.stanford.edu>
6 months ago[3.14] gh-132971: Update shutil.which() docs (GH-133067) (#133803)
Miss Islington (bot) [Sat, 10 May 2025 08:51:55 +0000 (10:51 +0200)] 
[3.14] gh-132971: Update shutil.which() docs (GH-133067) (#133803)

gh-132971: Update shutil.which() docs (GH-133067)
(cherry picked from commit d13d5fdf610a294a6c3dc125e0856fb7fdd41e49)

Co-authored-by: Kokona <125976684+985025074@users.noreply.github.com>
6 months ago[3.14] gh-133009: fix UAF in `xml.etree.ElementTree.Element.__deepcopy__` (GH-133010...
Miss Islington (bot) [Sat, 10 May 2025 07:58:10 +0000 (09:58 +0200)] 
[3.14] gh-133009: fix UAF in `xml.etree.ElementTree.Element.__deepcopy__` (GH-133010) (#133805)

gh-133009: fix UAF in `xml.etree.ElementTree.Element.__deepcopy__` (GH-133010)
(cherry picked from commit 116a9f9b3775c904c98e390d896200e1641498aa)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
6 months ago[3.14] gh-132983: Don't allow trailer data in ZstdFile (GH-133736) (#133799)
Miss Islington (bot) [Sat, 10 May 2025 02:58:43 +0000 (04:58 +0200)] 
[3.14] gh-132983: Don't allow trailer data in ZstdFile (GH-133736) (#133799)

gh-132983: Don't allow trailer data in ZstdFile (GH-133736)
(cherry picked from commit 50b53706646cc130dcc71496f4a5bee14e9a1d9a)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
6 months ago[3.14] Fix a typo in Misc/NEWS.d/3.140a1.rst (GH-133790) (#133798)
Miss Islington (bot) [Sat, 10 May 2025 02:37:05 +0000 (04:37 +0200)] 
[3.14] Fix a typo in Misc/NEWS.d/3.140a1.rst (GH-133790) (#133798)

Fix a typo in Misc/NEWS.d/3.140a1.rst (GH-133790)
(cherry picked from commit c896dae0297fe4422c1009d3cd17f0a6e4fe4972)

Co-authored-by: Tan Long <tanloong@foxmail.com>
6 months ago[3.14] GH-132983: PEP 7 and Argument Clinic changes for zstd (GH-133791) (#133792)
Miss Islington (bot) [Sat, 10 May 2025 00:59:30 +0000 (02:59 +0200)] 
[3.14] GH-132983: PEP 7 and Argument Clinic changes for zstd (GH-133791) (#133792)

GH-132983: PEP 7 and Argument Clinic changes for zstd (GH-133791)
(cherry picked from commit 1978904a2fc6705303486f35336054d455b5018a)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] GH-132983: remove empty_bytes from _zstd module state (GH-133785) (#133788)
Miss Islington (bot) [Fri, 9 May 2025 20:42:55 +0000 (22:42 +0200)] 
[3.14] GH-132983: remove empty_bytes from _zstd module state (GH-133785) (#133788)

GH-132983: remove empty_bytes from _zstd module state (GH-133785)
(cherry picked from commit 98e2c3af4794d6c6ebe47b20badbd31c542d944e)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] gh-132983: Simplify ``_zstd_exec()`` (GH-133775) (#133786)
Miss Islington (bot) [Fri, 9 May 2025 20:15:32 +0000 (22:15 +0200)] 
[3.14] gh-132983: Simplify ``_zstd_exec()`` (GH-133775) (#133786)

gh-132983: Simplify ``_zstd_exec()`` (GH-133775)
(cherry picked from commit bbe9c31edc4fc3e1cdc908e9a06593c394f4bfdb)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] gh-133532: Run GC fast cycles test in subprocess. (gh-133533) (gh-133716)
Miss Islington (bot) [Fri, 9 May 2025 19:30:27 +0000 (21:30 +0200)] 
[3.14] gh-133532: Run GC fast cycles test in subprocess. (gh-133533) (gh-133716)

This makes the test more reliable since there are not extra objects on the heap leftover
from other tests.

(cherry picked from commit 8598e57942f26ca1feecc0aefb421935e4e9f2aa)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
6 months ago[3.14] Update HTTP links in the _pydatetime docstrings (GH-133025) (GH-133781)
Miss Islington (bot) [Fri, 9 May 2025 19:06:49 +0000 (21:06 +0200)] 
[3.14] Update HTTP links in the _pydatetime docstrings (GH-133025) (GH-133781)

(cherry picked from commit aed28eb5a0c55e246ad24e34dc2be0d9dccb8bf0)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
6 months ago[3.14] gh-133519: Add console to resources in libregrtest (GH-133520) (#133776)
Miss Islington (bot) [Fri, 9 May 2025 16:56:39 +0000 (18:56 +0200)] 
[3.14] gh-133519: Add console to resources in libregrtest (GH-133520) (#133776)

gh-133519: Add console to resources in libregrtest (GH-133520)

Add console to resources in libregrtest
(cherry picked from commit 4274b471562badc1462f520968d8e1e58ba9fe93)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
6 months ago[3.14] gh-133741: Fix _can_strace(): check --trace option (GH-133766) (#133774)
Miss Islington (bot) [Fri, 9 May 2025 16:52:23 +0000 (18:52 +0200)] 
[3.14] gh-133741: Fix _can_strace(): check --trace option (GH-133766) (#133774)

gh-133741: Fix _can_strace(): check --trace option (GH-133766)

The --trace option needs strace 5.5 or newer.
(cherry picked from commit 67086282fcc1fc944be2e723cfc05de16109793a)

Co-authored-by: Victor Stinner <vstinner@python.org>
6 months ago[3.14] gh-123299: Some copyedits to What's New in 3.14 (GH-133622) (#133771)
Miss Islington (bot) [Fri, 9 May 2025 16:12:48 +0000 (18:12 +0200)] 
[3.14] gh-123299: Some copyedits to What's New in 3.14 (GH-133622) (#133771)

Co-authored-by: Éric <earaujo@caravan.coop>
6 months ago[3.14] gh-46236: Document PyUnicode_BuildEncodingMap (GH-133270) (#133769)
Miss Islington (bot) [Fri, 9 May 2025 15:24:59 +0000 (17:24 +0200)] 
[3.14] gh-46236: Document PyUnicode_BuildEncodingMap (GH-133270) (#133769)

gh-46236: Document PyUnicode_BuildEncodingMap (GH-133270)
(cherry picked from commit f34ec09ba51070b0693d7ced8e57e77d71beb48d)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
6 months ago[3.14] GH-132983: Restore libzstd fallback detection (GH-133565) (#133757)
Miss Islington (bot) [Fri, 9 May 2025 14:59:07 +0000 (16:59 +0200)] 
[3.14] GH-132983: Restore libzstd fallback detection (GH-133565) (#133757)

GH-132983: Restore libzstd fallback detection (GH-133565)
(cherry picked from commit 2c7cac4c0d903fa1881579304703c9ed2d5c5489)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] gh-132983: Clean-ups for ``_zstd`` (GH-133670) (#133756)
Miss Islington (bot) [Fri, 9 May 2025 14:58:58 +0000 (16:58 +0200)] 
[3.14] gh-132983: Clean-ups for ``_zstd`` (GH-133670) (#133756)

gh-132983: Clean-ups for ``_zstd`` (GH-133670)
(cherry picked from commit c2a5d4b3839577342dc8e5b1a849f0c23dc55bb2)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] gh-133403: Check `Tools/build/generate-build-details.py` with mypy (GH-133735...
Miss Islington (bot) [Fri, 9 May 2025 14:48:05 +0000 (16:48 +0200)] 
[3.14] gh-133403: Check `Tools/build/generate-build-details.py` with mypy (GH-133735) (#133764)

gh-133403: Check `Tools/build/generate-build-details.py` with mypy (GH-133735)
(cherry picked from commit cd2f234ad2ddd95e2d650edac5a6d593c865756a)

Co-authored-by: sobolevn <mail@sobolevn.me>
6 months ago[3.14] GH-132983: Remove subclassing support from zstd types (GH-133694) (#133762)
Miss Islington (bot) [Fri, 9 May 2025 14:43:52 +0000 (16:43 +0200)] 
[3.14] GH-132983: Remove subclassing support from zstd types (GH-133694) (#133762)

GH-132983: Remove subclassing support from zstd types (GH-133694)

For consistency with ``bz2``, ``lzma``, and ``zlib``.
(cherry picked from commit bd7c5859c6c4f23877afdf6ab7b8209de50127a6)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] gh-133682: Fix inconsistent set ordering in annotationlib test (GH-133702...
Miss Islington (bot) [Fri, 9 May 2025 14:27:13 +0000 (16:27 +0200)] 
[3.14] gh-133682: Fix inconsistent set ordering in annotationlib test (GH-133702) (#133754)

gh-133682: Fix inconsistent set ordering in annotationlib test (GH-133702)
(cherry picked from commit a2a0fa91c483964a280b7b788418217b3d6d1411)

Co-authored-by: Akshat Gupta <akshat.gupta24@gmail.com>
6 months ago[3.14] Docs: use boolean constants for returning boolean value (GH-133325) (GH-133760)
Miss Islington (bot) [Fri, 9 May 2025 14:17:53 +0000 (16:17 +0200)] 
[3.14] Docs: use boolean constants for returning boolean value (GH-133325) (GH-133760)

(cherry picked from commit 076004ae5461cf3a7fe248a38e28afff33acdd14)

Co-authored-by: Yongzi Li <1538321957@qq.com>
6 months ago[3.14] Manpage: -X gil is not related to PYTHON_HISTORY (GH-133753) (#133758)
Miss Islington (bot) [Fri, 9 May 2025 14:17:33 +0000 (16:17 +0200)] 
[3.14] Manpage: -X gil is not related to PYTHON_HISTORY (GH-133753) (#133758)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
6 months ago[3.14] gh-133644: update `Py_InteractiveFlag` deprecation notice (GH-133749) (#133751)
Miss Islington (bot) [Fri, 9 May 2025 13:48:35 +0000 (15:48 +0200)] 
[3.14] gh-133644: update `Py_InteractiveFlag` deprecation notice (GH-133749) (#133751)

gh-133644: update `Py_InteractiveFlag` deprecation notice (GH-133749)
(cherry picked from commit 3ed8d6fdd1145c48ec7c3e668636cc301de8959e)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
6 months ago[3.14] gh-133439: Fix dot commands with trailing spaces are mistaken for multi-line...
Miss Islington (bot) [Fri, 9 May 2025 12:17:24 +0000 (14:17 +0200)] 
[3.14] gh-133439: Fix dot commands with trailing spaces are mistaken for multi-line sqlite statements in the sqlite3 command-line interface (GH-133440) (GH-133738)

(cherry picked from commit ebd4881db2e8448b238d8ca2f6fcf331826132dd)

Co-authored-by: Tan Long <tanloong@foxmail.com>
6 months ago[3.14] gh-133581: Fix refleak in t-string AST unparsing (GH-133724) (#133731)
Miss Islington (bot) [Fri, 9 May 2025 07:38:12 +0000 (09:38 +0200)] 
[3.14] gh-133581: Fix refleak in t-string AST unparsing (GH-133724) (#133731)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
6 months ago[3.14] gh-133412: amend docs for the `inst` definition (GH-133708) (#133729)
Miss Islington (bot) [Fri, 9 May 2025 07:12:41 +0000 (09:12 +0200)] 
[3.14] gh-133412: amend docs for the `inst` definition (GH-133708) (#133729)

gh-133412: amend docs for the `inst` definition (GH-133708)

The `stack_effect` is incorrectly documented as being allowed to be optional.
(cherry picked from commit f77dac66e1867cfdf6f7549822dd64416f6063bc)

Co-authored-by: Nybblista <170842536+nybblista@users.noreply.github.com>
6 months ago[3.14] gh-69426: HTMLParser: only unescape properly terminated character entities...
Miss Islington (bot) [Fri, 9 May 2025 06:43:21 +0000 (08:43 +0200)] 
[3.14] gh-69426: HTMLParser: only unescape properly terminated character entities in attribute values (GH-95215) (GH-133704)

According to the HTML5 spec, named character references in attribute values
should only be processed if they are not followed by an ASCII alphanumeric,
or an equals sign.
(cherry picked from commit 77b14a6d58e527f915966446eb0866652a46feb5)

https: //html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state

Co-authored-by: Sascha Ißbrücker <sascha.issbruecker@googlemail.com>
6 months ago[3.14] gh-132917: Use /proc/self/status for mem usage info. (GH-133544) (gh-133718)
Miss Islington (bot) [Thu, 8 May 2025 23:37:59 +0000 (01:37 +0200)] 
[3.14] gh-132917: Use /proc/self/status for mem usage info. (GH-133544) (gh-133718)

On Linux, use /proc/self/status for mem usage info.  Using smaps_rollup is quite a lot slower and
we can get the similar info from /proc/self/status.
(cherry picked from commit 751db4e64993b5af98aa1c12cc9d7c7c5882961b)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
6 months ago[3.14] gh-133467: Add TSAN suppressions for races in typeobject (gh-133534) (gh-133717)
Miss Islington (bot) [Thu, 8 May 2025 23:37:08 +0000 (01:37 +0200)] 
[3.14] gh-133467: Add TSAN suppressions for races in typeobject (gh-133534) (gh-133717)

(cherry picked from commit 8679c8d5ccf657835a88de5095d4fc6e2eb47633)

6 months ago[3.14] gh-133541: Handle SyntaxError raised by the tokenizer on user input (GH-133606...
Miss Islington (bot) [Thu, 8 May 2025 20:41:01 +0000 (22:41 +0200)] 
[3.14] gh-133541: Handle SyntaxError raised by the tokenizer on user input (GH-133606) (#133709)

6 months agogh-133626: Ensure the traditional Windows installer doesn't accidentally pick up...
Miss Islington (bot) [Thu, 8 May 2025 20:17:11 +0000 (22:17 +0200)] 
gh-133626: Ensure the traditional Windows installer doesn't accidentally pick up site-packages (GH-133693)

(cherry picked from commit 6ce469dcba482772bc94c4048e90fa9598897c4a)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 months ago[3.14] Fix typo in pending-removal-in-3.14.rst (GH-133680) (GH-133697)
Miss Islington (bot) [Thu, 8 May 2025 19:03:10 +0000 (21:03 +0200)] 
[3.14] Fix typo in pending-removal-in-3.14.rst (GH-133680) (GH-133697)

(cherry picked from commit 9546eeea90c8deb8570a0ef621f075c3c766bc12)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
6 months ago[3.14] gh-103092: Support subinterpreters in ``_zstd`` (GH-133674) (#133695)
Miss Islington (bot) [Thu, 8 May 2025 18:38:40 +0000 (20:38 +0200)] 
[3.14] gh-103092: Support subinterpreters in ``_zstd`` (GH-133674) (#133695)

gh-103092: Support subinterpreters in ``_zstd`` (GH-133674)
(cherry picked from commit 6f6f48d28963f54c4b2b42d526e2e3045eb1fc1e)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months agoAdds docs to help with troubleshooting pip installs. (GH-133692)
Miss Islington (bot) [Thu, 8 May 2025 18:35:57 +0000 (20:35 +0200)] 
Adds docs to help with troubleshooting pip installs. (GH-133692)

(cherry picked from commit dd670fa7ca1db79d6daaac807ac924aa547257d0)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 months ago[3.14] gh-133403: Check `Tools/build/verify_ensurepip_wheels.py` with mypy (GH-133453...
Miss Islington (bot) [Thu, 8 May 2025 18:20:13 +0000 (20:20 +0200)] 
[3.14] gh-133403: Check `Tools/build/verify_ensurepip_wheels.py` with mypy (GH-133453) (#133689)

gh-133403: Check `Tools/build/verify_ensurepip_wheels.py` with mypy (GH-133453)
(cherry picked from commit 5f3d3f2a6c8ddf7a6be340c3f4c696e2a5eb51f0)

Co-authored-by: Flosckow <66554425+Flosckow@users.noreply.github.com>
Co-authored-by: Daniil Dumchenko <dumchenko.de@sibvaleo.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
6 months ago[3.14] gh-132762: Fix underallocation bug in `dict.fromkeys()`(gh-133627) (gh-133685)
Miss Islington (bot) [Thu, 8 May 2025 17:39:39 +0000 (19:39 +0200)] 
[3.14] gh-132762: Fix underallocation bug in `dict.fromkeys()`(gh-133627) (gh-133685)

The function `dict_set_fromkeys()` adds elements of a set to an existing
dictionary. The size of the expanded dictionary was estimated with
`PySet_GET_SIZE(iterable)`, which did not take into account the size of the
existing dictionary.
(cherry picked from commit 421ba589d02b53131f793889d221ef3b1f1410a4)

Co-authored-by: Angela Liss <59097311+angela-tarantula@users.noreply.github.com>
6 months ago[3.14] gh-132886: use relaxed atomics for `sock_fd` in gil builds in socket module...
Miss Islington (bot) [Thu, 8 May 2025 17:30:40 +0000 (19:30 +0200)] 
[3.14] gh-132886: use relaxed atomics for `sock_fd` in gil builds in socket module (GH-133208) (#133683)

gh-132886: use relaxed atomics for `sock_fd` in gil builds in socket module (GH-133208)
(cherry picked from commit 2d82ab761ab8051440e486ca68355514f3df42aa)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
6 months ago[3.14] gh-132775: Add _PyCode_GetScriptXIData() (gh-133676)
Miss Islington (bot) [Thu, 8 May 2025 16:05:34 +0000 (18:05 +0200)] 
[3.14] gh-132775: Add _PyCode_GetScriptXIData() (gh-133676)

This converts functions, code, str, bytes, bytearray, and memoryview objects to PyCodeObject,
and ensure that the object looks like a script.  That means no args, no return, and no closure.
_PyCode_GetPureScriptXIData() takes it a step further and ensures there are no globals.

We also add _PyObject_SupportedAsScript() to the internal C-API.

(cherry picked from commit c81fa2b9cd1ed4d4ff5c13984d6582c27e5f2633, AKA gh-133480)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
6 months ago[3.14] gh-131031: Fix test_pickle when invoked directly (GH-133356) (GH-133673)
Miss Islington (bot) [Thu, 8 May 2025 15:19:58 +0000 (17:19 +0200)] 
[3.14] gh-131031: Fix test_pickle when invoked directly (GH-133356) (GH-133673)

(cherry picked from commit e15bbfafbcc9153fa0b05beb806984e288fdefe4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 months ago[3.14] gh-133581: Improve AST unparsing of t-strings (GH-133635) (#133666)
Miss Islington (bot) [Thu, 8 May 2025 13:40:44 +0000 (15:40 +0200)] 
[3.14] gh-133581: Improve AST unparsing of t-strings (GH-133635) (#133666)

gh-133581: Improve AST unparsing of t-strings (GH-133635)
(cherry picked from commit bfac7d2edc6e461e21b4762f8db03fca85f3a0be)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
6 months ago[3.14] gh-133454: Mark tests with many threads that use much memory as bigmem (GH...
Miss Islington (bot) [Thu, 8 May 2025 13:24:38 +0000 (15:24 +0200)] 
[3.14] gh-133454: Mark tests with many threads that use much memory as bigmem (GH-133456) (GH-133663)

(cherry picked from commit 26839eae2079bd797491dfdcc00eaca1dbcbf77c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 months agogh-133597: Fix memory leak if error occurred in _sys_getwindowsversion_from_kernel32...
Miss Islington (bot) [Thu, 8 May 2025 11:36:38 +0000 (13:36 +0200)] 
gh-133597: Fix memory leak if error occurred in _sys_getwindowsversion_from_kernel32 (GH-133598)

(cherry picked from commit 0ec8fc83a83914d2ae97e52529e98ce63aaf831c)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
6 months ago[3.14] gh-133583: Add support for fixed size unsigned integers in argument parsing...
Miss Islington (bot) [Thu, 8 May 2025 09:54:44 +0000 (11:54 +0200)] 
[3.14] gh-133583: Add support for fixed size unsigned integers in argument parsing (GH-133584) (GH-133650)

* Add Argument Clinic converters: uint8, uint16, uint32, uint64.
* Add private C API: _PyLong_UInt8_Converter(),
  _PyLong_UInt16_Converter(), _PyLong_UInt32_Converter(),
  _PyLong_UInt64_Converter().
(cherry picked from commit 4c914e7a36033d5e8d52cdef3a4063eb9b012ed2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 months ago[3.14] gh-127833: Add links to token types to the lexical analysis intro (GH-131468...
Miss Islington (bot) [Thu, 8 May 2025 09:46:47 +0000 (11:46 +0200)] 
[3.14] gh-127833: Add links to token types to the lexical analysis intro (GH-131468) (#133652)

gh-127833: Add links to token types to the lexical analysis intro (GH-131468)
(cherry picked from commit 45bb5ba61a8d6dcaa44312b67fe6bade5e2ad992)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] Doc: Allow translating a code block in the tutorial (GH-131353) (#133648)
Miss Islington (bot) [Thu, 8 May 2025 09:28:58 +0000 (11:28 +0200)] 
[3.14] Doc: Allow translating a code block in the tutorial (GH-131353) (#133648)

Doc: Allow translating a code block in the tutorial (GH-131353)
(cherry picked from commit 3224b99872d8ed030181e5d009ea64e8672a68ee)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] gh-133639: Fix `test_auto_indent_default()` doesn't run `input_code` (GH-13364...
Miss Islington (bot) [Thu, 8 May 2025 08:50:57 +0000 (10:50 +0200)] 
[3.14] gh-133639: Fix `test_auto_indent_default()` doesn't run `input_code` (GH-133640) (#133646)

6 months ago[3.14] gh-133641: Doc: Add missing source link in ``concurrent.futures`` (GH-133642...
Miss Islington (bot) [Thu, 8 May 2025 08:34:20 +0000 (10:34 +0200)] 
[3.14] gh-133641: Doc: Add missing source link in ``concurrent.futures`` (GH-133642) (#133643)

gh-133641: Doc: Add missing source link in ``concurrent.futures`` (GH-133642)
(cherry picked from commit 4fcd37756382206e5a4a387cec9266815adca007)

Co-authored-by: Jonas Obrist <ojiidotch@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] gh-125028: Prohibit placeholders in partial keywords (GH-126062) (GH-133645)
Miss Islington (bot) [Thu, 8 May 2025 08:26:14 +0000 (10:26 +0200)] 
[3.14] gh-125028: Prohibit placeholders in partial keywords (GH-126062) (GH-133645)

(cherry picked from commit afed5f88359c73f798ff6f0064e37ac1a1f0759b)

Co-authored-by: dgpb <3577712+dg-pb@users.noreply.github.com>
6 months ago[3.14] gh-132983: Remove pyzstd in identifiers (GH-133535) (#133629)
Miss Islington (bot) [Thu, 8 May 2025 07:11:49 +0000 (09:11 +0200)] 
[3.14] gh-132983: Remove pyzstd in identifiers (GH-133535) (#133629)

6 months ago[3.14] gh-133403: Type `Tools/build/update_file.py` and check it with `mypy` (GH...
Miss Islington (bot) [Thu, 8 May 2025 06:32:05 +0000 (08:32 +0200)] 
[3.14] gh-133403: Type `Tools/build/update_file.py` and check it with `mypy` (GH-133404) (#133603)

gh-133403: Type `Tools/build/update_file.py` and check it with `mypy` (GH-133404)
(cherry picked from commit 50b52cba2d13a1854bc835412ac3f3c0ad42b5ba)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Zachary Ware <zach@python.org>
6 months ago[3.14] gh-133551: Skip annotationlib for now in ast roundtrip tests (GH-133634) ...
Miss Islington (bot) [Thu, 8 May 2025 03:01:33 +0000 (05:01 +0200)] 
[3.14] gh-133551: Skip annotationlib for now in ast roundtrip tests (GH-133634) (#133636)

gh-133551: Skip annotationlib for now in ast roundtrip tests (GH-133634)
(cherry picked from commit 0a3ccb8dff2bd140f800d9e0b00549d8f1ead929)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
6 months ago[3.14] gh-133555: Allow regenerating the parser with Python < 3.14 (GH-133557) (...
Miss Islington (bot) [Thu, 8 May 2025 01:54:42 +0000 (03:54 +0200)] 
[3.14] gh-133555: Allow regenerating the parser with Python < 3.14 (GH-133557) (#133630)

gh-133555: Allow regenerating the parser with Python < 3.14 (GH-133557)
(cherry picked from commit b48599b8017f896c965e89c402bb70feef49808a)

Co-authored-by: Alex Prengère <2138730+alexprengere@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months ago[3.14] gh-127833: lexical analysis: Add backticks to BOM example (GH-132407) (#133632)
Miss Islington (bot) [Thu, 8 May 2025 01:40:41 +0000 (03:40 +0200)] 
[3.14] gh-127833: lexical analysis: Add backticks to BOM example (GH-132407) (#133632)

gh-127833: lexical analysis: Add backticks to BOM example (GH-132407)
(cherry picked from commit 0552ce0fb24d33b51fdd02a589ede95aabc0d8b5)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
6 months ago[3.14] gh-133551: Support t-strings in annotationlib (GH-133553) (#133628)
Miss Islington (bot) [Thu, 8 May 2025 01:37:03 +0000 (03:37 +0200)] 
[3.14] gh-133551: Support t-strings in annotationlib (GH-133553) (#133628)

gh-133551: Support t-strings in annotationlib (GH-133553)

I don't know why you'd use t-strings in annotations, but now if you do,
the STRING format will do a great job of recovering the source code.
(cherry picked from commit 90f476e0f8dbb3a8603f67200c2422fb098c166c)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
6 months ago[3.14] gh-132775: Unrevert "Add _PyCode_VerifyStateless()" (gh-133625)
Eric Snow [Thu, 8 May 2025 00:00:33 +0000 (18:00 -0600)] 
[3.14] gh-132775: Unrevert "Add _PyCode_VerifyStateless()" (gh-133625)

This reverts commit 3c73cf5 (gh-133497), which itself reverted
the original commit d270bb5 (gh-133221).

We reverted the original change due to failing android tests.
The checks in _PyCode_CheckNoInternalState() were too strict,
so we've relaxed them.

6 months ago[3.14] gh-133516: Raise `ValueError` when constants `True`, `False` or `None` are...
Miss Islington (bot) [Wed, 7 May 2025 22:26:06 +0000 (00:26 +0200)] 
[3.14] gh-133516: Raise `ValueError` when constants `True`, `False` or `None` are used as an identifier after NFKC normalization (GH-133523) (#133596)

6 months ago[3.14] gh-133558: Skip test_pdb tests on FreeBSD (GH-133566) (#133616)
Miss Islington (bot) [Wed, 7 May 2025 22:20:17 +0000 (00:20 +0200)] 
[3.14] gh-133558: Skip test_pdb tests on FreeBSD (GH-133566) (#133616)

gh-133558: Skip test_pdb tests on FreeBSD (GH-133566)

'\x08' is not interpreted as backspace on FreeBSD.
(cherry picked from commit 79b8a32fcb30b2c6549bacecdc7081ebd50d6e17)

Co-authored-by: Victor Stinner <vstinner@python.org>
6 months ago[3.14] gh-133361: move the explanation of dict equal before its use (GH-133424) ...
Miss Islington (bot) [Wed, 7 May 2025 22:10:51 +0000 (00:10 +0200)] 
[3.14] gh-133361: move the explanation of dict equal before its use (GH-133424) (#133620)

gh-133361: move the explanation of dict equal before its use (GH-133424)

Also move up the explanation of insertion order preservation.  Both paragraphs seemed out of place down where they were.
---------
(cherry picked from commit 61ac88c06e0286cfc6465a47552d41b7dd7e083e)

Co-authored-by: Yongzi Li <1538321957@qq.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 months ago[3.14] gh-131535: Fix stale example in html.parser docs, make examples doctests ...
Brian Schubert [Wed, 7 May 2025 22:03:30 +0000 (18:03 -0400)] 
[3.14] gh-131535: Fix stale example in html.parser docs, make examples doctests (GH-131551) (GH-133589)

(cherry picked from commit ee76e36d76a0e6916c0afc41228b043ab5174685)

6 months ago[3.14] Forward-port 'check-abi' CI job from 3.13 (GH-133614)
Zachary Ware [Wed, 7 May 2025 21:35:46 +0000 (16:35 -0500)] 
[3.14] Forward-port 'check-abi' CI job from 3.13 (GH-133614)

Also add the python3.14.abi file as generated by the new job and remove
the 'main branch only' entry from .gitignore.

The only difference from the 3.13 job is the addition of `with.python-version: 3.x`
to the `setup-python` configuration to pacify a warning.

6 months agoPost 3.14.0b1
Hugo van Kemenade [Wed, 7 May 2025 15:45:45 +0000 (18:45 +0300)] 
Post 3.14.0b1

6 months agoPython 3.14.0b1 v3.14.0b1
Hugo van Kemenade [Tue, 6 May 2025 15:33:32 +0000 (18:33 +0300)] 
Python 3.14.0b1

6 months agoPython 3.14.0b1
Hugo van Kemenade [Tue, 6 May 2025 15:32:57 +0000 (18:32 +0300)] 
Python 3.14.0b1

6 months agogh-123299: Copyedit "What's New in Python 3.14" (#133452)
Hugo van Kemenade [Tue, 6 May 2025 12:05:20 +0000 (15:05 +0300)] 
gh-123299: Copyedit "What's New in Python 3.14" (#133452)

Co-authored-by: Daniel Hollas <danekhollas@gmail.com>
6 months agoGH-132983: Remove zstd version check in the header file (#133502)
Adam Turner [Tue, 6 May 2025 12:04:50 +0000 (13:04 +0100)] 
GH-132983: Remove zstd version check in the header file (#133502)

6 months agogh-77065: Add optional keyword-only argument `echo_char` for `getpass.getpass` (...
Semyon Moroz [Tue, 6 May 2025 11:56:20 +0000 (15:56 +0400)] 
gh-77065: Add optional keyword-only argument `echo_char` for `getpass.getpass` (#130496)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
6 months agogh-132917: Fix data race detected by tsan (#133508)
T. Wouters [Tue, 6 May 2025 11:23:10 +0000 (13:23 +0200)] 
gh-132917: Fix data race detected by tsan (#133508)

Fix data race detected by tsan
(https://github.com/python/cpython/actions/runs/14857021107/job/41712717208?pr=133502):
young.count can be modified by other threads even while the gcstate is
locked.

This is the simplest fix to (potentially) unblock beta 1, although this
particular code path seems like it could just be an atomic swap followed by
an atomic add, without having the lock at all.

6 months agoRevert "gh-133395: add option for extension modules to specialize BINARY_OP/SUBSCR...
Irit Katriel [Tue, 6 May 2025 10:12:26 +0000 (11:12 +0100)] 
Revert "gh-133395: add option for extension modules to specialize BINARY_OP/SUBSCR, apply to arrays (#133396)" (#133498)

6 months agogh-132775: Revert "gh-132775: Add _PyCode_VerifyStateless() (gh-133221)" (#133497)
Petr Viktorin [Tue, 6 May 2025 10:09:41 +0000 (12:09 +0200)] 
gh-132775: Revert "gh-132775: Add _PyCode_VerifyStateless() (gh-133221)" (#133497)

6 months agogh-133490: Fix syntax highlighting for remote PDB (#133494)
Matt Wozniski [Tue, 6 May 2025 09:44:49 +0000 (05:44 -0400)] 
gh-133490: Fix syntax highlighting for remote PDB (#133494)

6 months agogh-132983: Add What's New entry for PEP 784 implementation (#133495)
Emma Smith [Tue, 6 May 2025 06:54:40 +0000 (23:54 -0700)] 
gh-132983: Add What's New entry for PEP 784 implementation (#133495)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
6 months agogh-81793: Replace skip decorators with specific helpers (GH-133493)
Zachary Ware [Tue, 6 May 2025 05:58:38 +0000 (00:58 -0500)] 
gh-81793: Replace skip decorators with specific helpers (GH-133493)

6 months agotyping: Modernize type annotations on IO classes (#133487)
Jelle Zijlstra [Tue, 6 May 2025 05:32:38 +0000 (22:32 -0700)] 
typing: Modernize type annotations on IO classes (#133487)

Remove unnecessary strings, use of Union[], use of List[], and reliance
on implicit Optional.

These type annotations are not actually used for anything but I feel
we should set a good example.

6 months agogh-133490: Add color support to remote PDB (#133491)
Matt Wozniski [Tue, 6 May 2025 05:28:16 +0000 (01:28 -0400)] 
gh-133490: Add color support to remote PDB (#133491)

6 months agoGH-113464: Add the JIT to What's New (GH-133486)
Brandt Bucher [Tue, 6 May 2025 03:06:41 +0000 (20:06 -0700)] 
GH-113464: Add the JIT to What's New (GH-133486)

6 months agogh-132493: Avoid eager evaluation of annotations in `@reprlib.recursive_repr()` ...
Jelle Zijlstra [Tue, 6 May 2025 02:20:11 +0000 (19:20 -0700)] 
gh-132493: Avoid eager evaluation of annotations in `@reprlib.recursive_repr()` (#133411)

6 months agogh-130117: Document why nested `Union`, `Literal`, and `Annotated` types referenced...
Valentin Berlier [Tue, 6 May 2025 02:05:16 +0000 (04:05 +0200)] 
gh-130117: Document why nested `Union`, `Literal`, and `Annotated` types referenced through a type alias are not flattened (#130119)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
6 months agoRemove duplicate includes: Include/internal/ (#132624)
Adam Turner [Tue, 6 May 2025 01:08:42 +0000 (02:08 +0100)] 
Remove duplicate includes: Include/internal/ (#132624)

6 months agogh-132983: Add the `compression.zstd` pacakge and tests (#133365)
Emma Smith [Tue, 6 May 2025 00:38:08 +0000 (17:38 -0700)] 
gh-132983: Add the `compression.zstd` pacakge and tests (#133365)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Co-authored-by: Rogdham <contact@rogdham.net>
6 months agoGH-132983: Use a standard autoconf version check for zstd (#133479)
Adam Turner [Tue, 6 May 2025 00:35:02 +0000 (01:35 +0100)] 
GH-132983: Use a standard autoconf version check for zstd (#133479)

6 months agogh-102567: Add -X importtime=2 for logging an importtime message for already-loaded...
Noah Kim [Tue, 6 May 2025 00:03:55 +0000 (20:03 -0400)] 
gh-102567: Add -X importtime=2 for logging an importtime message for already-loaded modules (#118655)

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
6 months agoGH-132983: Build ``_zstd`` on Windows (#133366)
Adam Turner [Mon, 5 May 2025 23:58:47 +0000 (00:58 +0100)] 
GH-132983: Build ``_zstd`` on Windows (#133366)

6 months agogh-132775: Add _PyCode_GetXIData() (gh-133475)
Eric Snow [Mon, 5 May 2025 23:46:03 +0000 (17:46 -0600)] 
gh-132775: Add _PyCode_GetXIData() (gh-133475)

6 months agogh-132775: Do Not Set __name__ to __main__ With _PyPickle_GetXIData() (gh-133472)
Eric Snow [Mon, 5 May 2025 23:25:26 +0000 (17:25 -0600)] 
gh-132775: Do Not Set __name__ to __main__ With _PyPickle_GetXIData() (gh-133472)

This is a follow-up to gh-133107.  I realized that we could end up with an
infinite recursion if we try to run a function from __main__ in a subinterpreter.

6 months agogh-91048: Add filename:line_no information to `asyncio pstree` (#133478)
Łukasz Langa [Mon, 5 May 2025 23:07:33 +0000 (01:07 +0200)] 
gh-91048: Add filename:line_no information to `asyncio pstree` (#133478)

6 months agogh-118761: Add test_lazy_import for more modules (#133057)
Daniel Hollas [Mon, 5 May 2025 22:46:05 +0000 (23:46 +0100)] 
gh-118761: Add test_lazy_import for more modules (#133057)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>