| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
(GH-137188) (#137366)
Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
|
| |
|
|
|
|
|
| |
(#136800) (#137367)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
|
| |
(GH-137195) (GH-137275)
(cherry picked from commit 0282eef880c8c8db782a2088b0257250e0f76d48)
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
|
| |
|
|
|
|
| |
`ASTOptimiziationTests` -> `ASTOptimizationTests`
(cherry picked from commit 60146f4f6f24f37e3bfcb9f101565f6e86cf0146)
Co-authored-by: Hunter Hogan <hunterhogan@users.noreply.github.com>
|
| |
|
|
|
|
| |
gh-137257: Upgrade bundled pip to 25.2 (GH-137258)
(cherry picked from commit 506542b5966073203f0da71a487de24e596b7979)
Co-authored-by: Richard Si <sichard26@gmail.com>
|
| |
|
|
|
|
| |
(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>
|
| |
|
| |
(cherry picked from commit 1612dcbafe763014deefd679fe75ac5831a14a43)
|
| |
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
* 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>
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
(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>
|
| |
|
|
| |
(GH-137117) (#137125)
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
| |
(gh-137102)
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
expressions (#135198) (#136899)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
|
| |
|
|
|
|
| |
gh-130655: gettext: Add fallback testcase (GH-136857)
(cherry picked from commit c6e6fe92cd8b90d546652764e3eaf1631da16f8f)
Co-authored-by: Dominic H <dom@dominic.sk>
|
| |
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
| |
__test__ = None is not supported since Python 2.4.
(cherry picked from commit cb59eaefeda5ff44ac0c742bff2b8afc023be313)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
| |
search (#132574) (#136648)
(cherry picked from commit 85ec3b3b503ffd5b7e45f8b3fa2cec0c10e4bef0)
|
| |
|
|
|
|
|
| |
raises (GH-136529) (GH-136607)
(cherry picked from commit 171de05b4884d1353044417ea51a4efcb55ba633)
Co-authored-by: Sachin Shah <39803835+inventshah@users.noreply.github.com>
|
| |
|
|
|
|
|
| |
(GH-136590)
(cherry picked from commit be2c3d284ecce67474a260b8c37e2f1e0628a9cf)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
| |
`ind.__index__` has side-effects (GH-132379) (#136582)
(cherry picked from commit 5e1e21dee35b8e9066692d08033bbbdb562e2c28)
Co-authored-by: Bast <52266665+bast0006@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
| |
`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>
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
| |
levels (GH-136474) (#136502)
(cherry picked from commit c17654334946b232aa296696cf70ec93a09d8156)
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
`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>
|
| |
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
|
| |
(GH-136326) (GH-136351)
(cherry picked from commit 85b817da94cf911a964d42e81a57e1de9ab71ef9)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
|
| |
(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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
for Fraction's (GH-131067) (GH-136242)
(cherry picked from commit c113a8e5236b31217d82ce289d3df6ec9e8411cd)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
|
| |
|
|
|
|
|
|
| |
(#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>
|
| |
|
|
|
|
|
|
|
| |
(#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>
|
| |
|
|
|
| |
(cherry picked from commit e0245c789f54b63d461717a91eec8ffccbe18966)
Co-authored-by: Kira <kirawhoprograms@fastmail.com>
|
| |
|
|
|
|
|
|
| |
(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>
|