summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.13.6v3.13.6Thomas Wouters2025-08-061-9/+35
|
* [3.13] gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) (#137461)Miss Islington (bot)2025-08-061-1/+1
| | | | | | | | | | gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) Fix name of the Python encoding in Unicode errors of the code page codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8" which are not valid Python code names. (cherry picked from commit ce1b747ff68754635b7b12870dfc527184ee3b39) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-81325: Support path-like objects with streaming TarFile ↵Miss Islington (bot)2025-08-052-1/+11
| | | | | | | (GH-137188) (#137366) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Emma Smith <emma@emmatyping.dev>
* [3.13] gh-122450: Expand documentation for ``Rational`` and ``Fraction`` ↵Sergey B Kirpichev2025-08-051-1/+10
| | | | | | | (#136800) (#137367) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC ↵Bénédikt Tran2025-08-051-6/+8
| | | | | | | | | | | | | | | 9562, §6.10.3 (GH-135226) (#137408) * [3.13] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6.10.3 (GH-135226) This aligns with the recommendations of RFC 9562, Section 6.10, paragraph 3 [1]. [1]: https://www.rfc-editor.org/rfc/rfc9562.html#section-6.10-3. --------- (cherry picked from commit 1cb716387255a7bdab5b580bcf8ac1b6fa32cc41) Co-authored-by: LamentXU <108666168+LamentXU123@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] gh-137397: Skip test_os_open on NetBSD due to indefinite hang ↵Miss Islington (bot)2025-08-051-0/+2
| | | | | | | | (GH-137398) (#137407) gh-137397: Skip test_os_open on NetBSD due to indefinite hang (GH-137398) (cherry picked from commit 7f416c867445dd94d11ee9df5f1a2d9d6eb8d883) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
* [3.13] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC ↵Bénédikt Tran2025-08-052-2/+32
| | | | | | | | address (GH-132901) (#134704) This commit includes the original commit and the NEWS entry that was added separately. (cherry picked from commit 3bffada46728e51f84c41ecbb0d3722595693e63) (cherry picked from commit 9eb84d83e00070cec3cfe78f1d0c7a7a0fbef30f)
* [3.13] gh-132124: improve safety nets for creating AF_UNIX socket files ↵Miss Islington (bot)2025-08-043-4/+80
| | | | | | | | | | | | | | | | | | | | (GH-134085) (#134448) * gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used (cherry picked from commit 1a07a01014bde23acd2684916ef38dc0cd73c2de) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> * rename warn -> _warn for the 3.13.x backport * Update Misc/NEWS.d/next/Library/2025-05-16-12-40-37.gh-issue-132124.T_5Odx.rst --------- Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.13] gh-130077: Properly match full soft keywords in the parser ↵Pablo Galindo Salgado2025-08-041-0/+7
| | | | | | | | | | | | | | (GH-135317) (#135399) * [3.13] gh-130077: Properly match full soft keywords in the parser (GH-135317) (cherry picked from commit ff2b5f40c2bf5c71255caac8a743c09ba0758c02) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> * Remove line the main-branch commit removed --------- Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.13] gh-137194: Fix requires_debug_ranges when _testcpi doesn't exist ↵Miss Islington (bot)2025-08-041-1/+6
| | | | | | | (GH-137195) (GH-137275) (cherry picked from commit 0282eef880c8c8db782a2088b0257250e0f76d48) Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
* [3.13] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#137356)Brian Schubert2025-08-041-1/+1
| | | | | | `ASTOptimiziationTests` -> `ASTOptimizationTests` (cherry picked from commit 60146f4f6f24f37e3bfcb9f101565f6e86cf0146) Co-authored-by: Hunter Hogan <hunterhogan@users.noreply.github.com>
* [3.13] gh-137257: Upgrade bundled pip to 25.2 (GH-137258) (GH-137362)Miss Islington (bot)2025-08-042-1/+1
| | | | | | gh-137257: Upgrade bundled pip to 25.2 (GH-137258) (cherry picked from commit 506542b5966073203f0da71a487de24e596b7979) Co-authored-by: Richard Si <sichard26@gmail.com>
* [3.13] Doc: fix duplicated words (GH-136086) (#137357)Brian Schubert2025-08-032-2/+2
| | | | | | (cherry picked from commit 698bab5a4031c8f54e04e1dd42bcbe3e4564eba5) Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.13] gh-137341: Remove more word duplications (GH-137342) (GH-137347)Serhiy Storchaka2025-08-033-4/+4
| | | (cherry picked from commit 1612dcbafe763014deefd679fe75ac5831a14a43)
* [3.13] gh-137314: Fix incorrect treatment of format specs in raw fstrings ↵Miss Islington (bot)2025-08-031-0/+28
| | | | | | | | (GH-137328) (#137345) gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328) (cherry picked from commit 0153d82a5ab0c6ac16c046bdd4438ea11b58d59d) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-135444: fix `asyncio.DatagramTransport.sendto` to account for ↵Miss Islington (bot)2025-08-034-5/+51
| | | | | | | | | datagram header size when data cannot be sent (GH-135445) (#137246) gh-135444: fix `asyncio.DatagramTransport.sendto` to account for datagram header size when data cannot be sent (GH-135445) (cherry picked from commit e3ea8613519bd08aa6ce7d142403e644ae32d843) Co-authored-by: Justin Bronder <jsbronder@cold-front.org> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.13] gh-137273: Fix debug assertion failure in locale.setlocale() on ↵Miss Islington (bot)2025-08-011-21/+49
| | | | | | | | | Windows (GH-137300) (GH-137306) It happened when there were at least 16 characters after dot in the locale name. (cherry picked from commit 718e0c89ba0610bba048245028ac133bbf2d44c2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] GH-116738: document thread-safety of bisect (GH-136555) (#137222)Miss Islington (bot)2025-07-301-0/+79
| | | | | | | * GH-116738: document thread-safety of bisect (GH-136555) (cherry picked from commit 5236b0281b91a874b14cf15f3fdef9b7beffb22f) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.13] gh-130577: tarfile now validates archives to ensure member offsets ↵Miss Islington (bot)2025-07-282-0/+159
| | | | | | | | | are non-negative (GH-137027) (#137170) gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-137027) (cherry picked from commit 7040aa54f14676938970e10c5f74ea93cd56aa38) Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.13] gh-134698: Hold a lock when the thread state is detached in ssl ↵Gregory P. Smith2025-07-271-0/+19
| | | | | | | | (GH-134724) (#137126) Lock when the thread state is detached. (cherry picked from commit e047a35b23c1aa69ab8d5da56f36319cec4d36b8) or really from the 3.14 backport fd565fdfc9c0001900d03d627e2fda83f1bcca90 Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* [3.13] gh-131038: Use text=True in subprocesses in test_perf_profiler ↵Miss Islington (bot)2025-07-261-5/+5
| | | | (GH-137117) (#137125)
* [3.13] gh-130522: Fix unraisable TypeError in threading at interpreter ↵Miss Islington (bot)2025-07-252-1/+18
| | | | | | | | | shutdown (GH-131537) (GH-137106) gh-130522: Fix unraisable TypeError in threading at interpreter shutdown (GH-131537) (cherry picked from commit cb93b6fc5ea525f8075cb53ec373356fec63903a) Co-authored-by: Tyler Kennedy <tk@tkte.ch> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* [3.13] Fix Queue.shutdown docs for condition to unblock a join (gh-137088) ↵Miss Islington (bot)2025-07-252-6/+10
| | | | (gh-137102)
* [3.13] Fix docs for Queue.shutdown (gh-137028) (gh-137081)Miss Islington (bot)2025-07-242-10/+4
|
* [3.13] gh-118350: Fix support of elements "textarea" and "title" in ↵Miss Islington (bot)2025-07-222-5/+111
| | | | | | | | | HTMLParser (GH-135310) (GH-136985) (cherry picked from commit 4d02f31cdd45d81b95540d9076222b709d4f2335) Co-authored-by: Timon Viola <44016238+timonviola@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.13] gh-135661: Fix parsing attributes with whitespaces around the "=" ↵Miss Islington (bot)2025-07-222-14/+18
| | | | | | | | separator in HTMLParser (GH-136908) (GH-136918) This fixes a regression introduced in GH-135930. (cherry picked from commit dee650189497735edbc08a54edabb5b06ef1bd09) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-135148: Correctly handle f/t strings with comments and debug ↵Lysandros Nikolaou2025-07-211-0/+12
| | | | | | expressions (#135198) (#136899) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-130655: gettext: Add fallback testcase (GH-136857) (#136863)Miss Islington (bot)2025-07-201-0/+7
| | | | | | gh-130655: gettext: Add fallback testcase (GH-136857) (cherry picked from commit c6e6fe92cd8b90d546652764e3eaf1631da16f8f) Co-authored-by: Dominic H <dom@dominic.sk>
* [3.13] gh-136764: improve comment in enum.verify.__call__ (GH-136774) ↵Miss Islington (bot)2025-07-191-1/+1
| | | | | | | | (GH-136842) gh-136764: improve comment in enum.verify.__call__ (GH-136774) (cherry picked from commit 6a1c93af806d0ca5d3fb86cd183d00013bbf28d1) Co-authored-by: Saurav Singh <sauravsinghshakya@yahoo.com>
* [3.13] Fix the doctest.testmod() docstring (GH-136675) (GH-136691)Miss Islington (bot)2025-07-151-2/+2
| | | | | | __test__ = None is not supported since Python 2.4. (cherry picked from commit cb59eaefeda5ff44ac0c742bff2b8afc023be313) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-130664: support '_' (just as ',') in Decimal's formatting ↵Miss Islington (bot)2025-07-142-1/+6
| | | | | | | | (GH-132155) (#136649) gh-130664: support '_' (just as ',') in Decimal's formatting (GH-132155) (cherry picked from commit e10fe81cc6ae0979938eb3925139d56a74c620e3) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.13] gh-127971: fix off-by-one read beyond the end of a string during ↵Duane Griffin2025-07-141-0/+9
| | | | | search (#132574) (#136648) (cherry picked from commit 85ec3b3b503ffd5b7e45f8b3fa2cec0c10e4bef0)
* [3.13] gh-136523: Fix wave.Wave_write emitting an unraisable when open ↵Miss Islington (bot)2025-07-132-0/+11
| | | | | | | raises (GH-136529) (GH-136607) (cherry picked from commit 171de05b4884d1353044417ea51a4efcb55ba633) Co-authored-by: Sachin Shah <39803835+inventshah@users.noreply.github.com>
* [3.13] gh-136549: Fix signature of threading.excepthook() (GH-136559) ↵Miss Islington (bot)2025-07-121-0/+1
| | | | | | | (GH-136590) (cherry picked from commit be2c3d284ecce67474a260b8c37e2f1e0628a9cf) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when ↵Bénédikt Tran2025-07-121-0/+35
| | | | | | | `ind.__index__` has side-effects (GH-132379) (#136582) (cherry picked from commit 5e1e21dee35b8e9066692d08033bbbdb562e2c28) Co-authored-by: Bast <52266665+bast0006@users.noreply.github.com>
* [3.13] gh-134759: fix `UnboundLocalError` in ↵Miss Islington (bot)2025-07-122-0/+11
| | | | | | | | | `email.message.Message.get_payload` (GH-136071) (#136580) gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload` (GH-136071) (cherry picked from commit 25335d297b5248922a4c82183bcdf0c0ada8352b) Co-authored-by: Kliment Lamonov <klimentlamonov@yandex.ru> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` ↵Miss Islington (bot)2025-07-101-5/+5
| | | | | | | | | | functions (GH-136498) (#136515) gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions (GH-136498) Closes GH-52876 (cherry picked from commit 35e2c359703e076256c1249b74b87043972e04d6) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
* [3.13] gh-136438: Make sure `test_builtins` pass with all optimization ↵sobolevn2025-07-101-1/+1
| | | | | levels (GH-136474) (#136502) (cherry picked from commit c17654334946b232aa296696cf70ec93a09d8156)
* [3.13] gh-136447: Use `self.loop` instead of global `loop` variable in ↵Miss Islington (bot)2025-07-091-1/+1
| | | | | | | | asyncio REPL (GH-136448) (#136457) gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL (GH-136448) (cherry picked from commit 77fa7a4dcc771bf4d297ebfd4f357483d0750a1c) Co-authored-by: Justin Su <injustsu@gmail.com>
* [3.13] gh-136297: Fix `hypothesis` and `subTest` usage in ↵Miss Islington (bot)2025-07-081-9/+7
| | | | | | | | `test_zoneinfo_property.py` (GH-136384) (#136408) gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property.py` (GH-136384) (cherry picked from commit db699db99d214dccb7c4849fa609fdd5188ee038) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.13] gh-124486: Fix test_whichdb_ndbm in test_dbm on NetBSD (GH-136335) ↵Miss Islington (bot)2025-07-071-1/+2
| | | | | | | | (GH-136379) On NetBSD, ndbm.open() does not fail for empty file. (cherry picked from commit b7aa2a4b4df697db6ea45a555eeb3fefa5ca5bd4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-136289: Fix test_sqlite3 on platforms with strict UTF-8 filesystem ↵Miss Islington (bot)2025-07-071-12/+14
| | | | | | | (GH-136326) (GH-136351) (cherry picked from commit 85b817da94cf911a964d42e81a57e1de9ab71ef9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-136297: Test all `pickle` protocols in `test_zoneinfo_property.py` ↵Miss Islington (bot)2025-07-051-7/+11
| | | | | | | | (GH-136298) (#136312) gh-136297: Test all `pickle` protocols in `test_zoneinfo_property.py` (GH-136298) (cherry picked from commit 5de7e3f9739b01ad180fffb242ac57cea930e74d) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.13] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 ↵Miss Islington (bot)2025-07-042-3/+47
| | | | | | | | | | | | | | standard (GH-135664) (GH-136272) * "--!>" now ends the comment. * "-- >" no longer ends the comment. * Support abnormally ended empty comments "<-->" and "<--->". --------- (cherry picked from commit 8ac7613dc8b8f82253d7c0e2b6ef6ed703a0a1ee) Co-author: Kerim Kabirov <the.privat33r+gh@pm.me> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.13] gh-135661: Fix parsing start and end tags in HTMLParser according to ↵Miss Islington (bot)2025-07-032-129/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the HTML5 standard (GH-135930) (GH-136256) * Whitespaces no longer accepted between `</` and the tag name. E.g. `</ script>` does not end the script section. * Vertical tabulation (`\v`) and non-ASCII whitespaces no longer recognized as whitespaces. The only whitespaces are `\t\n\r\f `. * Null character (U+0000) no longer ends the tag name. * Attributes and slashes after the tag name in end tags are now ignored, instead of terminating after the first `>` in quoted attribute value. E.g. `</script/foo=">"/>`. * Multiple slashes and whitespaces between the last attribute and closing `>` are now ignored in both start and end tags. E.g. `<a foo=bar/ //>`. * Multiple `=` between attribute name and value are no longer collapsed. E.g. `<a foo==bar>` produces attribute "foo" with value "=bar". * Whitespaces between the `=` separator and attribute name or value are no longer ignored. E.g. `<a foo =bar>` produces two attributes "foo" and "=bar", both with value None; `<a foo= bar>` produces two attributes: "foo" with value "" and "bar" with value None. --------- (cherry picked from commit 0243f97cbadec8d985e63b1daec5d1cbc850cae3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.13] gh-130664: Treat '0' fill character with align '=' as zero-padding ↵Miss Islington (bot)2025-07-032-5/+5
| | | | | | | for Fraction's (GH-131067) (GH-136242) (cherry picked from commit c113a8e5236b31217d82ce289d3df6ec9e8411cd) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.13] gh-135069: Fix exception message in encodings.idna module (GH-135071) ↵Miss Islington (bot)2025-07-031-1/+1
| | | | | | | | (#136236) gh-135069: Fix exception message in encodings.idna module (GH-135071) (cherry picked from commit 8dc3383abea72ee3deafec60818aeb817d8fec09) Co-authored-by: Daniel Hollas <daniel.hollas@bristol.ac.uk>
* [3.13] Docs: fix docstring of `email.message.Message.add_header` (GH-134355) ↵Miss Islington (bot)2025-07-031-1/+1
| | | | | | | | | (#135340) Docs: fix docstring of `email.message.Message.add_header` (GH-134355) (cherry picked from commit c23eec29602eb090d6f3e854e41c22c1e2c6dfc2) Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.13] gh-135640: Adds more type checking to ElementTree (GH-135643) (GH-136226)Miss Islington (bot)2025-07-032-2/+35
| | | | | (cherry picked from commit e0245c789f54b63d461717a91eec8ffccbe18966) Co-authored-by: Kira <kirawhoprograms@fastmail.com>
* [3.13] gh-135836: Fix `IndexError` in `asyncio.create_connection()` ↵Miss Islington (bot)2025-07-032-30/+64
| | | | | | | | (GH-135875) (#136222) gh-135836: Fix `IndexError` in `asyncio.create_connection()` (GH-135875) (cherry picked from commit 9084b151567d02936ea1374961809b69b4cd883d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>