]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Wed, 25 Sep 2024 15:10:05 +0000 (17:10 +0200)]
[3.12] gh-108951: Document how to terminate an asyncio.TaskGroup (GH-123837) (#123957)
gh-108951: Document how to terminate an asyncio.TaskGroup (GH-123837)
We don't want to add another API, since the recipe is straightforward and rarely needed.
The advantage is that we could backport this to the earliest Python version that has taskgroups (3.11, alas in security mode already, so we'll just do 3.12 and 3.13).
(cherry picked from commit
ef05801ba0cbf090034df17e2a0420fb42c2d538 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Wed, 25 Sep 2024 10:28:27 +0000 (12:28 +0200)]
[3.12] bpo-44864: Do not translate user-provided strings in ArgumentParser.add_subparsers() (GH-27667) (GH-124505)
Call _() on literal strings only.
(cherry picked from commit
d3c76dff444046504754a437dceebc9a9c87ef18 )
Co-authored-by: Jérémie Detrey <jdetrey@users.noreply.github.com>
Miss Islington (bot) [Wed, 25 Sep 2024 09:31:17 +0000 (11:31 +0200)]
[3.12] gh-123445: calendar: Improve descriptions for day and month attributes (GH-123483) (#124501)
gh-123445: calendar: Improve descriptions for day and month attributes (GH-123483)
(cherry picked from commit
8447c933da308939b06e33544ca9abc9fc46aa8b )
Co-authored-by: Mat S <mscull@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Wed, 25 Sep 2024 01:50:18 +0000 (03:50 +0200)]
[3.12] Adjust build_ubuntu_ssltests job to use cache for the correct OS version (GH-124482)
(cherry picked from commit
54dd77fb8c880d7655fffab934978e277b4275fe )
Authored-by: Zachary Ware <zach@python.org>
Jason R. Coombs [Tue, 24 Sep 2024 17:19:43 +0000 (13:19 -0400)]
[3.12] gh-121735: Fix module-adjacent references in zip files (gh-123037) (#124011)
Miss Islington (bot) [Tue, 24 Sep 2024 17:15:21 +0000 (19:15 +0200)]
[3.12] GH-87358: Add clarification about nargs and default argparse behaviour (GH-124094) (#124441)
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Miss Islington (bot) [Tue, 24 Sep 2024 13:52:27 +0000 (15:52 +0200)]
[3.12] gh-124120: Document `Annotated.__origin__` (GH-124125) (#124417)
gh-124120: Document `Annotated.__origin__` (GH-124125)
(cherry picked from commit
faef3fa653f2901cc905f98eae0ddcd8dc334d33 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Tue, 24 Sep 2024 13:08:22 +0000 (15:08 +0200)]
[3.12] gh-59317: Improve parsing optional positional arguments in argparse (GH-124303) (GH-124437)
Fix parsing positional argument with nargs equal to '?' or '*' if it is
preceded by an option and another positional argument.
(cherry picked from commit
4a5e4aade420c594c5b3fe0589e9e6b444bd6ee5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 24 Sep 2024 11:19:53 +0000 (13:19 +0200)]
[3.12] gh-65169: Clarify prog default in argparse (GH-31602) (GH-124431)
(cherry picked from commit
e69ff34e81eceb69de6623205c87e0145f1831e4 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Serhiy Storchaka [Tue, 24 Sep 2024 08:53:54 +0000 (11:53 +0300)]
[3.12] gh-124188: Fix PyErr_ProgramTextObject() (GH-124189) (GH-124426)
* Detect source file encoding.
* Use the "replace" error handler even for UTF-8 (default) encoding.
* Remove the BOM.
* Fix detection of too long lines if they contain NUL.
* Return the head rather than the tail for truncated long lines.
(cherry picked from commit
e2f710792b0418b8ca1ca3b8cdf39588c7268495 )
Miss Islington (bot) [Tue, 24 Sep 2024 08:43:26 +0000 (10:43 +0200)]
[3.12] gh-72795: Make positional arguments with nargs='*' or REMAINDER non-required (GH-124306) (GH-124422)
This allows to use positional argument with nargs='*' and without default
in mutually exclusive group and improves error message about required
arguments.
(cherry picked from commit
3c83f9958c14cd62ad8951c53536f7788745b0ba )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 24 Sep 2024 07:54:32 +0000 (09:54 +0200)]
[3.12] gh-53780: Ignore the first "--" (double dash) between an option and command in argparse (GH-124275) (GH-124420)
(cherry picked from commit
c578271366176a1d1b0941897efefb6e4d6508b4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 24 Sep 2024 07:42:34 +0000 (09:42 +0200)]
[3.12] gh-63143: Fix parsing mutually exclusive arguments in argparse (GH-124307) (GH-124419)
Arguments with the value identical to the default value (e.g. booleans,
small integers, empty or 1-character strings) are no longer considered
"not present".
(cherry picked from commit
3094cd17b0e5ba69309c54964744c797a70aa11b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 24 Sep 2024 06:56:45 +0000 (08:56 +0200)]
[3.12] gh-124130: Increase test coverage for \b and \B in regular expressions (GH-124330) (GH-124414)
(cherry picked from commit
b82f07653e1e15a48ebaf8de324f52559e470254 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 24 Sep 2024 06:42:00 +0000 (08:42 +0200)]
[3.12] Docs: Update two FAQs for Python 3 (GH-124247) (GH-124256)
(cherry picked from commit
5f011115943933ff36adf997c886d73ea88003fb )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Alex Waygood [Mon, 23 Sep 2024 23:09:27 +0000 (16:09 -0700)]
[3.12] Bump Ruff to 0.6.7 (#124384) (#124391)
Miss Islington (bot) [Mon, 23 Sep 2024 22:19:18 +0000 (00:19 +0200)]
[3.12] Doc: Add ``make dist-no-html`` (GH-124383) (#124388)
Miss Islington (bot) [Mon, 23 Sep 2024 20:16:45 +0000 (22:16 +0200)]
[3.12] GH-87041: Fix incorrect indentation in argparse help (GH-124230) (GH-124374)
In case of usage a long command along with max_help_position more than
the length of the command, the command's help was incorrectly started
on the new line.
(cherry picked from commit
7ee99217345af3010bf05b1f5241c661a5e0ea9b )
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Co-authored-by: Pavel Ditenbir <pavel.ditenbir@gmail.com>
Adam Turner [Mon, 23 Sep 2024 19:31:28 +0000 (20:31 +0100)]
[3.12] GH-109975: Copyedit 3.13 What's New: Copyedit C API deprecations pending removal (GH-124336) (#124365)
(cherry picked from commit
e7d465a607b77a552d1e07f3fafa81ef5fc799d2 )
Savannah Ostrowski [Mon, 23 Sep 2024 19:04:36 +0000 (12:04 -0700)]
[3.12] GH-79714: Add mention of stderr for clarity to ArgumentParser.exit() (GH-123932) (GH-124356)
(cherry picked from commit
5f5c0b9c23238dc0a1fdb764f625ae0cc5604519 )
Miss Islington (bot) [Mon, 23 Sep 2024 16:41:01 +0000 (18:41 +0200)]
[3.12] Replace the term `Immutable` with a `Hashable` in the `sequence` entry of the Glossary (GH-124350) (#124353)
Replace the term `Immutable` with a `Hashable` in the `sequence` entry of the Glossary (GH-124350)
The term `Immutable` in the `sequence` entry of the glossary is used incorrectly, in fact dicts accepts hashable keys, which is not the same as immutable.
(cherry picked from commit
6203ef35dd4ee9dd59759ce83eace8eacac69685 )
Co-authored-by: decorator-factory <42166884+decorator-factory@users.noreply.github.com>
Miss Islington (bot) [Mon, 23 Sep 2024 14:37:10 +0000 (16:37 +0200)]
[3.12] Fix doctrees directory for the gettext builder (GH-122997) (#124339)
Fix doctrees directory for the gettext builder (GH-122997)
(cherry picked from commit
315a933a5b3ae4379077096b6852f85a81a7d75f )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Mon, 23 Sep 2024 07:05:24 +0000 (09:05 +0200)]
[3.12] gh-124130: Notes on empty string corner case of category `\B` (GH-124133) (#124329)
gh-124130: Notes on empty string corner case of category `\B` (GH-124133)
(cherry picked from commit
d3e79d75d164c338a64fd66edb26e69c501cee58 )
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Terry Jan Reedy [Mon, 23 Sep 2024 01:57:36 +0000 (21:57 -0400)]
[3.12] Backport idlelib typos (#124324)
See https://github.com/python/cpython/pull/123597.
(cherry picked from commit
1f4a49e )
Co-authored-by: abstractee
Miss Islington (bot) [Sun, 22 Sep 2024 20:07:52 +0000 (22:07 +0200)]
[3.12] gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapid continuous output. (GH-124310) (#124319)
gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapid continuous output. (GH-124310)
https://github.com/python/cpython/issues/88496 replaced text.update with text.update_idletasks in colorizer.py and outwin.py to fix test failures on macOS. While theoretically correct, the result was Shell freezing when receiving continuous short strings to print. Test: `while 1: 1`.
The guess is that there is no idle time in which to do the screen update. Reverting the change in one of the files,
outwin, fixes the issue. Colorizer runs ever 1/20 second and seems to work fine.
When running test-outwin on macOS, alias 'update'
to 'update_idletasks on the text used for testing.
(cherry picked from commit
d5f95ec07bb47a4d6554e04d13a979dbeac05f74 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 22 Sep 2024 17:42:14 +0000 (19:42 +0200)]
[3.12] gh-95468: Add more tests for "--" (double dash) in test_argparse (GH-124274) (GH-124276)
(cherry picked from commit
baa3550bc3a119f41cc4eaed5373f9d695208e8e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 20 Sep 2024 12:20:27 +0000 (14:20 +0200)]
[3.12] gh-124217, ipaddress: Add RFC 9637 reserved IPv6 block `3fff::/20` (GH-124240) (#124283)
gh-124217, ipaddress: Add RFC 9637 reserved IPv6 block `3fff::/20` (GH-124240)
(cherry picked from commit
db6eb3640a7d98db6fea17cf9da4cb14504e5571 )
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
Miss Islington (bot) [Fri, 20 Sep 2024 10:51:12 +0000 (12:51 +0200)]
[3.12] Fix typo in XMLParser doc (GH-124129) (#124281)
Fix typo in XMLParser doc (GH-124129)
(cherry picked from commit
622368d99c986ca1a9bdba951ac53f42d7ee6fca )
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Miss Islington (bot) [Fri, 20 Sep 2024 10:29:43 +0000 (12:29 +0200)]
[3.12] gh-124248: Fix crash in struct when processing 0p fields (GH-124251) (#124278)
gh-124248: Fix crash in struct when processing 0p fields (GH-124251)
(cherry picked from commit
63f196090f90cbfe5f698824655f74dea5cb2b29 )
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Miss Islington (bot) [Fri, 20 Sep 2024 10:02:30 +0000 (12:02 +0200)]
[3.12] gh-81691: Fix handling of multiple "--" (double dashes) in argparse (GH-124233) (GH-124267)
Only the first one has now been removed, all subsequent ones are now
taken literally.
(cherry picked from commit
aae126748ff3d442fdbcd07933855ffd7ae6f59c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 19 Sep 2024 08:30:19 +0000 (10:30 +0200)]
[3.12] gh-124040: Adjust few tests in testHypot/testDist to get exactly computed results (GH-124042) (GH-124236)
(cherry picked from commit
4420cf4dc9ef7bd3c1c9b5465fa9397304bf0110 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Thu, 19 Sep 2024 08:18:01 +0000 (10:18 +0200)]
[3.12] gh-123934: Fix `MagicMock` not to reset magic method return values (GH-124038) (#124232)
gh-123934: Fix `MagicMock` not to reset magic method return values (GH-124038)
(cherry picked from commit
7628f67d55cb65bad9c9266e0457e468cd7e3775 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Wed, 18 Sep 2024 21:47:18 +0000 (23:47 +0200)]
[3.12] gh-124083: Skip test_signal.test_strsignal() on NetBSD (GH-124084) (#124224)
gh-124083: Skip test_signal.test_strsignal() on NetBSD (GH-124084)
Skip test_strsignal() on NetBSD due to TypeError.
(cherry picked from commit
36682c091407dc9c7e750c22fb71e62466952662 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Wed, 18 Sep 2024 21:12:17 +0000 (23:12 +0200)]
[3.12] Fix `make htmllive` target (GH-124222)
Allow `make -C Doc htmllive` to work without manual venv activation
Set PATH to ensure that `sphinx-autobuild` can find `sphinx-build`.
(cherry picked from commit
9a6e2336e4b54fc13064b77826a67b03b3b45133 )
Authored-by: Zachary Ware <zach@python.org>
Miss Islington (bot) [Wed, 18 Sep 2024 14:16:29 +0000 (16:16 +0200)]
gh-117505: Run ensurepip in isolated env in Windows installer (GH-118257)
ensurepip forks a subprocess to run pip itself, but that subprocess only inherits a -I isolated mode flag (see _run_pip() in Lib/ensurepip/__init__.py), not the "-E -s" flags that the installer has been using. This means that parts of ensurepip don't actually run in an isolated environment and can make incorrect decisions based on packages installed in the user site-packages.
(cherry picked from commit
c9073eb1a99606df1efeb8959e9f11a8ebc23ae2 )
Co-authored-by: Michael Vincent <377567+Vynce@users.noreply.github.com>
Miss Islington (bot) [Wed, 18 Sep 2024 06:47:17 +0000 (08:47 +0200)]
[3.12] Revert "gh-123974: Fix time.get_clock_info() on NetBSD (GH-123975)" (GH-124115) (GH-124200)
This reverts commit
b1d6f8a2ee04215c64aa8752cc515b7e98a08d28 .
(cherry picked from commit
79a74102362996bbd4ff5d410a0d57d43c236da4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 18 Sep 2024 00:58:10 +0000 (02:58 +0200)]
[3.12] gh-124194: Fix wrong issue number in What's New in Python 3.8 (GH-124195) (#124198)
gh-124194: Fix wrong issue number in What's New in Python 3.8 (GH-124195)
(cherry picked from commit
d8c0fe1944ac41787e16fa60e608f56c8235e100 )
Co-authored-by: Bradley Reynolds <bradley.reynolds@darbia.dev>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Sergey B Kirpichev [Tue, 17 Sep 2024 19:44:52 +0000 (22:44 +0300)]
[3.12] gh-123836: workaround fmod(x, y) bug on Windows (GH-124171) (#124186)
Buildbot failure on Windows 10 with MSC v.1916 64 bit (AMD64):
FAIL: testFmod (test.test_math.MathTests.testFmod)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\test_math.py", line 605, in testFmod
self.ftest('fmod(-10, 1)', math.fmod(-10, 1), -0.0)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\test_math.py", line 258, in ftest
self.fail("{}: {}".format(name, failure))
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: fmod(-10, 1): expected -0.0, got 0.0 (zero has wrong sign)
Here Windows loose sign of the result; if y is nonzero, the result
should have the same sign as x.
This amends commit
28aea5d07d .
(cherry picked from commit
f4dd4402108cc005d45acd4ca83c8530c36a93ca )
Miss Islington (bot) [Tue, 17 Sep 2024 15:19:07 +0000 (17:19 +0200)]
[3.12] GH-103484: Fix broken links reported by linkcheck (GH-124169) (#124180)
GH-103484: Fix broken links reported by linkcheck (GH-124169)
(cherry picked from commit
ab80c6b402eeec379315fa3df111f6bec2de6900 )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Tue, 17 Sep 2024 13:08:38 +0000 (15:08 +0200)]
[3.12] Use pep role instead of url (GH-121611) (#124173)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Tue, 17 Sep 2024 08:39:44 +0000 (10:39 +0200)]
[3.12] gh-123836: Check zero signs in math_testcases.txt (GH-123854) (#124162)
gh-123836: Check zero signs in math_testcases.txt (GH-123854)
Just like cmath_testcases.txt. These tests require IEEE 754 anyway.
Correct zero sign for sqrt tests to match math.h convention.
(cherry picked from commit
28aea5d07d163105b42acd81c1651397ef95ea57 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Tue, 17 Sep 2024 03:53:46 +0000 (05:53 +0200)]
[3.12] GH-103484: Fix permanently redirects reported by linkcheck (GH-124144) (GH-124152)
Fix redirects reported by linkcheck, update docs conf.py checks.
(cherry picked from commit
0a32c6959c265d21d7c43fe8e4aefc8c0983e85e )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Mon, 16 Sep 2024 23:28:51 +0000 (01:28 +0200)]
[3.12] GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (GH-124110) (#124147)
GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (GH-124110)
Skip test_strcoll_with_diacritic() and test_strxfrm_with_diacritic()
of test_locale on NetBSD due to lack of UTF-8 LC_COLLATE
support.
(cherry picked from commit
10de3600a908f96d1c43dac85ef867991d54708e )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Mon, 16 Sep 2024 20:29:02 +0000 (22:29 +0200)]
[3.12] gh-121023: Improve `_xxtestfuzz/README.rst` (GH-121024) (#124141)
gh-121023: Improve `_xxtestfuzz/README.rst` (GH-121024)
(cherry picked from commit
a9c2bc16349c2be3005f97249f3ae9699988f218 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
Miss Islington (bot) [Mon, 16 Sep 2024 18:49:14 +0000 (20:49 +0200)]
[3.12] GH-103484: Tell linkcheck to ignore debian manpage redirects (GH-123019) (#124136)
GH-103484: Tell linkcheck to ignore debian manpage redirects (GH-123019)
(cherry picked from commit
1054a755a3016f95fcd24b3ad20e8ed9048b7939 )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Mon, 16 Sep 2024 13:08:02 +0000 (15:08 +0200)]
[3.12] Docs: Drop letter PDF (GH-123912) (#123999)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 16 Sep 2024 08:43:31 +0000 (10:43 +0200)]
[3.12] gh-94808: Add test coverage for "starred kind" in _PyPegen_set_expr_context (GH-119222) (GH-119264)
Add test coverage for "starred kind" in _PyPegen_set_expr_context
(cherry picked from commit
8231a24454c854ea22590fd74733d29e4274122d )
Co-authored-by: Mark Jason Dominus (陶敏修) <mjd@pobox.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 15 Sep 2024 19:14:19 +0000 (21:14 +0200)]
[3.12] gh-98442: fix locations of with statement's cleanup instructions (GH-120763) (#120787)
gh-98442: fix locations of with statement's cleanup instructions (GH-120763)
(cherry picked from commit
55596ae0446e40f47e2a28b8897fe9530c32a19a )
gh-98442: fix location of with statement's cleanup instructions
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 13 Sep 2024 20:54:09 +0000 (22:54 +0200)]
[3.12] gh-123974: Fix time.get_clock_info() on NetBSD (GH-123975) (#124073)
gh-123974: Fix time.get_clock_info() on NetBSD (GH-123975)
Fix OSError for thread_time clock on NetBSD by setting default resolution.
(cherry picked from commit
b1d6f8a2ee04215c64aa8752cc515b7e98a08d28 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Fri, 13 Sep 2024 16:44:57 +0000 (18:44 +0200)]
[3.12] gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031) (GH-124062)
(cherry picked from commit
9f42b62db998131bb5cd555e2fa72ba7e06e3130 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Fri, 13 Sep 2024 15:33:31 +0000 (17:33 +0200)]
[3.12] Normalize cdecl formatting as found elsewhere on ctypes.rst (GH-121379) (#124057)
Co-authored-by: utkonos <utkonos@users.noreply.github.com>
Miss Islington (bot) [Fri, 13 Sep 2024 13:09:26 +0000 (15:09 +0200)]
[3.12] gh-123811: Test that round(Decimal) can return signed zero (GH-124007) (GH-124049)
(cherry picked from commit
b46c65ed2b78214cb8914779ac4e8d343ac4775e )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Victor Stinner [Thu, 12 Sep 2024 14:21:31 +0000 (16:21 +0200)]
[3.12] gh-123917: Fix crypt check in configure (#123952)
Use a global volatile variable and check if the function is not NULL
to use the variable. Otherwise, a compiler optimization can remove
the variable making the check useless.
Co-authored-by: Paul Smith <paul@mad-scientist.net>
Miss Islington (bot) [Thu, 12 Sep 2024 12:14:42 +0000 (14:14 +0200)]
[3.12] gh-118577: Clarify that inspect.BoundArguments prefers to put values in args (GH-119936) (GH-124004)
(cherry picked from commit
8e99495701737c9d9706622f59581213ef163b23 )
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Miss Islington (bot) [Thu, 12 Sep 2024 07:48:01 +0000 (09:48 +0200)]
[3.12] gh-123935: Fix typo in `_get_slots` in `dataclasses.py` (GH-123941) (#123992)
gh-123935: Fix typo in `_get_slots` in `dataclasses.py` (GH-123941)
(cherry picked from commit
ac918ccad707ab2d7dbb78a4796a7b8a874f334c )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Wed, 11 Sep 2024 13:56:00 +0000 (15:56 +0200)]
[3.12] gh-123919: Fix null handling in `_freeze_module.c` (GH-123920) (#123949)
gh-123919: Fix null handling in `_freeze_module.c` (GH-123920)
(cherry picked from commit
c8d1dbef5b770b647aa7ff45fd5b269bc7629d0b )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Wed, 11 Sep 2024 12:26:35 +0000 (14:26 +0200)]
[3.12] gh-123811: test that round() can return signed zero (GH-123829) (#123939)
gh-123811: test that round() can return signed zero (GH-123829)
(cherry picked from commit
d2b9b6f919e92184420c8e13d078e83447ce7917 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Sergey B Kirpichev [Wed, 11 Sep 2024 12:06:40 +0000 (15:06 +0300)]
[3.12] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) (#123841)
* [3.12] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071)
(cherry picked from commit
8ef8354ef15e00d484ac2ded9442b789c24b11e0 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Serhiy Storchaka [Wed, 11 Sep 2024 09:32:39 +0000 (12:32 +0300)]
[3.12] gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898) (GH-123937)
Now a memoryview object can only be cleared if there are no buffers
that refer it.
(cherry picked from commit
a1dbf2ea69acc6ccee6292709af1dadd55c068be )
Miss Islington (bot) [Wed, 11 Sep 2024 06:28:36 +0000 (08:28 +0200)]
[3.12] gh-123905: Update TOML description to include version number (GH-123906) (#123907)
Miss Islington (bot) [Tue, 10 Sep 2024 20:12:41 +0000 (22:12 +0200)]
gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different directories (GH-123918)
(cherry picked from commit
00ffdf27367fb9aef247644a96f1a9ffb5be1efe )
Co-authored-by: adang1345 <adang1345@gmail.com>
Miss Islington (bot) [Tue, 10 Sep 2024 13:27:50 +0000 (15:27 +0200)]
[3.12] gh-123881: Add additional test coverage for PEP 695 edge cases (GH-123886) (#123891)
gh-123881: Add additional test coverage for PEP 695 edge cases (GH-123886)
(cherry picked from commit
b52de7e02dba9e1f176d6d978d782fbd0509311e )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Tue, 10 Sep 2024 10:11:56 +0000 (12:11 +0200)]
[3.12] gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (#123897)
gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893)
(cherry picked from commit
fb1b51a58df4315f7ef3171a5abeb74f132b0971 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 9 Sep 2024 14:05:44 +0000 (16:05 +0200)]
[3.12] Mention `curl` in `contextvars` docs (GH-123838) (#123869)
Mention `curl` in `contextvars` docs (GH-123838)
(cherry picked from commit
b950831c941a37c37b68a771610e072d11d33331 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Victor Stinner [Mon, 9 Sep 2024 13:22:13 +0000 (15:22 +0200)]
[3.12] Fix typos (#123775) (#123867)
Fix typos (#123775)
(cherry picked from commit
9017b95ff2dcff16bcb0b0a609ed2b0daa845943 )
Co-authored-by: algonell <algonell@gmail.com>
Miss Islington (bot) [Mon, 9 Sep 2024 12:47:05 +0000 (14:47 +0200)]
[3.12] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824) (#123865)
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824)
Fix test_posix for unsupported posix_fallocate on NetBSD.
(cherry picked from commit
df4f0cbfad8a1ed0146cabd30d01efd135d4d048 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Mon, 9 Sep 2024 11:18:42 +0000 (13:18 +0200)]
[3.12] gh-123780: Make test_pkgutil clean up `spam` module (GH-123036) (GH-123782)
(cherry picked from commit
eca3fe40c251d51964172dd4e6e9c7d0d85d7d4a )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Sun, 8 Sep 2024 04:24:08 +0000 (06:24 +0200)]
[3.12] gh-123789: `secrets.randbits` returns only non-negative int (GH-123801) (#123831)
gh-123789: `secrets.randbits` returns only non-negative int (GH-123801)
(cherry picked from commit
beee91cdcc0dbecab252f7c5c7c51e2adb8edc26 )
Co-authored-by: Wulian <1055917385@qq.com>
Miss Islington (bot) [Sat, 7 Sep 2024 18:22:54 +0000 (20:22 +0200)]
[3.12] gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793) (GH-123814)
gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793)
Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit
76a1c5d18312712baed4699fe7333abb050ec9b7 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Miss Islington (bot) [Sat, 7 Sep 2024 18:19:23 +0000 (20:19 +0200)]
[3.12] Remove excessive backticks in logging doc (GH-123813) (#123817)
Remove excessive backticks in logging doc (GH-123813)
(cherry picked from commit
93050e46144c5864fbf2b39eac798387d5758a2d )
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
Ned Deily [Sat, 7 Sep 2024 01:01:31 +0000 (21:01 -0400)]
[3.12] Update macOS installer Welcome and ReadMe for 3.12.6 (#123800)
These changes to the Welcome and ReadMe files displayed in the macOS installer were included in the 3.12.6 release process.
Thomas Wouters [Fri, 6 Sep 2024 22:22:27 +0000 (00:22 +0200)]
Post 3.12.6
Thomas Wouters [Fri, 6 Sep 2024 19:00:07 +0000 (21:00 +0200)]
Python 3.12.6
Alex Waygood [Fri, 6 Sep 2024 17:06:36 +0000 (18:06 +0100)]
[3.12] gh-123523: Rework typing documentation for generators and coroutines, and link to it from `collections.abc` docs (#123544) (#123792)
Co-authored-by: Stanislav Terliakov <50529348+sterliakov@users.noreply.github.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:51:16 +0000 (15:51 +0200)]
[3.12] gh-123309: Add more tests for the pickletools module (GH-123355) (#123534)
Add tests for genops() and dis().
(cherry picked from commit
e5a567b0a721c26c79530249d9aa159afbd11955 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:50:27 +0000 (15:50 +0200)]
[3.12] gh-123431: Harmonize extension code checks in pickle (GH-123434) (#123460)
This checks are redundant in normal circumstances and can only work if
the extension registry was intentionally broken.
(cherry picked from commit
0c3ea3023878f5ad5ca4680d5510da1fe208cbfa )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:49:35 +0000 (15:49 +0200)]
[3.12] gh-122798: Make tests for warnings in the re module more strict (GH-122799) (#122805)
(cherry picked from commit
d2e5be1f39bc3d48c7bc8c146c4bcadee266672a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:48:23 +0000 (15:48 +0200)]
[3.12] gh-85110: Preserve relative path in URL without netloc in urllib.parse.urlunsplit() (GH-123179) (#123188)
(cherry picked from commit
90c892efeaae28bd849a01b42842f19dcd67b9f4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:47:42 +0000 (15:47 +0200)]
[3.12] gh-116263: Do not rollover empty files in RotatingFileHandler (GH-122788) (#122815)
(cherry picked from commit
6094c6fc2fc30eb9ee7c2f9f1088a851f71bf1b9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sam Gross [Fri, 6 Sep 2024 13:46:56 +0000 (09:46 -0400)]
[3.12] gh-122527: Fix a crash on deallocation of `PyStructSequence` (GH-122577) (#122626)
The `PyStructSequence` destructor would crash if it was deallocated after
its type's dictionary was cleared by the GC, because it couldn't compute
the "real size" of the instance. This could occur with relatively
straightforward code in the free-threaded build or with a reference
cycle involving the type in the default build, due to differing orders
in which `tp_clear()` was called.
Account for the non-sequence fields in `tp_basicsize` and use that,
along with `Py_SIZE()`, to compute the "real" size of a
`PyStructSequence` in the dealloc function. This avoids the accesses to
the type's dictionary during dealloc, which were unsafe.
(cherry picked from commit
4b63cd170e5dd840bffc80922f09f2d69932ff5c )
Petr Viktorin [Fri, 6 Sep 2024 13:46:05 +0000 (15:46 +0200)]
[3.12] gh-120426: Add the glossary term "immortal" (GH-123191) (GH-123491) (#123636)
Add the glossary term "immortal", mark it as an implementation detail
(cherry picked from commit
6754566a51a5706e8c9da0094b892113311ba20c )
(cherry picked from commit
1af74fa652b40d5ce67875ebfefd2f5a1cc28a2f )
(Unlike the original commits, this adds the entire entry.)
Miss Islington (bot) [Fri, 6 Sep 2024 13:44:54 +0000 (15:44 +0200)]
[3.12] gh-123207: Clarify the documentation for the mro lookup for super() (GH-123417) (#123733)
(cherry picked from commit
327463aef173a1cb9659bccbecfff4530bbe6bbf )
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Miss Islington (bot) [Fri, 6 Sep 2024 13:43:49 +0000 (15:43 +0200)]
[3.12] gh-123463: Include logging_flow diagram in non-HTML docs (GH-123464) (#123667)
(cherry picked from commit
7d2c2f24daf7a2abd166bb51652ba55c6f55695f )
Co-authored-by: Alexander Bessman <bessman@users.noreply.github.com>
Petr Viktorin [Fri, 6 Sep 2024 11:08:54 +0000 (13:08 +0200)]
[3.12] gh-102988: Adjust version numbers in versionadded directives (GH-123771)
Petr Viktorin [Fri, 6 Sep 2024 10:46:16 +0000 (12:46 +0200)]
[3.12] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (GH-111116) (#123766)
Detect email address parsing errors and return empty tuple to
indicate the parsing error (old API). Add an optional 'strict'
parameter to getaddresses() and parseaddr() functions. Patch by
Thomas Dwyer.
Co-Authored-By: Thomas Dwyer <github@tomd.tel>
(cherry picked from commit
4a153a1d3b18803a684cd1bcc2cdf3ede3dbae19 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 6 Sep 2024 10:43:05 +0000 (12:43 +0200)]
[3.12] gh-123048: Fix missing source location in pattern matching code (GH-123167) (#123170)
gh-123048: Fix missing source location in pattern matching code (GH-123167)
(cherry picked from commit
bffed80230f2617de2ee02bd4bdded1024234dab )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 6 Sep 2024 08:51:18 +0000 (10:51 +0200)]
[3.12] gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no longer hide exceptions (GH-123214) (#123258)
Co-authored-by: Bar Harel <bharel@barharel.com>
Miss Islington (bot) [Fri, 6 Sep 2024 08:08:32 +0000 (10:08 +0200)]
[3.12] gh-103066: Add links and `help` in site.py constants (GH-103777) (#123763)
Co-authored-by: David Caron <dcaron05@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sergey B Kirpichev [Thu, 5 Sep 2024 22:51:26 +0000 (01:51 +0300)]
[3.12] gh-111495: Add tests for PyNumber C API (GH-111996) (#123376)
(cherry picked from commit
2f20f5a9bc7dafdb3c2ae723da90eca1727a95f7 )
Sergey B Kirpichev [Thu, 5 Sep 2024 22:51:02 +0000 (01:51 +0300)]
[3.12] gh-111495: Add tests for PyTuple C API (GH-118757) (#123379)
(cherry picked from commit
dbc1752d4107532d312c78263212e807a3674eb1 )
Co-authored-by: kalyanr <kalyan.ben10@live.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 5 Sep 2024 20:11:25 +0000 (22:11 +0200)]
[3.12] Swap the and from in sentence in init_config.rst (GH-120086) (#123743)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Thu, 5 Sep 2024 18:05:50 +0000 (20:05 +0200)]
[3.12] gh-85453: Improve instance attributes mark up on datetime.rst (GH-123655) (#123741)
Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 5 Sep 2024 13:17:46 +0000 (15:17 +0200)]
[3.12] gh-123418: Update macOS installer to use OpenSSL 3.0.15 (GH-123684) (#123730)
(cherry picked from commit
092abc4060768f2ae8b7b9c133558bf05bfeff88 )
Co-authored-by: Zachary Ware <zach@python.org>
Miss Islington (bot) [Thu, 5 Sep 2024 12:25:38 +0000 (14:25 +0200)]
[3.12] gh-123321: Fix Parser/myreadline.c to prevent a segfault during a multi-threaded race (GH-123323) (#123677)
* gh-123321: Fix Parser/myreadline.c to prevent a segfault during a multi-threaded race (GH-123323)
(cherry picked from commit
a4562fedadb73fe1e978dece65c3bcefb4606678 )
Co-authored-by: Bar Harel <bharel@barharel.com>
* Remove @requires_gil_enabled for 3.12
---------
Co-authored-by: Bar Harel <bharel@barharel.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Thu, 5 Sep 2024 10:50:00 +0000 (12:50 +0200)]
[3.12] gh-123392: Clarify wording regarding parameters that are functions to be called (GH-123394) (GH-123665)
(cherry picked from commit
c08ede27140121a919e884c7e8dfdce7b1a2e906 )
Co-authored-by: ryan-duve <ryan-duve@users.noreply.github.com>
Miss Islington (bot) [Wed, 4 Sep 2024 22:36:39 +0000 (00:36 +0200)]
[3.12] gh-118508: Clarify which characters are matched by `\s` (GH-119155) (#123671)
gh-118508: Clarify which characters are matched by `\s` (GH-119155)
Clarify re syntax
(cherry picked from commit
22fdb8cf899d2dd29f2ac0bf61309af6809719fb )
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Miss Islington (bot) [Wed, 4 Sep 2024 21:31:28 +0000 (23:31 +0200)]
[3.12] gh-123700: Update OpenSSL versions in multissltests and CI (GH-123704)
Remove EOL 1.1.1w from CI and move it to the 'old' set in multissltests,
add latest 3.3.2 to both CI and multissltests.
(cherry picked from commit
d83e30caddcbf9482273743d287577517ec735b7 )
Co-authored-by: Zachary Ware <zach@python.org>
Zachary Ware [Wed, 4 Sep 2024 21:21:37 +0000 (16:21 -0500)]
[3.12] gh-123418: Update OpenSSL to 3.0.15 on Windows (GH-123691)
(cherry picked from commit
d2eafe2f48aac31aa8a152620bdfd0f2a274ee1d )
Miss Islington (bot) [Wed, 4 Sep 2024 20:19:33 +0000 (22:19 +0200)]
[3.12] gh-123678: Upgrade libexpat 2.6.3 (GH-123689) (GH-123708)
gh-123678: Upgrade libexpat 2.6.3 (GH-123689)
Upgrade libexpat 2.6.3
(cherry picked from commit
40bdb0deee746e51c71c56329df21e5172fd8aa0 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Zachary Ware [Wed, 4 Sep 2024 19:37:09 +0000 (14:37 -0500)]
[3.12] gh-123418: Update CI to use fresh OpenSSL releases (GH-123698)
Also adds openssl/openssl GitHub URL template for newer OpenSSL downloads
(cherry picked from commit
56b00f4705634af2861a8aa9c2eb5769012220f0 )