]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 months ago[3.14] gh-134150: Clarify distinction between JSON and Python objects (GH-134154...
Miss Islington (bot) [Sun, 18 May 2025 01:54:00 +0000 (03:54 +0200)] 
[3.14] gh-134150: Clarify distinction between JSON and Python objects (GH-134154) (#134166)

gh-134150: Clarify distinction between JSON and Python objects (GH-134154)

* gh-134150: Clarify distinction between JSON objects and Python objects in json module docs

* Revert change to JSON introduction

* Clarify occurrences of "object literal" as JSON
(cherry picked from commit fa4e088668d4a41f9be5babe7edd5409290ee92a)

Co-authored-by: Micha Albert <micha@2231puppy.tech>
5 months ago[3.14] gh-134064: Fix sys.remote_exec() error checking (GH-134067) (#134162)
Miss Islington (bot) [Sat, 17 May 2025 22:50:00 +0000 (00:50 +0200)] 
[3.14] gh-134064: Fix sys.remote_exec() error checking (GH-134067) (#134162)

gh-134064: Fix sys.remote_exec() error checking (GH-134067)
(cherry picked from commit 009e7b36981fd07f7cca1fdcfcf172ce1584fac7)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-134119: Fix crash from calling next() on exhausted template iterator (GH...
Miss Islington (bot) [Sat, 17 May 2025 19:48:54 +0000 (21:48 +0200)] 
[3.14] gh-134119: Fix crash from calling next() on exhausted template iterator (GH-134120) (#134153)

gh-134119: Fix crash from calling next() on exhausted template iterator (GH-134120)
(cherry picked from commit fc7f4c36664314393bd4c30355e21bd7aeac524d)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] gh-88275: Add missing `__init__` method to `match` example (GH-120281) (#134142)
Miss Islington (bot) [Sat, 17 May 2025 13:17:23 +0000 (15:17 +0200)] 
[3.14] gh-88275: Add missing `__init__` method to `match` example (GH-120281) (#134142)

gh-88275: Add missing `__init__` method to `match` example (GH-120281)
(cherry picked from commit 7a9d46295a497669eaa6e647c33ab71c8cf620a1)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
5 months ago[3.14] Docs: fix spelling of "test case" in `unittest` documentation (GH-134137)...
Miss Islington (bot) [Sat, 17 May 2025 12:03:33 +0000 (14:03 +0200)] 
[3.14] Docs: fix spelling of "test case" in `unittest` documentation (GH-134137) (#134138)

Docs: fix spelling of "test case" in `unittest` documentation (GH-134137)
(cherry picked from commit b41d79c776af4bfa5d28fc2036c9137978294b6a)

Co-authored-by: Clifford Gama <53076065+cliff688@users.noreply.github.com>
5 months ago[3.14] Docs: C API: Improve documentation around non-Python threads with subinterpret...
Miss Islington (bot) [Sat, 17 May 2025 09:04:42 +0000 (11:04 +0200)] 
[3.14] Docs: C API: Improve documentation around non-Python threads with subinterpreters (GH-131087) (GH-134130)

Docs: C API: Improve documentation around non-Python threads with subinterpreters (GH-131087)

(cherry picked from commit af6b3b825f3b653ffdb29fc1dd36de8acfe0a641)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-113878: fix `versionadded` in `dataclasses.field()` documentation (GH-13406...
Miss Islington (bot) [Sat, 17 May 2025 08:06:04 +0000 (10:06 +0200)] 
[3.14] gh-113878: fix `versionadded` in `dataclasses.field()` documentation (GH-134065) (#134128)

gh-113878: fix `versionadded` in `dataclasses.field()` documentation (GH-134065)
(cherry picked from commit 9d73875072e20bf3cc87cadc553d6a6fb4f71df5)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
5 months ago[3.14] gh-133881: add forward reference to `list.sort()` in lambda expression tutoria...
Miss Islington (bot) [Sat, 17 May 2025 08:05:47 +0000 (10:05 +0200)] 
[3.14] gh-133881: add forward reference to `list.sort()` in lambda expression tutorial (GH-133910) (#134126)

gh-133881: add forward reference to `list.sort()` in lambda expression tutorial (GH-133910)
(cherry picked from commit c1c9ad1d5a62a591eb2f0f0d29f3fa02e0949f14)

Co-authored-by: Oleg Burnaev <51371645+Shepard2154@users.noreply.github.com>
5 months ago[3.14] gh-134098: Fix handling %-encoded trailing slash in SimpleHTTPRequestHandler...
Miss Islington (bot) [Sat, 17 May 2025 07:37:43 +0000 (09:37 +0200)] 
[3.14] gh-134098: Fix handling %-encoded trailing slash in SimpleHTTPRequestHandler (GH-134099) (GH-134123)

(cherry picked from commit 2f1ecb3bc474a5895dce090cca7b8afe7b560040)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-133889: Improve tests for SimpleHTTPRequestHandler (GH-134102) (GH-134121)
Miss Islington (bot) [Sat, 17 May 2025 07:27:38 +0000 (09:27 +0200)] 
[3.14] gh-133889: Improve tests for SimpleHTTPRequestHandler (GH-134102) (GH-134121)

(cherry picked from commit fcaf009907fc39d604907315155c1f1de811dd88)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-134109: Fix showing comments in pydoc output for argparse (GH-134110) ...
Miss Islington (bot) [Fri, 16 May 2025 20:56:24 +0000 (22:56 +0200)] 
[3.14] gh-134109: Fix showing comments in pydoc output for argparse (GH-134110) (GH-134112)

Comments immediately preceding the object's source code are used
if the object has no docstring.
Comments that do not describe the object should be separated from
the following source code by an empty line.
(cherry picked from commit 71cf4dd622832848cace358a7f8444243afd2e83)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-117026: Remove outdated sentence in SimpleHTTPRequestHandler docs (GH-11702...
Miss Islington (bot) [Fri, 16 May 2025 19:23:52 +0000 (21:23 +0200)] 
[3.14] gh-117026: Remove outdated sentence in SimpleHTTPRequestHandler docs (GH-117027) (GH-134107)

The code was changed in 0f7cddc308b297e6a1c2dd61503acea38401656f (bpo-839496/gh-39531).
(cherry picked from commit ea2d707bd59963bd4f53407108026930ff12ae56)

Co-authored-by: Saleh Dehqanpour <salehdeh76@gmail.com>
5 months ago[3.14] gh-133286: add explanation about `seq` for pathlib Pattern Language (GH-133340...
Miss Islington (bot) [Fri, 16 May 2025 19:20:47 +0000 (21:20 +0200)] 
[3.14] gh-133286: add explanation about `seq` for pathlib Pattern Language (GH-133340) (#134105)

gh-133286: add explanation about `seq` for pathlib Pattern Language (GH-133340)
(cherry picked from commit ac8df4b5892d2e4bd99731e7d87223a35c238f81)

Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
5 months ago[3.14] gh-133515: fix docs for unawaited coroutines in debug mode (GH-134081) (#134093)
Miss Islington (bot) [Fri, 16 May 2025 15:37:01 +0000 (17:37 +0200)] 
[3.14] gh-133515: fix docs for unawaited coroutines in debug mode (GH-134081) (#134093)

gh-133515: fix docs for unawaited coroutines in debug mode (GH-134081)
(cherry picked from commit d94b1e9cac82143048031530e6c51e59f597bccd)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months ago[3.14] gh-124210: Add introduction to `threading` docs (GH-127046) (#134090)
Miss Islington (bot) [Fri, 16 May 2025 12:29:40 +0000 (14:29 +0200)] 
[3.14] gh-124210: Add introduction to `threading` docs (GH-127046) (#134090)

Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
5 months ago[3.14] gh-132388: test HACL* and OpenSSL hash functions in pure Python HMAC (GH-13405...
Miss Islington (bot) [Fri, 16 May 2025 12:26:37 +0000 (14:26 +0200)] 
[3.14] gh-132388: test HACL* and OpenSSL hash functions in pure Python HMAC (GH-134051) (#134089)

gh-132388: test HACL* and OpenSSL hash functions in pure Python HMAC (GH-134051)
(cherry picked from commit 73d71a416fb05b64c2b43fade5d781a1fa0cb2cd)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] gh-134069: bump HACL* revision to incoporate `memset_s` (GH-134027) (#134084)
Miss Islington (bot) [Fri, 16 May 2025 10:49:08 +0000 (12:49 +0200)] 
[3.14] gh-134069: bump HACL* revision to incoporate `memset_s` (GH-134027) (#134084)

Bumps the HACL* revision to include recent revisions that corrects issues
building with legacy/cross-platform macOS SDKs.
(cherry picked from commit 1566c34dc76ec6139e6827fbab6d76e084a63d9d)

Signed-off-by: aeiouaeiouaeiouaeiouaeiouaeiou <aeioudev@outlook.com>
Co-authored-by: aeiouaeiouaeiouaeiouaeiouaeiou <aeioudev@outlook.com>
5 months ago[3.14] gh-130000: Release the GIL in winreg when doing Windows API calls (GH-130001...
Miss Islington (bot) [Fri, 16 May 2025 10:04:24 +0000 (12:04 +0200)] 
[3.14] gh-130000: Release the GIL in winreg when doing Windows API calls (GH-130001) (#134072)

gh-130000: Release the GIL in winreg when doing Windows API calls (GH-130001)
(cherry picked from commit 7a504b3d5da98874536834481539c19ba4a265af)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
5 months agoImprove the administrative install docs for Python Install Manager (GH-134066)
Miss Islington (bot) [Thu, 15 May 2025 21:18:26 +0000 (23:18 +0200)] 
Improve the administrative install docs for Python Install Manager (GH-134066)

(cherry picked from commit 6a2296329117463fd09abc73656f1d7b48076100)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 months ago[3.14] gh-77065: Use `putwch` instead of `putch` in `getpass.win_getpass` (GH-134058...
Miss Islington (bot) [Thu, 15 May 2025 15:41:37 +0000 (17:41 +0200)] 
[3.14] gh-77065: Use `putwch` instead of `putch` in `getpass.win_getpass` (GH-134058) (#134059)

gh-77065: Use `putwch` instead of `putch` in `getpass.win_getpass` (GH-134058)
(cherry picked from commit 52a7a22a6b85a470e993b3399b0ee043e5c3596e)

Co-authored-by: Semyon Moroz <donbarbos@proton.me>
5 months ago[3.14] gh-133410: Fix PR detection in build workflow (GH-133671) (#134055)
Miss Islington (bot) [Thu, 15 May 2025 13:37:41 +0000 (15:37 +0200)] 
[3.14] gh-133410: Fix PR detection in build workflow (GH-133671) (#134055)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 months ago[3.14] gh-77065: add missing parameter `echo_char` in `getpass.fallback_getpass`...
Miss Islington (bot) [Thu, 15 May 2025 13:34:50 +0000 (15:34 +0200)] 
[3.14] gh-77065: add missing parameter `echo_char` in `getpass.fallback_getpass` (GH-133849) (#134053)

gh-77065: add missing parameter `echo_char` in `getpass.fallback_getpass` (GH-133849)
(cherry picked from commit d029a1a1cba515510f31c9e88b7c2a6b7ebee2a7)

Co-authored-by: Semyon Moroz <donbarbos@proton.me>
5 months ago[3.14] gh-133403: Check `Tools/build/deepfreeze.py` with mypy (GH-133802) (#134038)
Miss Islington (bot) [Thu, 15 May 2025 09:39:20 +0000 (11:39 +0200)] 
[3.14] gh-133403: Check `Tools/build/deepfreeze.py` with mypy (GH-133802) (#134038)

gh-133403: Check `Tools/build/deepfreeze.py` with mypy (GH-133802)
(cherry picked from commit 7eaa09739059aaac4812395f8d6bb586af8eadcc)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 months ago[3.14] Test also error messages in test_limit_int. (GH-134018) (GH-134033)
Miss Islington (bot) [Thu, 15 May 2025 07:47:24 +0000 (09:47 +0200)] 
[3.14] Test also error messages in test_limit_int. (GH-134018) (GH-134033)

(cherry picked from commit e123a1d09bcb75aae0c53d9d732de5d9a1252efe)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-133970: Make PEP750 types generic (GH-133976) (#134029)
Miss Islington (bot) [Thu, 15 May 2025 06:39:39 +0000 (08:39 +0200)] 
[3.14] gh-133970: Make PEP750 types generic (GH-133976) (#134029)

gh-133970: Make PEP750 types generic (GH-133976)
(cherry picked from commit c3a1da5b9397867e6b3169dd17cb33ef2898da4a)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 months ago[3.14] gh-133986: Document string split algorithm when sep is None and maxsplit is...
Miss Islington (bot) [Thu, 15 May 2025 01:32:45 +0000 (03:32 +0200)] 
[3.14] gh-133986: Document string split algorithm when sep is None and maxsplit is 0 (GH-133987) (#133993)

---------
(cherry picked from commit 3e23047363f384b7254b7af51afe4e353be94167)

Co-authored-by: Joey Smith <joeysmith@gmail.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
5 months ago[3.14] Improve tests for str to Fraction conversion (GH-134010) (GH-134016)
Miss Islington (bot) [Wed, 14 May 2025 18:18:04 +0000 (20:18 +0200)] 
[3.14] Improve tests for str to Fraction conversion (GH-134010) (GH-134016)

(cherry picked from commit 17d0fec702e43e27a9c3f37f8abe06a19b656bed)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] Docs: remove link elements in builders other than HTML (GH-133720) (#134005)
Miss Islington (bot) [Wed, 14 May 2025 15:22:07 +0000 (17:22 +0200)] 
[3.14] Docs: remove link elements in builders other than HTML (GH-133720) (#134005)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
5 months ago[3.14] gh-133701: Fix incorrect `__annotations__` on TypedDict defined under PEP...
Miss Islington (bot) [Wed, 14 May 2025 13:54:29 +0000 (15:54 +0200)] 
[3.14] gh-133701: Fix incorrect `__annotations__` on TypedDict defined under PEP 563 (GH-133772) (#134003)

gh-133701: Fix incorrect `__annotations__` on TypedDict defined under PEP 563 (GH-133772)
(cherry picked from commit 9836503b48e047db117b3bef3a812c40ed3e988a)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] gh-132983: Style improvements for `compression.zstd` (GH-133547) (#134001)
Miss Islington (bot) [Wed, 14 May 2025 12:39:43 +0000 (14:39 +0200)] 
[3.14] gh-132983: Style improvements for `compression.zstd` (GH-133547) (#134001)

gh-132983: Style improvements for `compression.zstd` (GH-133547)
(cherry picked from commit b44c824856a351472a9627da066bfbde9d8ae64e)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
5 months ago[3.14] Remove trailing whitespace from python.gram (GH-133858) (#133990)
Miss Islington (bot) [Wed, 14 May 2025 08:19:47 +0000 (10:19 +0200)] 
[3.14] Remove trailing whitespace from python.gram (GH-133858) (#133990)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
5 months ago[3.14] gh-132641: fix race in `lru_cache` under free-threading (GH-133787) (#133979)
Miss Islington (bot) [Wed, 14 May 2025 07:11:38 +0000 (09:11 +0200)] 
[3.14] gh-132641: fix race in `lru_cache` under free-threading (GH-133787) (#133979)

gh-132641: fix race in `lru_cache` under free-threading (GH-133787)

Fix race in `lru_cache` by acquiring critical section on the cache object itself and call the lock held variant of dict functions to modify the underlying dict.
(cherry picked from commit 9ad0c7b0f14c5fcda6bfae6692c88abb95502d38)

Co-authored-by: Peter Hawkins <phawkins@google.com>
5 months ago[3.14] gh-132983: Fix small issues with zstd support in zipfile (GH-133723) (#133974)
Miss Islington (bot) [Tue, 13 May 2025 16:10:59 +0000 (18:10 +0200)] 
[3.14] gh-132983: Fix small issues with zstd support in zipfile (GH-133723) (#133974)

gh-132983: Fix small issues with zstd support in zipfile (GH-133723)
(cherry picked from commit 35f47d05893e012e9f2b145b934c1d8c61d2bb7d)

Co-authored-by: Carey Metcalfe <carey@cmetcalfe.ca>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months agogh-133928: Improvements to using/windows.rst (GH-133952)
Miss Islington (bot) [Tue, 13 May 2025 16:06:29 +0000 (18:06 +0200)] 
gh-133928: Improvements to using/windows.rst (GH-133952)

(cherry picked from commit fc3cddd90a1674a71c1abe6a78dde14c935b1de4)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 months ago[3.14] gh-133968: Add fast path to PyUnicodeWriter_WriteStr() (GH-133969) (#133971)
Miss Islington (bot) [Tue, 13 May 2025 13:58:25 +0000 (15:58 +0200)] 
[3.14] gh-133968: Add fast path to PyUnicodeWriter_WriteStr() (GH-133969) (#133971)

gh-133968: Add fast path to PyUnicodeWriter_WriteStr() (GH-133969)

Don't call PyObject_Str() if the input type is str.
(cherry picked from commit fe9f6e829a535747b1e06d9bfda033a9a47165ed)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-133767: Fix use-after-free in the unicode-escape decoder with an error...
Miss Islington (bot) [Tue, 13 May 2025 13:25:08 +0000 (15:25 +0200)] 
[3.14] gh-133767: Fix use-after-free in the unicode-escape decoder with an error handler (GH-129648) (GH-133942)

If the error handler is used, a new bytes object is created to set as
the object attribute of UnicodeDecodeError, and that bytes object then
replaces the original data. A pointer to the decoded data will became invalid
after destroying that temporary bytes object. So we need other way to return
the first invalid escape from _PyUnicode_DecodeUnicodeEscapeInternal().

_PyBytes_DecodeEscape() does not have such issue, because it does not
use the error handlers registry, but it should be changed for compatibility
with _PyUnicode_DecodeUnicodeEscapeInternal().
(cherry picked from commit 9f69a58623bd01349a18ba0c7a9cb1dad6a51e8e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-133886: Fix sys.remote_exec() for non-UTF-8 paths (GH-133887) (GH-133963)
Miss Islington (bot) [Tue, 13 May 2025 09:23:39 +0000 (11:23 +0200)] 
[3.14] gh-133886: Fix sys.remote_exec() for non-UTF-8 paths (GH-133887) (GH-133963)

It now supports non-ASCII paths in non-UTF-8 locales and
non-UTF-8 paths in UTF-8 locales.
(cherry picked from commit c09cec5d69f2ef6ab5e64c7e0579fbd9dcb2ca45)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-133885: skip `test_compress_locking` in `test_zstd` (GH-133943) (#133949)
Miss Islington (bot) [Tue, 13 May 2025 08:27:17 +0000 (10:27 +0200)] 
[3.14] gh-133885: skip `test_compress_locking` in `test_zstd` (GH-133943) (#133949)

gh-133885: skip `test_compress_locking` in `test_zstd` (GH-133943)
(cherry picked from commit e8665d4d46921623745ca5d2b32dc576339ea53f)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 months ago[3.14] gh-132775: Add _PyFunction_GetXIData() (gh-133955)
Miss Islington (bot) [Mon, 12 May 2025 22:37:55 +0000 (00:37 +0200)] 
[3.14] gh-132775: Add _PyFunction_GetXIData() (gh-133955)

(cherry picked from commit 8cf4947b0f, AKA gh-133481)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-132983: Fix compiler warning about unused function ``mt_continue_should_bre...
Miss Islington (bot) [Mon, 12 May 2025 19:49:44 +0000 (21:49 +0200)] 
[3.14] gh-132983: Fix compiler warning about unused function ``mt_continue_should_break()`` (GH-133947) (#133950)

gh-132983: Fix compiler warning about unused function ``mt_continue_should_break()`` (GH-133947)
(cherry picked from commit 121ed71f4e395948d313249b2ad33e1e21581f8a)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
5 months ago[3.14] gh-133413: Fix references to removed Request.has_data (GH-133414) (GH-133945)
Miss Islington (bot) [Mon, 12 May 2025 18:23:35 +0000 (20:23 +0200)] 
[3.14] gh-133413: Fix references to removed Request.has_data (GH-133414) (GH-133945)

The has_data() method of http.request.Request
was removed in version 3.4.
(cherry picked from commit 86c1d439e0ccbe6baeda69322f1f8c0e6a80464c)

Co-authored-by: ppaez <pp@pp.com.mx>
5 months ago[3.14] gh-133653: Fix argparse.ArgumentParser with the formatter_class argument ...
Miss Islington (bot) [Mon, 12 May 2025 17:54:07 +0000 (19:54 +0200)] 
[3.14] gh-133653: Fix argparse.ArgumentParser with the formatter_class argument (GH-133813) (GH-133941)

* Fix TypeError when formatter_class is a custom subclass of
  HelpFormatter.
* Fix TypeError when formatter_class is not a subclass of
  HelpFormatter and non-standard prefix_char is used.
* Fix support of colorizing when formatter_class is not a subclass of
  HelpFormatter.
* Remove the prefix_chars parameter of HelpFormatter.
(cherry picked from commit 734e15b70dc044f57df4049a22dd769dffdb7d18)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-133677: Fix tests when running in non-UTF-8 locale (GH-133865) (GH-133938)
Miss Islington (bot) [Mon, 12 May 2025 16:41:40 +0000 (18:41 +0200)] 
[3.14] gh-133677: Fix tests when running in non-UTF-8 locale (GH-133865) (GH-133938)

(cherry picked from commit 14305a83d381ccdcae814abd9e2c28dda066720b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-133925: Make typing._UnionGenericAlias hashable (GH-133929) (#133936)
Miss Islington (bot) [Mon, 12 May 2025 15:50:10 +0000 (17:50 +0200)] 
[3.14] gh-133925: Make typing._UnionGenericAlias hashable (GH-133929) (#133936)

gh-133925: Make typing._UnionGenericAlias hashable (GH-133929)
(cherry picked from commit 8d478c79539ed0ec7071766b7a0afe62fb11f7d4)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] gh-133904: Fix `math.factorial` documentation (GH-133907) (#133918)
Miss Islington (bot) [Mon, 12 May 2025 12:53:44 +0000 (14:53 +0200)] 
[3.14] gh-133904: Fix `math.factorial` documentation (GH-133907) (#133918)

gh-133904: Fix `math.factorial` documentation (GH-133907)
(cherry picked from commit 27ed64575d34f04029ba1d353810f3db4f4f045b)

Co-authored-by: mkaraev <maruf.karaev97@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
5 months ago[3.14] gh-91555: disable logger while handling log record (GH-131812) (GH-133899)
Miss Islington (bot) [Mon, 12 May 2025 12:02:21 +0000 (14:02 +0200)] 
[3.14] gh-91555: disable logger while handling log record (GH-131812) (GH-133899)

Prevent the possibility of re-entrancy leading to deadlock or infinite recursion (caused by logging triggered by logging), by disabling logging while the logger is handling log messages.
(cherry picked from commit 2561e148ec985755baa3984b91fd0bfc089b283c)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
5 months ago[3.14] gh-133744: Fix multiprocessing interrupt test: add an event (GH-133746) (...
Miss Islington (bot) [Mon, 12 May 2025 09:38:07 +0000 (11:38 +0200)] 
[3.14] gh-133744: Fix multiprocessing interrupt test: add an event (GH-133746) (#133916)

gh-133744: Fix multiprocessing interrupt test: add an event (GH-133746)

Add an event to synchronize the parent process with the child
process: wait until the child process starts sleeping.
(cherry picked from commit c2989b7070b18c0b7c51521fed8bc11c159ea5b8)

Co-authored-by: Victor Stinner <vstinner@python.org>
6 months ago[3.14] gh-119180: annotationlib: Fix values of Format members in docs (GH-133841...
Miss Islington (bot) [Sun, 11 May 2025 15:49:21 +0000 (17:49 +0200)] 
[3.14] gh-119180: annotationlib: Fix values of Format members in docs (GH-133841) (#133903)

gh-119180: annotationlib: Fix values of Format members in docs (GH-133841)
(cherry picked from commit 0eb448cae5e9008f815204d8b46bfd7cd641a152)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
6 months ago[3.14] gh-119180: More documentation for PEP 649/749 (GH-133552) (#133902)
Miss Islington (bot) [Sun, 11 May 2025 15:49:06 +0000 (17:49 +0200)] 
[3.14] gh-119180: More documentation for PEP 649/749 (GH-133552) (#133902)

gh-119180: More documentation for PEP 649/749 (GH-133552)

The SC asked that the Appendix in PEP-749 be added to the docs.
(cherry picked from commit 3396df56d0849e5154cb7d7d1c525df834bbe15e)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
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>