]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 20 May 2025 00:05:26 +0000 (02:05 +0200)]
[3.13] gh-134201: Expand explanation of Base85 encodings in base64 docs (GH-134288) (#134297)
gh-134201: Expand explanation of Base85 encodings in base64 docs (GH-134288)
Explain history of de-facto standard and how to pick between the two Base-85 encoding functions in the base-64 module.
---------
(cherry picked from commit
66aaad61037785639aec393be7618cb54b1372dc )
Co-authored-by: Alek Binion <aleksander.binion@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 19 May 2025 18:41:37 +0000 (20:41 +0200)]
[3.13] gh-117596: Add more tests for os.path with invalid paths (GH-134189) (GH-134266)
(cherry picked from commit
871d26987533e81ab63af067e1fc96aa37a26bf7 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 19 May 2025 15:34:31 +0000 (17:34 +0200)]
[3.13] gh-125225: Fix column misalignment in help('topics') output (gh-125226) (#134226)
The 'help("topics")' output was misaligned due to "ASSIGNMENTEXPRESSIONS"
exceeding the implicit maximum default column width of 19 characters.
Reduced the number of columns from 4 to 3 in the listtopics()
function to allow more space for longer topic names.
(cherry picked from commit
b22460c44d1bc597c96d4a3d27ad8373d7952820 )
Co-authored-by: Étienne Pelletier <EtiennePelletier@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Mon, 19 May 2025 14:13:25 +0000 (16:13 +0200)]
[3.13] gh-134097: Print number of refs & blocks after each statement in new REPL (gh-134136) (gh-134221)
(cherry picked from commit
c31547a5914db93b8b38c6a5261ef716255f3582 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Mon, 19 May 2025 13:49:29 +0000 (15:49 +0200)]
[3.13] gh-122055: Clarify documentation for empty matches in RE (GH-133169) (GH-134218)
(cherry picked from commit
44b73d3cd4466e148460883acf4494124eae8c91 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Peter Bierma [Mon, 19 May 2025 12:54:00 +0000 (08:54 -0400)]
[3.13] Docs: C API: Fix the incorrect `PyThreadState_Swap` documentation (#133900)
Serhiy Storchaka [Mon, 19 May 2025 10:37:36 +0000 (13:37 +0300)]
[3.13] gh-133890: Handle UnicodeEncodeError in tarfile (GH-134147) (GH-134196)
UnicodeEncodeError is now handled the same way as OSError during
TarFile member extraction.
(cherry picked from commit
9983c7d4416cac8deb2fded1ec9c7daf786c3a02 )
Miss Islington (bot) [Mon, 19 May 2025 09:57:19 +0000 (11:57 +0200)]
[3.13] gh-76023: Make os.path.realpath to ignore WinError 1005 in non-strict mode (GH-128328) (GH-134204)
(cherry picked from commit
d55e11b8049e3abf3cc187b4958224b225a39897 )
Co-authored-by: BecoKo <koev_v@yahoo.com>
Miss Islington (bot) [Sun, 18 May 2025 19:16:56 +0000 (21:16 +0200)]
[3.13] gh-133889: Only show the path of the URL in the SimpleHTTPRequestHandler page (GH-134135) (GH-134191)
The query and fragment are ambiguous and not used.
(cherry picked from commit
5cbc8c632e860941602e8f7da9aab52fae40aca6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 18 May 2025 16:36:04 +0000 (18:36 +0200)]
[3.13] document `Py_VISIT` as a macro in the docs (GH-133688) (#134187)
document `Py_VISIT` as a macro in the docs (GH-133688)
(cherry picked from commit
bb32f3c698f5192dddd2d2f33c7c0a3d05afc223 )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Miss Islington (bot) [Sun, 18 May 2025 16:27:09 +0000 (18:27 +0200)]
[3.13] fix indent in `controlflow.rst` docs (GH-134008) (#134185)
fix indent in `controlflow.rst` docs (GH-134008)
(cherry picked from commit
4ce91871a9077fcf8806d6fd79bdb32af9587306 )
Co-authored-by: Yongzi Li <1538321957@qq.com>
Miss Islington (bot) [Sun, 18 May 2025 15:08:28 +0000 (17:08 +0200)]
[3.13] gh-134100: Fix use-after-free in `PyImport_ImportModuleLevelObject` (GH-134117) (#134172)
gh-134100: Fix use-after-free in `PyImport_ImportModuleLevelObject` (GH-134117)
(cherry picked from commit
4e9005d32ff466925f40af410f2ea6bf2329bcf8 )
Co-authored-by: Nico-Posada <102486290+Nico-Posada@users.noreply.github.com>
Thomas Grainger [Sun, 18 May 2025 13:50:07 +0000 (14:50 +0100)]
[3.13] gh-133745: Fix asyncio task factory name/context kwarg breaks (#133948)
In 3.13.3 we accidentally broke the interface for custom task factory. Factory authors added workarounds.
This PR (for 3.13.4) unbreaks task factories that haven't made a workaround yet while also supporting those that have.
NOTE: The custom task factory API will change to what we accidentally released in 3.13.3.
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Miss Islington (bot) [Sun, 18 May 2025 01:53:37 +0000 (03:53 +0200)]
[3.13] gh-134150: Clarify distinction between JSON and Python objects (GH-134154) (#134167)
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>
Miss Islington (bot) [Sat, 17 May 2025 13:18:14 +0000 (15:18 +0200)]
[3.13] gh-88275: Add missing `__init__` method to `match` example (GH-120281) (#134143)
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>
Miss Islington (bot) [Sat, 17 May 2025 12:03:58 +0000 (14:03 +0200)]
[3.13] Docs: fix spelling of "test case" in `unittest` documentation (GH-134137) (#134139)
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>
Miss Islington (bot) [Sat, 17 May 2025 08:05:41 +0000 (10:05 +0200)]
[3.13] gh-133881: add forward reference to `list.sort()` in lambda expression tutorial (GH-133910) (#134127)
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>
Miss Islington (bot) [Sat, 17 May 2025 07:33:42 +0000 (09:33 +0200)]
[3.13] gh-134098: Fix handling %-encoded trailing slash in SimpleHTTPRequestHandler (GH-134099) (GH-134124)
(cherry picked from commit
2f1ecb3bc474a5895dce090cca7b8afe7b560040 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 17 May 2025 07:23:27 +0000 (09:23 +0200)]
[3.13] gh-133889: Improve tests for SimpleHTTPRequestHandler (GH-134102) (GH-134122)
(cherry picked from commit
fcaf009907fc39d604907315155c1f1de811dd88 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 20:52:42 +0000 (22:52 +0200)]
[3.13] gh-134109: Fix showing comments in pydoc output for argparse (GH-134110) (GH-134113)
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>
Miss Islington (bot) [Fri, 16 May 2025 19:24:05 +0000 (21:24 +0200)]
[3.13] gh-117026: Remove outdated sentence in SimpleHTTPRequestHandler docs (GH-117027) (GH-134108)
The code was changed in
0f7cddc308b297e6a1c2dd61503acea38401656f (bpo-839496/gh-39531).
(cherry picked from commit
ea2d707bd59963bd4f53407108026930ff12ae56 )
Co-authored-by: Saleh Dehqanpour <salehdeh76@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 19:20:53 +0000 (21:20 +0200)]
[3.13] gh-133286: add explanation about `seq` for pathlib Pattern Language (GH-133340) (#134106)
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>
Miss Islington (bot) [Fri, 16 May 2025 15:38:22 +0000 (17:38 +0200)]
[3.13] gh-133515: fix docs for unawaited coroutines in debug mode (GH-134081) (#134094)
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>
Miss Islington (bot) [Fri, 16 May 2025 12:25:22 +0000 (14:25 +0200)]
[3.13] gh-124210: Add introduction to `threading` docs (GH-127046) (#134091)
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Thu, 15 May 2025 13:41:47 +0000 (15:41 +0200)]
[3.13] gh-133410: Fix PR detection in build workflow (GH-133671) (#134054)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
sobolevn [Thu, 15 May 2025 10:43:15 +0000 (13:43 +0300)]
[3.13] gh-133403: Check `Tools/build/deepfreeze.py` with mypy (GH-133802) (#134040)
(cherry picked from commit
7eaa09739059aaac4812395f8d6bb586af8eadcc )
Miss Islington (bot) [Thu, 15 May 2025 07:45:00 +0000 (09:45 +0200)]
[3.13] Test also error messages in test_limit_int. (GH-134018) (GH-134032)
(cherry picked from commit
e123a1d09bcb75aae0c53d9d732de5d9a1252efe )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 15 May 2025 01:33:38 +0000 (03:33 +0200)]
[3.13] gh-133986: Document string split algorithm when sep is None and maxsplit is 0 (GH-133987) (#133992)
gh-133986: Document string split algorithm when sep is None and maxsplit is 0 (GH-133987)
---------
(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>
Miss Islington (bot) [Wed, 14 May 2025 17:42:23 +0000 (19:42 +0200)]
[3.13] Improve tests for str to Fraction conversion (GH-134010) (GH-134017)
(cherry picked from commit
17d0fec702e43e27a9c3f37f8abe06a19b656bed )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 14 May 2025 15:22:27 +0000 (17:22 +0200)]
[3.13] Docs: remove link elements in builders other than HTML (GH-133720) (#134006)
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Hugo van Kemenade [Wed, 14 May 2025 10:25:04 +0000 (13:25 +0300)]
[3.13] Remove trailing whitespace from python.gram (#133858) (#133991)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Sam Gross [Wed, 14 May 2025 03:47:34 +0000 (23:47 -0400)]
gh-132869: Fix crash in `_PyObject_TryGetInstanceAttribute` (#133700)
This fixes a crash in `_PyObject_TryGetInstanceAttribute` due to the use
of `_PyDictKeys_StringLookup` on an unlocked dictionary that may be
concurrently modified.
The underlying bug was already fixed in 3.14 and the main branch.
(partially cherry picked from commit
1b15c89a17ca3de6b05de5379b8717e9738c51ef )
Stan Ulbrych [Tue, 13 May 2025 23:23:43 +0000 (00:23 +0100)]
[3.13] gh-46236: Document PyUnicode_BuildEncodingMap (#133770)
Brandt Bucher [Mon, 12 May 2025 20:00:01 +0000 (13:00 -0700)]
[3.13] GH-133543: Maintain tracking for materialized instance dictionaries (GH-133617)
Miss Islington (bot) [Mon, 12 May 2025 18:25:25 +0000 (20:25 +0200)]
[3.13] gh-133413: Fix references to removed Request.has_data (GH-133414) (GH-133946)
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>
Serhiy Storchaka [Mon, 12 May 2025 17:02:19 +0000 (20:02 +0300)]
[3.13] gh-133677: Fix tests when running in non-UTF-8 locale (GH-133865) (GH-133939)
(cherry picked from commit
14305a83d381ccdcae814abd9e2c28dda066720b )
Victor Stinner [Mon, 12 May 2025 14:16:52 +0000 (16:16 +0200)]
[3.13] gh-133744: Fix multiprocessing interrupt test: add an event (#133746) (#133917)
gh-133744: Fix multiprocessing interrupt test: add an event (#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 )
mkaraev [Mon, 12 May 2025 12:17:17 +0000 (17:17 +0500)]
[3.13] gh-133904: Fix `math.factorial` documentation (GH-133907) (#133922)
* [3.13] 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>
Miss Islington (bot) [Mon, 12 May 2025 06:29:06 +0000 (08:29 +0200)]
[3.13] gh-91555: disable logger while handling log record (GH-131812) (GH-133898)
Co-authored-by: Duane Griffin <duaneg@dghda.com>
Victor Stinner [Sun, 11 May 2025 21:10:04 +0000 (23:10 +0200)]
[3.13] gh-133441: Fix STORE_ATTR_WITH_HINT bytecode (#133446)
Deoptimize if the dict is a dict subclass.
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Sun, 11 May 2025 08:18:04 +0000 (10:18 +0200)]
[3.13] gh-133823: update "Pending Removal in 3.15" notes about `TypedDict` (GH-133864) (#133871)
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>
Inada Naoki [Sun, 11 May 2025 06:14:11 +0000 (15:14 +0900)]
gh-133703: dict: fix calculate_log2_keysize() (GH-133809)
(cherry picked from commit
92337f666e8a076a68305a8d6dc8bc9c095000e9 )
Miss Islington (bot) [Sat, 10 May 2025 18:34:32 +0000 (20:34 +0200)]
[3.13] Add classmethod to setUpClass in test_pdb (GH-133840) (#133847)
Add classmethod to setUpClass in test_pdb (GH-133840)
(cherry picked from commit
4f2f780d534962261dcc7813e50d0dcb413a1d3c )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Sat, 10 May 2025 17:58:29 +0000 (19:58 +0200)]
[3.13] gh-86155: Fix data loss after unclosed script or style tag in HTMLParser (GH-22658) (GH-133845)
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>
Miss Islington (bot) [Sat, 10 May 2025 15:57:29 +0000 (17:57 +0200)]
[3.13] gh-132642: document how to render human-readable `timedelta` objects (GH-133825) (#133836)
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>
Miss Islington (bot) [Sat, 10 May 2025 15:54:05 +0000 (17:54 +0200)]
[3.13] gh-117088: Fix AIX build (GH-132595) (GH-133839)
(cherry picked from commit
47f1722d8053fb4f79e68cba07cbf08fb58a511c )
Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
Miss Islington (bot) [Sat, 10 May 2025 14:55:12 +0000 (16:55 +0200)]
[3.13] gh-77057: Fix handling of invalid markup declarations in HTMLParser (GH-9295) (GH-133834)
(cherry picked from commit
76c0b01bc401c3e976011bbc69cec56dbebe0ad5 )
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 10 May 2025 08:51:38 +0000 (10:51 +0200)]
[3.13] gh-132971: Update shutil.which() docs (GH-133067) (#133804)
gh-132971: Update shutil.which() docs (GH-133067)
(cherry picked from commit
d13d5fdf610a294a6c3dc125e0856fb7fdd41e49 )
Co-authored-by: Kokona <125976684+985025074@users.noreply.github.com>
Miss Islington (bot) [Sat, 10 May 2025 07:55:47 +0000 (09:55 +0200)]
[3.13] gh-133009: fix UAF in `xml.etree.ElementTree.Element.__deepcopy__` (GH-133010) (#133806)
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>
Miss Islington (bot) [Fri, 9 May 2025 19:02:41 +0000 (21:02 +0200)]
[3.13] Update HTTP links in the _pydatetime docstrings (GH-133025) (GH-133782)
(cherry picked from commit
aed28eb5a0c55e246ad24e34dc2be0d9dccb8bf0 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Fri, 9 May 2025 16:53:19 +0000 (18:53 +0200)]
[3.13] gh-133519: Add console to resources in libregrtest (GH-133520) (#133777)
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>
Miss Islington (bot) [Fri, 9 May 2025 14:19:23 +0000 (16:19 +0200)]
[3.13] Docs: use boolean constants for returning boolean value (GH-133325) (GH-133761)
(cherry picked from commit
076004ae5461cf3a7fe248a38e28afff33acdd14 )
Co-authored-by: Yongzi Li <1538321957@qq.com>
Miss Islington (bot) [Fri, 9 May 2025 14:18:56 +0000 (16:18 +0200)]
[3.13] Manpage: -X gil is not related to PYTHON_HISTORY (GH-133753) (#133759)
Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
Miss Islington (bot) [Fri, 9 May 2025 13:48:58 +0000 (15:48 +0200)]
[3.13] gh-133644: update `Py_InteractiveFlag` deprecation notice (GH-133749) (#133752)
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>
Miss Islington (bot) [Fri, 9 May 2025 07:56:58 +0000 (09:56 +0200)]
[3.13] gh-130197: Test pygettext --output option (GH-133041) (GH-133266)
(cherry picked from commit
e5e51bd7f72639be6548c806cc14ea53995bf1b3 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Fri, 9 May 2025 07:12:44 +0000 (09:12 +0200)]
[3.13] gh-133412: amend docs for the `inst` definition (GH-133708) (#133730)
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>
Miss Islington (bot) [Fri, 9 May 2025 06:43:54 +0000 (08:43 +0200)]
[3.13] gh-69426: HTMLParser: only unescape properly terminated character entities in attribute values (GH-95215) (GH-133586)
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>
Steve Dower [Thu, 8 May 2025 20:16:15 +0000 (21:16 +0100)]
gh-133626: Ensure the traditional Windows installer doesn't accidentally pick up site-packages (GH-133693)
Miss Islington (bot) [Thu, 8 May 2025 18:17:43 +0000 (20:17 +0200)]
[3.13] gh-133403: Check `Tools/build/verify_ensurepip_wheels.py` with mypy (GH-133453) (#133690)
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>
Sam Gross [Thu, 8 May 2025 17:40:05 +0000 (13:40 -0400)]
[3.13] gh-132762: Fix underallocation bug in `dict.fromkeys()`(gh-133627) (gh-133686)
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>
Serhiy Storchaka [Thu, 8 May 2025 15:23:54 +0000 (18:23 +0300)]
[3.13] gh-131031: Fix test_pickle when invoked directly (GH-133356) (GH-133675)
(cherry picked from commit
e15bbfafbcc9153fa0b05beb806984e288fdefe4 )
Miss Islington (bot) [Thu, 8 May 2025 13:20:34 +0000 (15:20 +0200)]
[3.13] gh-133454: Mark tests with many threads that use much memory as bigmem (GH-133456) (GH-133664)
(cherry picked from commit
26839eae2079bd797491dfdcc00eaca1dbcbf77c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 8 May 2025 11:32:59 +0000 (13:32 +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>
TERESH1 [Thu, 8 May 2025 11:18:26 +0000 (14:18 +0300)]
[3.13] gh-133516: Raise `ValueError` when constants `True`, `False` or `None` are used as an identifier after NFKC normalization (GH-133523) (#133615)
Miss Islington (bot) [Thu, 8 May 2025 09:29:34 +0000 (11:29 +0200)]
[3.13] Doc: Allow translating a code block in the tutorial (GH-131353) (#133649)
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>
Miss Islington (bot) [Thu, 8 May 2025 08:47:38 +0000 (10:47 +0200)]
[3.13] gh-133639: Fix `test_auto_indent_default()` doesn't run `input_code` (GH-133640) (#133647)
sobolevn [Thu, 8 May 2025 06:59:04 +0000 (09:59 +0300)]
[3.13] gh-133403: Type `Tools/build/update_file.py` and check it with `mypy` (GH-133404) (#133637)
(cherry picked from commit
50b52cba2d13a1854bc835412ac3f3c0ad42b5ba )
Miss Islington (bot) [Thu, 8 May 2025 01:42:05 +0000 (03:42 +0200)]
[3.13] gh-127833: lexical analysis: Add backticks to BOM example (GH-132407) (#133633)
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>
Miss Islington (bot) [Wed, 7 May 2025 22:11:03 +0000 (00:11 +0200)]
[3.13] gh-133361: move the explanation of dict equal before its use (GH-133424) (#133621)
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>
Miss Islington (bot) [Wed, 7 May 2025 17:33:23 +0000 (19:33 +0200)]
[3.13] gh-131535: Fix stale example in html.parser docs, make examples doctests (GH-131551) (GH-133587)
(cherry picked from commit
ee76e36d76a0e6916c0afc41228b043ab5174685 )
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Steve Dower [Wed, 7 May 2025 12:24:33 +0000 (13:24 +0100)]
gh-133512: Adds warnings to py.exe launcher about subcommands belonging to Python install manager (GH-133514)
Brandt Bucher [Tue, 6 May 2025 21:31:54 +0000 (14:31 -0700)]
[3.13] GH-133231: Backport PYTHON_JIT documentation to 3.13 (GH-133539)
Victor Stinner [Tue, 6 May 2025 18:40:36 +0000 (20:40 +0200)]
[3.13] gh-132921: Fix setuptools._distutils.dep_util deprecation (#133522)
gh-132921: Fix setuptools._distutils.dep_util deprecation
Get newer_group from setuptools.modified on recent setuptools
versions, but keep support for old setuptools versions.
Miss Islington (bot) [Tue, 6 May 2025 02:13:22 +0000 (04:13 +0200)]
[3.13] gh-130117: Document why nested `Union`, `Literal`, and `Annotated` types referenced through a type alias are not flattened (GH-130119) (#133488)
gh-130117: Document why nested `Union`, `Literal`, and `Annotated` types referenced through a type alias are not flattened (GH-130119)
(cherry picked from commit
b936ccdb6f6bd11250b4e638b6fa2c239907ca58 )
Co-authored-by: Valentin Berlier <berlier.v@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Stan Ulbrych [Mon, 5 May 2025 21:13:08 +0000 (22:13 +0100)]
[3.13] gh-132017: Handle SIGCONT in `pyrepl` (#132918) (#133470)
Łukasz Langa [Mon, 5 May 2025 21:08:09 +0000 (23:08 +0200)]
[3.13] gh-131878: Fix input of unicode characters with two or more code points in new pyrepl on Windows (gh-131901) (gh-133468)
(cherry picked from commit
0c5151bc81ec8e8588bef4389df12a9ab50e9fa0 )
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
Łukasz Langa [Mon, 5 May 2025 19:39:21 +0000 (21:39 +0200)]
[3.13] gh-130804: Fix support of typing unicode chars in pyrepl (GH-130805) (GH-133462)
(cherry picked from commit
7c98b0674daa3e4eb3e8f35afb61a0dba61d1780 )
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Łukasz Langa [Mon, 5 May 2025 18:09:34 +0000 (20:09 +0200)]
[3.13] GH-132439: Fix REPL swallowing characters entered with AltGr on cmd.exe (GH-132440) (GH-133460)
(cherry picked from commit
07f416a3f063db6b91b8b99ff61a51b64b0503f1 )
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Mon, 5 May 2025 17:39:06 +0000 (19:39 +0200)]
[3.13] gh-124096: Enable REPL virtual terminal support on Windows (GH-124119) (GH-133457)
To support virtual terminal mode in Windows PYREPL, we need a scanner
to read over the supported escaped VT sequences.
Windows REPL input was using virtual key mode, which does not support
terminal escape sequences. This patch calls `SetConsoleMode` properly
when initializing and send sequences to enable bracketed-paste modes
to support verbatim copy-and-paste.
(cherry picked from commit
a65366ed879a3d9f27cbcc811ed2e05ad1a2af06 )
Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Dustin L. Howett <dustin@howett.net>
Co-authored-by: wheeheee <104880306+wheeheee@users.noreply.github.com>
Miss Islington (bot) [Mon, 5 May 2025 17:26:58 +0000 (19:26 +0200)]
[3.13] GH-133410: Use commit hashes for change detection (gh-133416) (#133427)
GH-133410: Use commit hashes for change detection (gh-133416)
(cherry picked from commit
d530e74e444fc483f6d2077f701160e55d3003d8 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Mon, 5 May 2025 16:31:53 +0000 (18:31 +0200)]
[3.13] gh-63882: Break down `and` tests in `test_minidom` (GH-133026) (#133451)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Łukasz Langa [Mon, 5 May 2025 15:20:54 +0000 (17:20 +0200)]
[3.13] gh-131878: Handle top level exceptions in new pyrepl and prevent of closing it (GH-131910) (GH-133445)
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Miss Islington (bot) [Mon, 5 May 2025 13:18:00 +0000 (15:18 +0200)]
[3.13] gh-107006: Move `threading.local` docstring to docs (GH-131840) (#133432)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 5 May 2025 10:54:56 +0000 (12:54 +0200)]
[3.13] Bump mypy to 1.15 (GH-133405) (#133429)
Bump mypy to 1.15 (GH-133405)
(cherry picked from commit
8467026ed66ca3abefe3a13860d2633eae3d7164 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 5 May 2025 04:25:41 +0000 (06:25 +0200)]
[3.13] [tests] test_subprocess maybe avoid a timeout race condition? (GH-133420) (#133421)
[tests] test_subprocess maybe avoid a timeout race condition? (GH-133420)
The few buildbot failures on https://github.com/python/cpython/pull/133103
are possibly just due to racing a child process launch and exit?
(cherry picked from commit
b64aa302d7bc09454ba8d5b19922ff6a4192dd96 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Mon, 5 May 2025 01:38:30 +0000 (03:38 +0200)]
[3.13] gh-133089: Use original timeout value for `TimeoutExpired` when the func `subprocess.run` is called with a timeout (GH-133103) (#133418)
gh-133089: Use original timeout value for `TimeoutExpired` when the func `subprocess.run` is called with a timeout (GH-133103)
(cherry picked from commit
2bbcaedb75942389dacb51866948f40de5951c9c )
Signed-off-by: Manjusaka <me@manjusaka.me>
Co-authored-by: Nadeshiko Manju <me@manjusaka.me>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sun, 4 May 2025 19:18:49 +0000 (21:18 +0200)]
[3.13] gh-109700: Improve stress tests for interpreter creation (GH-109946) (GH-133391)
* Ensure that destructors are called in the test that created interpreters, not after finishing it.
* Try to create/run interpreters in threads simultaneously.
* Mark tests that requires over 6GB of memory with bigmemtest.
(cherry picked from commit
61b50a98b42a75a66ec52d78811b32e70220bcaf )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Sun, 4 May 2025 16:04:09 +0000 (19:04 +0300)]
[3.13] gh-122559: Synchronize C and Python implementation of the io module about pickling (GH-122628) (GH-133381)
In the C implementation, remove __reduce__ and __reduce_ex__ methods
that always raise TypeError and restore __getstate__ methods that always
raise TypeErrori.
This restores fine details of the pre-3.12 behavior and unifies
both implementations.
(cherry picked from commit
e9253ebf74433de5ae6d7f1bce693a3a1173b3b1 )
Serhiy Storchaka [Sun, 4 May 2025 11:15:43 +0000 (14:15 +0300)]
[3.13] bpo-44172: Keep reference to original window in curses subwindow objects (GH-26226) (GH-133370)
The X/Open curses specification[0] and ncurses documentation[1]
both state that subwindows must be deleted before the main window.
Deleting the windows in the wrong order causes a double-free with
NetBSD's curses implementation.
To fix this, keep track of the original window object in the subwindow
object, and keep a reference to the original for the lifetime of
the subwindow.
[0] https://pubs.opengroup.org/onlinepubs/
7908799 /xcurses/delwin.html
[1] https://invisible-island.net/ncurses/man/curs_window.3x.html
(cherry picked from commit
0af61fe2f41048d66b0a973bbff056690446d3df )
Co-authored-by: Michael Forney <mforney@mforney.org>
Miss Islington (bot) [Sat, 3 May 2025 16:01:36 +0000 (18:01 +0200)]
[3.13] gh-133210: Fix `test_rlcompleter` in `--without-doc-strings` mode (GH-133332) (#133348)
gh-133210: Fix `test_rlcompleter` in `--without-doc-strings` mode (GH-133332)
(cherry picked from commit
881144fa585bfb03441b29a8b62f89154c668fd4 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sat, 3 May 2025 14:20:34 +0000 (16:20 +0200)]
[3.13] gh-133117: Enable stricter mypy checks for `tomllib` (GH-133206) (#133343)
gh-133117: Enable stricter mypy checks for `tomllib` (GH-133206)
(cherry picked from commit
cb3174113e7dbb8a757ce64faac5a8c7e074945b )
Co-authored-by: sobolevn <mail@sobolevn.me>
Hugo van Kemenade [Sat, 3 May 2025 12:37:09 +0000 (15:37 +0300)]
[3.13] gh-130160: use `.. program::` directive for documenting `platform` CLI (GH-133335) (#133341)
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Miss Islington (bot) [Sat, 3 May 2025 08:09:54 +0000 (10:09 +0200)]
[3.13] gh-114713: Revert gh-114731 (GH-133330) (#133331)
gh-114713: Revert gh-114731 (GH-133330)
Revert "gh-114713: Handle case of an empty string passed to `zoneinfo.ZoneInfo` (GH-114731)"
This reverts commit
884df116d79b05d9342e05e50484d61c684ecb8b .
(cherry picked from commit
fe44fc4f4351bb4b457c01d94b4ae8b9eda501aa )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Sat, 3 May 2025 02:38:35 +0000 (04:38 +0200)]
gh-91156: Document how TextIOWrapper interacts with UTF-8 mode (GH-132885)
Document how TextIOWrapper interacts with UTF-8 mode
(cherry picked from commit
245cd6c53278006fa34fd7799d32f0884eb7e75d )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Fri, 2 May 2025 17:26:38 +0000 (19:26 +0200)]
[3.13] gh-132995: Upgrade bundled pip to 25.1.1 (gh-133308)
gh-132995: Upgrade bundled pip to 25.1.1 (gh-132997)
* gh-132995: Upgrade bundled pip to 25.1.1
(cherry picked from commit
a512905e156bc09a20b171686ac129e66c13f26a )
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
Miss Islington (bot) [Fri, 2 May 2025 17:26:26 +0000 (19:26 +0200)]
[3.13] gh-112936: Fix IDLE: no Shell menu item in single-process mode (GH-126598) (GH-133310)
(cherry picked from commit
7e7e49be78e26d0a3b861a04bbec1635aabb71b9 )
Co-authored-by: Zhikang Yan <2951256653@qq.com>
Miss Islington (bot) [Fri, 2 May 2025 16:10:32 +0000 (18:10 +0200)]
[3.13] gh-133290: Use PyObject_SetAttr to set _type_ (GH-133292) (GH-133295)
gh-133290: Use PyObject_SetAttr to set _type_ (GH-133292)
(cherry picked from commit
2590774c9bb96ec75ca8a13b0c061fcc9db3eb65 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Fri, 2 May 2025 13:27:54 +0000 (15:27 +0200)]
[3.13] gh-132385: Fix instance error suggestions trigger potential exceptions in `traceback` (GH-132387) (#133297)
gh-132385: Fix instance error suggestions trigger potential exceptions in `traceback` (GH-132387)
(cherry picked from commit
641253cfac789e57c2b0c16047bdbf355535f60f )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Fri, 2 May 2025 13:27:30 +0000 (15:27 +0200)]
[3.13] gh-133210: Fix `test_descr` in `--without-doc-strings` mode (GH-133294) (#133298)
gh-133210: Fix `test_descr` in `--without-doc-strings` mode (GH-133294)
(cherry picked from commit
ba16ba3a18e86e094bcd215892b49fb08c74ec0a )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Fri, 2 May 2025 12:24:12 +0000 (14:24 +0200)]
[3.13] Docs: delete title links in `turtle.rst` and `typing.rst` (GH-133283) (#133293)
Co-authored-by: Yongzi Li <1538321957@qq.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>