]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
13 months ago[3.13] Tee of tee was not producing n independent iterators (gh-123884) (gh-125081)
Raymond Hettinger [Tue, 8 Oct 2024 19:11:43 +0000 (14:11 -0500)] 
[3.13] Tee of tee was not producing n independent iterators (gh-123884) (gh-125081)

13 months ago[3.13] gh-124832: Add a note to indicate that `datetime.now` may return the same...
Miss Islington (bot) [Tue, 8 Oct 2024 18:26:07 +0000 (20:26 +0200)] 
[3.13] gh-124832: Add a note to indicate that `datetime.now` may return the same instant (GH-124834) (#125145)

gh-124832: Add a note to indicate that `datetime.now` may return the same instant (GH-124834)

* Update datetime.rst

* Update datetime.rst

replace warning with note

* Update Doc/library/datetime.rst

* Update Doc/library/datetime.rst

---------

(cherry picked from commit 760b1e103a0aa696cdf448e0d500cd1bac2213fa)

Co-authored-by: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
13 months ago[3.13] gh-117721: use PyMutex in `_thread.lock` (#125110) (#125116)
Kumar Aditya [Tue, 8 Oct 2024 15:46:48 +0000 (21:16 +0530)] 
[3.13] gh-117721: use PyMutex in `_thread.lock` (#125110) (#125116)

* gh-117721: use PyMutex in `_thread.lock` (#125110)

(cherry picked from commit fca552993da32044165223eec2297b6aaaac60ad)

13 months ago[3.13] gh-112433 add versionadded for `ctypes.Structure._align_` (GH-125087) (#125113)
Jelle Zijlstra [Tue, 8 Oct 2024 14:24:27 +0000 (07:24 -0700)] 
[3.13] gh-112433 add versionadded for `ctypes.Structure._align_` (GH-125087) (#125113)

(cherry picked from commit 5967dd8a4de60a418de84d1d1d9efc063ad12c47)

Co-authored-by: monkeyman192 <monkey_man_192@yahoo.com.au>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
13 months ago[3.13] gh-125096: Don't import _pyrepl in site if PYTHON_BASIC_REPL (#125097) (#125111)
Victor Stinner [Tue, 8 Oct 2024 14:20:05 +0000 (16:20 +0200)] 
[3.13] gh-125096: Don't import _pyrepl in site if PYTHON_BASIC_REPL (#125097) (#125111)

gh-125096: Don't import _pyrepl in site if PYTHON_BASIC_REPL (#125097)

If the PYTHON_BASIC_REPL environment variable is set, the site module
no longer imports the _pyrepl module.

Moreover, the site module now respects -E and -I command line
options: ignore PYTHON_BASIC_REPL in this case.

(cherry picked from commit 65ce228d63878d8b6d0005f682e89ad9d5289c4b)

13 months ago[3.13] Doc: Improve description of ``GET_LEN`` opcode (GH-114583) (#125102)
Miss Islington (bot) [Tue, 8 Oct 2024 12:30:52 +0000 (14:30 +0200)] 
[3.13] Doc: Improve description of ``GET_LEN`` opcode (GH-114583) (#125102)

Doc: Improve description of ``GET_LEN`` opcode (GH-114583)
(cherry picked from commit e8773e59a835d23b9648271e0eb79c1651581564)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
13 months ago[3.13] gh-123378: fix a crash in `UnicodeError.__str__` (GH-124935) (#125099)
Miss Islington (bot) [Tue, 8 Oct 2024 12:06:57 +0000 (14:06 +0200)] 
[3.13] gh-123378: fix a crash in `UnicodeError.__str__` (GH-124935) (#125099)

gh-123378: fix a crash in `UnicodeError.__str__` (GH-124935)
(cherry picked from commit ba14dfafd97d1fd03938ac8ddec4ca5b2f12985d)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
13 months ago[3.13] gh-118658: Modify cert generation script to extract cert3.pem (GH-124598)...
Felix Fontein [Tue, 8 Oct 2024 11:37:30 +0000 (13:37 +0200)] 
[3.13] gh-118658: Modify cert generation script to extract cert3.pem (GH-124598) (GH-124972)

(cherry picked from commit 480354dc236af9ae9d47b2520aa85fb7293c7b68)

13 months ago[3.13] bpo-34206: Improve docs and test coverage for pre-init functions (GH-8023...
Alyssa Coghlan [Tue, 8 Oct 2024 09:30:06 +0000 (19:30 +1000)] 
[3.13] bpo-34206: Improve docs and test coverage for pre-init functions (GH-8023) (#125092)

- move the Py_Main documentation from the very high level API section
  to the initialization and finalization section
- make it clear that it encapsulates a full Py_Initialize/Finalize
  cycle of its own
- point out that exactly which settings will be read and applied
  correctly when Py_Main is called after a separate runtime
  initialization call is version dependent
- be explicit that Py_IsInitialized can be called prior to
  initialization
- actually test that Py_IsInitialized can be called prior to
  initialization
- flush stdout in the embedding tests that run code so it appears
  in the expected order when running with "-vv"
- make "-vv" on the subinterpreter embedding tests less spammy

---------

(cherry picked from commit 7c4b6a68f263320a2dd19cd5ff63b35c964b1fa8)

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
13 months ago[3.13] gh-53203: Improve tests for strptime() (GH-125090) (GH-125091)
Miss Islington (bot) [Tue, 8 Oct 2024 09:12:15 +0000 (11:12 +0200)] 
[3.13] gh-53203: Improve tests for strptime() (GH-125090) (GH-125091)

Run them with different locales and different date and time.

Add the @run_with_locales() decorator to run the test with multiple
locales.

Improve the run_with_locale() context manager/decorator -- it now
catches only expected exceptions and reports the test as skipped if no
appropriate locale is available.
(cherry picked from commit 19984fe024bfd90649f1c36b78c9abf3ed72b27d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-85935: Improve tests for invalid arguments in test_argparse (GH-124891...
Serhiy Storchaka [Tue, 8 Oct 2024 08:19:30 +0000 (11:19 +0300)] 
[3.13] gh-85935: Improve tests for invalid arguments in test_argparse (GH-124891) (GH-124901)

Check also specific error messages.
(cherry picked from commit 2c050d4bc28bffd2990b5a0bd03fb6fc56b13656)

13 months ago[3.13] gh-70870: Clarify dual usage of 'free variable' (GH-122545) (#125088)
Miss Islington (bot) [Tue, 8 Oct 2024 07:58:47 +0000 (09:58 +0200)] 
[3.13] gh-70870: Clarify dual usage of 'free variable' (GH-122545) (#125088)

The term "free variable" has unfortunately become genuinely
ambiguous over the years (presumably due to the names of
some relevant code object instance attributes).

While we can't eliminate that ambiguity at this late date, we can
at least alert people to the potential ambiguity by describing
both the formal meaning of the term and the common
alternative use as a direct synonym for "closure variable".

---------

(cherry picked from commit 27390990fa9306e2a797a4eb2bd83c5bfc7cb186)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
13 months ago[3.13] gh-58282: Fix support of tuple metavar for positional arguments in argparse...
Serhiy Storchaka [Tue, 8 Oct 2024 06:36:38 +0000 (09:36 +0300)] 
[3.13] gh-58282: Fix support of tuple metavar for positional arguments in argparse (GH-124782) (GH-124882)

Previously, formatting help output or error message for positional argument
with a tuple metavar raised exception.

(cherry picked from commit 9b31a2d83fa7cb0fe4d75ce7cf6a2c9ea2ce0728)

Co-authored-by: Cyker Way <cykerway@gmail.com>
13 months ago[3.13] gh-124653: Relax (again) detection of queue API for logging handlers (GH...
Miss Islington (bot) [Tue, 8 Oct 2024 06:23:40 +0000 (08:23 +0200)] 
[3.13] gh-124653: Relax (again) detection of queue API for logging handlers  (GH-124897) (GH-125059)

(cherry picked from commit 7ffe94fb242fd51bb07c7f0d31e94efeea3619d4)

13 months ago[3.13] gh-102511: Change the `os.path.splitroot` param name from `path` back to ...
Jelle Zijlstra [Tue, 8 Oct 2024 01:42:49 +0000 (18:42 -0700)] 
[3.13] gh-102511: Change the `os.path.splitroot` param name from `path` back to `p` (GH-124097) (#124919)

(cherry picked from commit 3b6bfa77aa4da2ce1f3a15e39831f8b85882698c)

Co-authored-by: sobolevn <mail@sobolevn.me>
13 months ago[3.13] gh-125018: Fix role syntax (GH-125050) (#125080)
Miss Islington (bot) [Tue, 8 Oct 2024 01:23:19 +0000 (03:23 +0200)] 
[3.13] gh-125018: Fix role syntax (GH-125050) (#125080)

gh-125018: Fix role syntax (GH-125050)
(cherry picked from commit 10094a533a947b72d01ed8195dcf540f2e7820ea)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] gh-125018: Add importlib.metadata semantic link targets (GH-125027) (#125047)
Alyssa Coghlan [Tue, 8 Oct 2024 01:16:10 +0000 (11:16 +1000)] 
[3.13] gh-125018: Add importlib.metadata semantic link targets (GH-125027) (#125047)

gh-125018: Add importlib.metadata semantic link targets (#125027)

This allows direct intersphinx references to APIs via references
like `` :func:`importlib.metadata.version` ``.

(cherry picked from commit cda3b5a576412a8671bbe4c68bb792ec14f1a4b1)

---------

Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] Docs: make a tutorial example more precise (GH-125066) (#125078)
Miss Islington (bot) [Tue, 8 Oct 2024 01:15:42 +0000 (03:15 +0200)] 
[3.13] Docs: make a tutorial example more precise (GH-125066) (#125078)

(cherry picked from commit 6e3c70c61bf961e55e9912a31ca11f61c8e2cd0c)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
13 months ago[3.13] gh-125072: Add label for assignment expressions; update tracked section for...
Emily Morehouse [Tue, 8 Oct 2024 01:14:34 +0000 (19:14 -0600)] 
[3.13] gh-125072: Add label for assignment expressions; update tracked section for assignment expression topic (GH-125074) (#125077)

(cherry picked from commit 447a15190d6d766004b77619ba43e44256e348e2)

13 months ago[3.13] Small improvements to the itertools docs (GH-123885) (#125075)
Raymond Hettinger [Mon, 7 Oct 2024 23:08:09 +0000 (18:08 -0500)] 
[3.13] Small improvements to the itertools docs (GH-123885) (#125075)

13 months ago[3.13] gh-58573: Fix conflicts between abbreviated long options in the parent parser...
Serhiy Storchaka [Mon, 7 Oct 2024 22:55:27 +0000 (01:55 +0300)] 
[3.13] gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse (GH-124631) (GH-124760)

Check for ambiguous options if the option is consumed, not when it is
parsed.
(cherry picked from commit 3f27153e077d7e9448e2f081275931968b40cc74)

13 months ago[3.13] gh-72795: Make positional arguments with nargs='*' or REMAINDER non-required...
Miss Islington (bot) [Mon, 7 Oct 2024 22:51:35 +0000 (00:51 +0200)] 
[3.13] gh-72795: Make positional arguments with nargs='*' or REMAINDER non-required (GH-124306) (#124421)

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>
13 months ago[3.13] gh-53780: Ignore the first "--" (double dash) between an option and command...
Miss Islington (bot) [Mon, 7 Oct 2024 22:51:07 +0000 (00:51 +0200)] 
[3.13] gh-53780: Ignore the first "--" (double dash) between an option and command in argparse (GH-124275) (GH-125073)

(cherry picked from commit c578271366176a1d1b0941897efefb6e4d6508b4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-124130: Increase test coverage for \b and \B in regular expressions (GH...
Miss Islington (bot) [Mon, 7 Oct 2024 21:58:17 +0000 (23:58 +0200)] 
[3.13] gh-124130: Increase test coverage for \b and \B in regular expressions (GH-124330) (GH-124413)

(cherry picked from commit b82f07653e1e15a48ebaf8de324f52559e470254)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-124182: Explain naming rules for struct sequence types (GH-124335) (#125057)
Miss Islington (bot) [Mon, 7 Oct 2024 21:47:30 +0000 (23:47 +0200)] 
[3.13] gh-124182: Explain naming rules for struct sequence types (GH-124335) (#125057)

gh-124182: Explain naming rules for struct sequence types (GH-124335)
(cherry picked from commit 3287c834e5370294e310450115290979aac06efa)

Co-authored-by: ffelixg <142172984+ffelixg@users.noreply.github.com>
13 months ago[3.13] gh-120378: Fix crash caused by integer overflow in `curses` (GH-124555) (...
Miss Islington (bot) [Mon, 7 Oct 2024 21:46:57 +0000 (23:46 +0200)] 
[3.13] gh-120378: Fix crash caused by integer overflow in `curses` (GH-124555) (#124905)

gh-120378: Fix crash caused by integer overflow in `curses` (GH-124555)

This is actually an upstream problem in curses, and has been reported
to them already:
https://lists.gnu.org/archive/html/bug-ncurses/2024-09/msg00101.html

This is a nice workaround in the meantime to prevent the segfault.

(cherry picked from commit c2ba931318280796a6dcc33d1a5c5c02ad4d035b)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
13 months ago[3.13] gh-116810: fix memory leak in ssl module (GH-123249) (#124800)
Miss Islington (bot) [Mon, 7 Oct 2024 21:46:29 +0000 (23:46 +0200)] 
[3.13] gh-116810: fix memory leak in ssl module (GH-123249) (#124800)

gh-116810: fix memory leak in ssl module (GH-123249)

Resolve a memory leak introduced in CPython 3.10's :mod:`ssl` when the :attr:`ssl.SSLSocket.session` property was accessed. Speeds up read and write access to said property by no longer unnecessarily cloning session objects via serialization.

(cherry picked from commit 7e7223e18f58ec48fb36a68fb75b5c5b7a45042a)

Co-authored-by: Jeffrey R. Van Voorst <jeff.vanvoorst@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Antoine Pitrou <antoine@python.org>
13 months ago[3.13] gh-124217, ipaddress: Add RFC 9637 reserved IPv6 block `3fff::/20` (GH-124240...
Miss Islington (bot) [Mon, 7 Oct 2024 21:45:59 +0000 (23:45 +0200)] 
[3.13] gh-124217, ipaddress: Add RFC 9637 reserved IPv6 block `3fff::/20` (GH-124240) (#124282)

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>
13 months ago[3.13] Support the "pager" binary in _pyrepl (GH-122878) (#124242)
Miss Islington (bot) [Mon, 7 Oct 2024 21:45:43 +0000 (23:45 +0200)] 
[3.13] Support the "pager" binary in _pyrepl (GH-122878) (#124242)

Support the "pager" binary in _pyrepl (GH-122878)

Debian (and derivatives) provide a /usr/bin/pager binary, managed by the
alternatives system, that always points to an available pager utility.
Allow _pyrepl to use it, to follow system policy.

This is a very trivial change, from a patch that Debian has been
carrying since 2.7 era. Seems appropriate to upstream.
https://bugs.debian.org/799555
(cherry picked from commit 426569eb8ca1edaa68026aa2bab6b8d1c9105f93)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
Co-authored-by: T. Wouters <thomas@python.org>
13 months ago[3.13] Fix typos (#123775) (#123866)
Victor Stinner [Mon, 7 Oct 2024 21:44:31 +0000 (23:44 +0200)] 
[3.13] Fix typos (#123775) (#123866)

Fix typos (#123775)

(cherry picked from commit 9017b95ff2dcff16bcb0b0a609ed2b0daa845943)

Co-authored-by: algonell <algonell@gmail.com>
13 months ago[3.13] gh-95468: Add more tests for "--" (double dash) in test_argparse (GH-124274...
Miss Islington (bot) [Mon, 7 Oct 2024 21:40:47 +0000 (23:40 +0200)] 
[3.13] gh-95468: Add more tests for "--" (double dash) in test_argparse (GH-124274) (GH-125068)

(cherry picked from commit baa3550bc3a119f41cc4eaed5373f9d695208e8e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-124842: Fix test.support.import_helper.make_legacy_pyc() (GH-124843) (GH...
Miss Islington (bot) [Mon, 7 Oct 2024 21:29:54 +0000 (23:29 +0200)] 
[3.13] gh-124842: Fix test.support.import_helper.make_legacy_pyc() (GH-124843) (GH-124853)

For source file "path/to/file.py" it created file with incorrect path
"/absolute/path/to/path/to/file.pyc" instead of "path/to/file.pyc".
(cherry picked from commit 60ff67d010078eca15a74b1429caf779ac4f9c74)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-61181: Fix support of choices with string value in argparse (GH-124578...
Miss Islington (bot) [Mon, 7 Oct 2024 21:28:17 +0000 (23:28 +0200)] 
[3.13] gh-61181: Fix support of choices with string value in argparse (GH-124578) (GH-124755)

Substrings of the specified string no longer considered valid values.
(cherry picked from commit f1a2417b9e2993e584610851ac004c8b0599b323)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-116850: Fix argparse for namespaces with not directly writable dict (GH...
Miss Islington (bot) [Mon, 7 Oct 2024 21:27:11 +0000 (23:27 +0200)] 
[3.13] gh-116850: Fix argparse for namespaces with not directly writable dict (GH-124667) (GH-124757)

It now always uses setattr() instead of setting the dict item to modify
the namespace. This allows to use a class as a namespace.
(cherry picked from commit 95e92ef6c74e973ea13d15180190d0fa2af82fbf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-124345: Support abbreviated single-dash long options with = in argparse...
Miss Islington (bot) [Mon, 7 Oct 2024 21:26:37 +0000 (23:26 +0200)] 
[3.13] gh-124345: Support abbreviated single-dash long options with = in argparse (GH-124428) (GH-124753)

(cherry picked from commit 61180446eee2aef07b042c7e8892c45afabd1499)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-80259: Fix conflict between type and default=SUPPRESS in argparse (GH-12451...
Miss Islington (bot) [Mon, 7 Oct 2024 21:26:00 +0000 (23:26 +0200)] 
[3.13] gh-80259: Fix conflict between type and default=SUPPRESS in argparse (GH-124519) (GH-124751)

type() no longer called for SUPPRESS.

This only affects positional arguments with nargs='?'.
(cherry picked from commit 9bcadf589ab6f7b9d309290de7a80156b6905d35)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-104860: Fix allow_abbrev=False for single-dash long options (GH-124340...
Miss Islington (bot) [Mon, 7 Oct 2024 21:25:13 +0000 (23:25 +0200)] 
[3.13] gh-104860: Fix allow_abbrev=False for single-dash long options (GH-124340) (GH-124749)

(cherry picked from commit 49e105f9488de18d3d92948232fcbd956cbe0c6e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-59317: Improve parsing optional positional arguments in argparse (GH-124303...
Miss Islington (bot) [Mon, 7 Oct 2024 21:24:31 +0000 (23:24 +0200)] 
[3.13] gh-59317: Improve parsing optional positional arguments in argparse (GH-124303) (GH-124436)

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>
13 months ago[3.13] gh-124188: Fix PyErr_ProgramTextObject() (GH-124189) (GH-124423)
Miss Islington (bot) [Mon, 7 Oct 2024 21:23:49 +0000 (23:23 +0200)] 
[3.13] gh-124188: Fix PyErr_ProgramTextObject() (GH-124189) (GH-124423)

* 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)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-63143: Fix parsing mutually exclusive arguments in argparse (GH-124307...
Miss Islington (bot) [Mon, 7 Oct 2024 21:20:31 +0000 (23:20 +0200)] 
[3.13] gh-63143: Fix parsing mutually exclusive arguments in argparse (GH-124307) (GH-124418)

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>
13 months ago[3.13] gh-81691: Fix handling of multiple "--" (double dashes) in argparse (GH-124233...
Miss Islington (bot) [Mon, 7 Oct 2024 21:12:28 +0000 (23:12 +0200)] 
[3.13] gh-81691: Fix handling of multiple "--" (double dashes) in argparse (GH-124233) (GH-124266)

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>
13 months ago[3.13] gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975...
Miss Islington (bot) [Mon, 7 Oct 2024 19:25:26 +0000 (21:25 +0200)] 
[3.13] gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975) (#125061)

gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975)

Increase currently inadequate vertical spacing for the IDLE browsers (path,
module, and stack) on high-resolution monitors.
---------

(cherry picked from commit c5df1cb7bde7e86f046196b0e34a0b90f8fc11de)

Co-authored-by: Zhikang Yan <2951256653@qq.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
13 months ago[3.13] gh-112804: Clamping timeout value for _PySemaphore_PlatformWait (gh-124914...
Miss Islington (bot) [Mon, 7 Oct 2024 16:53:32 +0000 (18:53 +0200)] 
[3.13] gh-112804: Clamping timeout value for _PySemaphore_PlatformWait (gh-124914) (gh-124991)

gh-112804: Clamping timeout value for _PySemaphore_PlatformWait (gh-124914)

* gh-112804: Clamping timeout value for _PySemaphore_PlatformWait

* Address code review

* nit
(cherry picked from commit a5fc50994a3fae46d0c3d496c4e1d5e00548a1b8)

Co-authored-by: Donghee Na <donghee.na@python.org>
13 months agoPost 3.13.0
Thomas Wouters [Mon, 7 Oct 2024 15:22:36 +0000 (17:22 +0200)] 
Post 3.13.0

13 months agoPython 3.13.0 v3.13.0
Thomas Wouters [Mon, 7 Oct 2024 04:58:58 +0000 (06:58 +0200)] 
Python 3.13.0

13 months ago[3.13] GH-109975: Announce final release in What's New in Python 3.13 (GH-125007...
Miss Islington (bot) [Mon, 7 Oct 2024 04:48:13 +0000 (06:48 +0200)] 
[3.13] GH-109975: Announce final release in What's New in Python 3.13 (GH-125007) (#125033)

Prepare What's New in Python 3.13 for final release
(cherry picked from commit 31516c98dd7097047ba10da8dcf728c3d580f3d6)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026) (#125032)
Miss Islington (bot) [Mon, 7 Oct 2024 04:43:16 +0000 (06:43 +0200)] 
[3.13] gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026) (#125032)

gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026)
(cherry picked from commit 1e098dc766ba4f29a63da4f188fb214af7623365)

Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
13 months ago[3.13] Doc: Simplify the definition of 'soft deprecated' (GH-124988) (#125029)
Miss Islington (bot) [Sun, 6 Oct 2024 23:04:43 +0000 (01:04 +0200)] 
[3.13] Doc: Simplify the definition of 'soft deprecated' (GH-124988) (#125029)

Doc: Simplify the definition of 'soft deprecated' (GH-124988)
(cherry picked from commit feca4cf64e9742b9c002d5533ced47e68b34a880)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
13 months ago[3.13] gh-125008: Fix `tokenize.untokenize` roundtrip for `\n{{` (GH-125013) (#125020)
Miss Islington (bot) [Sun, 6 Oct 2024 13:39:47 +0000 (15:39 +0200)] 
[3.13] gh-125008: Fix `tokenize.untokenize` roundtrip for `\n{{` (GH-125013) (#125020)

13 months ago[3.13] gh-124871: fix 'visited' tracking in compiler's reachability analysis (GH...
Miss Islington (bot) [Fri, 4 Oct 2024 22:34:20 +0000 (00:34 +0200)] 
[3.13] gh-124871: fix 'visited' tracking in compiler's reachability analysis (GH-124952) (#124977)

gh-124871: fix 'visited' tracking in compiler's reachability analysis (GH-124952)
(cherry picked from commit f474391b26aa9208b44ca879f8635409d322f738)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
13 months ago[3.13] gh-109975: Suggest ``pynntp`` instead of ``nntplib`` (GH-124830) (#124966)
Miss Islington (bot) [Fri, 4 Oct 2024 22:31:51 +0000 (00:31 +0200)] 
[3.13] gh-109975: Suggest ``pynntp`` instead of ``nntplib`` (GH-124830) (#124966)

gh-109975: Suggest ``pynntp`` instead of ``nntplib`` (GH-124830)

The ``nntplib`` library has been deleted from PyPI by its author.
(cherry picked from commit ac9648243dc0f5cb34c93621e507a98cf90550ea)

Co-authored-by: Christian Clauss <cclauss@me.com>
13 months ago[3.13] gh-121982: ``csv``: Add a test case for invalid ``quoting`` constant. (GH...
Miss Islington (bot) [Thu, 3 Oct 2024 16:27:28 +0000 (18:27 +0200)] 
[3.13] gh-121982: ``csv``: Add a test case for invalid ``quoting`` constant. (GH-121983) (#124926)

gh-121982: ``csv``: Add a test case for invalid ``quoting`` constant. (GH-121983)

Test invalid quoting constant

(cherry picked from commit 656b7a3c83c79f99beac950b59c47575562ea729)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
13 months ago[3.13] gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly...
Miss Islington (bot) [Thu, 3 Oct 2024 16:26:15 +0000 (18:26 +0200)] 
[3.13] gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly (GH-124845) (#124884)

gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly (GH-124845)

Previously when executing ``test_functattrs.test___builtins__`` directly, it failed because the fact, that ``__builtins__`` is refers to the built-in module ``builtins`` while it's expects a ``__builtins__.__dict__``. But when this test is being run from another module, then ``__builtins__`` is refers to ``builtins.__dict__``. Now this part of the behaviour is covered.
---------

(cherry picked from commit 8fbf10d6cfd9c69ffcc1f80fa0c5f33785197af7)

Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
13 months ago[3.13] Highlight `datetime.timedelta.seconds` vs `.total_seconds()` in docs. (GH...
Miss Islington (bot) [Thu, 3 Oct 2024 16:25:12 +0000 (18:25 +0200)] 
[3.13] Highlight `datetime.timedelta.seconds` vs `.total_seconds()` in docs. (GH-124811) (#124862)

Highlight `datetime.timedelta.seconds` vs `.total_seconds()` in docs. (GH-124811)

Thanks to the reviewers for suggesting the use of a "caution" section instead of "warning" or "note".
(cherry picked from commit d150e4abcfc13770c2d239878ed337fb53e51de5)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
13 months ago[3.13] gh-124370: Add "howto" for free-threaded Python (GH-124371) (#124860)
Miss Islington (bot) [Thu, 3 Oct 2024 16:24:42 +0000 (18:24 +0200)] 
[3.13] gh-124370: Add "howto" for free-threaded Python (GH-124371) (#124860)

gh-124370: Add "howto" for free-threaded Python (GH-124371)
(cherry picked from commit 68e384c2179fba41bc3be469e6ef34927a37f4a5)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: mpage <mpage@cs.stanford.edu>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
13 months ago[3.13] GH-109975: Copyedit 3.13 What's New: Link to installing free-threaded binaries...
Miss Islington (bot) [Thu, 3 Oct 2024 16:21:38 +0000 (18:21 +0200)] 
[3.13] GH-109975: Copyedit 3.13 What's New: Link to installing free-threaded binaries on macOS (GH-124831) (#124833)

GH-109975: Copyedit 3.13 What's New: Link to installing free-threaded binaries on macOS (GH-124831)
(cherry picked from commit 4129a74a3772a2fa75a3b8f642f6b4cf18520e0e)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] GH-109975: Copyedit 3.13 What's New: Note delayed expected release date for...
Miss Islington (bot) [Thu, 3 Oct 2024 16:20:28 +0000 (18:20 +0200)] 
[3.13] GH-109975: Copyedit 3.13 What's New: Note delayed expected release date for Python 3.13.0 (GH-124827) (#124828)

GH-109975: Copyedit 3.13 What's New: Note delayed expected release date for Python 3.13.0 (GH-124827)

Note delayed expected release date of 3.13.0
(cherry picked from commit 882369026481f904520784ebbbef9897059dc6f6)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] Doc: Fix archive filenames for standard builds (GH-124826) (#124836)
Miss Islington (bot) [Thu, 3 Oct 2024 16:19:14 +0000 (18:19 +0200)] 
[3.13] Doc: Fix archive filenames for standard builds (GH-124826) (#124836)

Doc: Fix archive filenames for standard builds (GH-124826)
(cherry picked from commit 91e64be731fe42e6b252b95d79d900251388bfc6)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh...
Miss Islington (bot) [Thu, 3 Oct 2024 15:54:56 +0000 (17:54 +0200)] 
[3.13] gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920) (#124930)

gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920)
(cherry picked from commit 9eeb21bf761070649bf8d78976a62dabb6d67a99)

Co-authored-by: Donghee Na <donghee.na@python.org>
13 months agoPost 3.13.0rc3
Thomas Wouters [Tue, 1 Oct 2024 14:15:44 +0000 (16:15 +0200)] 
Post 3.13.0rc3

13 months agoPython 3.13.0rc3 v3.13.0rc3
Thomas Wouters [Tue, 1 Oct 2024 01:59:28 +0000 (03:59 +0200)] 
Python 3.13.0rc3

13 months ago[3.13] gh-124442: make `__static_attributes__` deterministic by sorting (GH-124492...
Jelle Zijlstra [Tue, 1 Oct 2024 01:53:17 +0000 (18:53 -0700)] 
[3.13] gh-124442: make `__static_attributes__` deterministic by sorting (GH-124492) (#124738)

* [3.13] gh-124442: make `__static_attributes__` deterministic by sorting (GH-124492)
(cherry picked from commit 04c837d9d8a474777ef9c1412fbba14f0682366c)

Co-authored-by: Kira <kp2pml30@gmail.com>
Signed-off-by: kp2pml30 <kp2pml30@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] gh-124785: Revert "gh-116510: Fix crash due to shared immortal interned string...
Miss Islington (bot) [Tue, 1 Oct 2024 01:38:26 +0000 (03:38 +0200)] 
[3.13] gh-124785: Revert "gh-116510: Fix crash due to shared immortal interned strings (gh-124646)" (gh-124807) (#124812)

gh-124785: Revert "gh-116510: Fix crash due to shared immortal interned strings (gh-124646)" (gh-124807)

Revert "gh-116510: Fix crash due to shared immortal interned strings. (gh-124646)"

This reverts commit 98b2ed7e239c807f379cd2bf864f372d79064aac.
(cherry picked from commit 7bdfabe2d1ec353ecdc75a5aec41cce83e572391)

Co-authored-by: T. Wouters <thomas@python.org>
13 months ago[3.13] GH-124567: Revert the Incremental GC in 3.13 (#124770)
T. Wouters [Mon, 30 Sep 2024 21:27:29 +0000 (14:27 -0700)] 
[3.13] GH-124567: Revert the Incremental GC in 3.13 (#124770)

Revert the incremental GC in 3.13, since it's not clear that without further turning, the benefits outweigh the costs.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] Doc: Run HTML and non-HTML daily builds separately (GH-124493) (#124790)
Miss Islington (bot) [Mon, 30 Sep 2024 20:59:53 +0000 (22:59 +0200)] 
[3.13] Doc: Run HTML and non-HTML daily builds separately (GH-124493) (#124790)

Doc: Run HTML and non-HTML daily builds separately (GH-124493)
(cherry picked from commit cce1125574f7b74343afda4bd0030706f67e13df)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] gh-124613, regrtest: Detect JIT in build info (GH-124793) (#124797)
Miss Islington (bot) [Mon, 30 Sep 2024 20:52:59 +0000 (22:52 +0200)] 
[3.13] gh-124613, regrtest: Detect JIT in build info (GH-124793) (#124797)

gh-124613, regrtest: Detect JIT in build info (GH-124793)
(cherry picked from commit e44eebfc1eccdaaebc219accbfc705c9a9de068d)

Co-authored-by: Victor Stinner <vstinner@python.org>
13 months ago[3.13] gh-124642: Dictionaries aren't marking objects as weakref'd (GH-124643) (...
Miss Islington (bot) [Mon, 30 Sep 2024 20:51:24 +0000 (22:51 +0200)] 
[3.13] gh-124642: Dictionaries aren't marking objects as weakref'd (GH-124643) (#124798)

gh-124642: Dictionaries aren't marking objects as weakref'd (GH-124643)

Dictionaries aren't marking objects as weakref'd
(cherry picked from commit 077e7ef6a0abbf9e04b9aa11b4f621031004c31f)

Co-authored-by: Dino Viehland <dinoviehland@meta.com>
13 months ago[3.13] Doc: Fix default ``latex_elements['papersize']`` (GH-124525) (#124725)
Miss Islington (bot) [Mon, 30 Sep 2024 04:23:06 +0000 (06:23 +0200)] 
[3.13] Doc: Fix default ``latex_elements['papersize']`` (GH-124525) (#124725)

Doc: Fix default ``latex_elements['papersize']`` (GH-124525)

https://www.sphinx-doc.org/en/master/latex.htmlGH-the-latex-elements-configuration-setting

It should be 'letterpaper' or 'a4paper' not 'letter' or 'a4'
(not to be confused with PAPER env variable).
(cherry picked from commit fae5058ec13aa3b4f1acc549fadfbbbc2628f1e9)

Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com>
13 months ago[3.13] gh-123811: test that round() can return signed zero (GH-123829) (#123938)
Miss Islington (bot) [Mon, 30 Sep 2024 04:22:13 +0000 (06:22 +0200)] 
[3.13] gh-123811: test that round() can return signed zero (GH-123829) (#123938)

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>
13 months ago[3.13] gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in...
Serhiy Storchaka [Mon, 30 Sep 2024 04:21:40 +0000 (07:21 +0300)] 
[3.13] gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in classes (GH-123613) (#124735)

* Setting the __module__ attribute for a class now removes the
  __firstlineno__ item from the type's dict.
* The _collections_abc and _pydecimal modules now completely replace the
  collections.abc and decimal modules after importing them. This
  allows to get the source of classes and functions defined in these
  modules.
* inspect.findsource() now checks whether the first line number for a
  class is out of bound.
(cherry picked from commit 69a4063ca516360b5eb96f5432ad9f9dfc32a72e)

13 months ago[3.13] gh-124722: Fix leak in `test_detach_materialized_dict_no_memory` (GH-124769...
Miss Islington (bot) [Mon, 30 Sep 2024 04:18:24 +0000 (06:18 +0200)] 
[3.13] gh-124722: Fix leak in `test_detach_materialized_dict_no_memory` (GH-124769) (#124777)

gh-124722: Fix leak in `test_detach_materialized_dict_no_memory` (GH-124769)
(cherry picked from commit 6f4d64b048133c60d40705fb5ef776f78c7dd710)

Co-authored-by: sobolevn <mail@sobolevn.me>
13 months ago[3.13] gh-123826: Fix unused function warnings in mimalloc on NetBSD (GH-123827)...
Miss Islington (bot) [Mon, 30 Sep 2024 01:58:09 +0000 (03:58 +0200)] 
[3.13] gh-123826: Fix unused function warnings in mimalloc on NetBSD (GH-123827) (#123875)

gh-123826: Fix unused function warnings in mimalloc on NetBSD (GH-123827)
(cherry picked from commit 4a6b1f179667e2a8c6131718eb78a15f726e047b)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
13 months ago[3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase...
Sergey B Kirpichev [Mon, 30 Sep 2024 01:27:23 +0000 (04:27 +0300)] 
[3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) (#123840)

* [3.13] 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>
* +1

13 months ago[3.13] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824...
Miss Islington (bot) [Mon, 30 Sep 2024 01:26:50 +0000 (03:26 +0200)] 
[3.13] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824) (#123864)

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>
13 months ago[3.13] gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different...
Miss Islington (bot) [Mon, 30 Sep 2024 01:25:09 +0000 (03:25 +0200)] 
[3.13] gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different directories (GH-123918) (#123921)

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>
13 months ago[3.13] gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (#123896)
Miss Islington (bot) [Mon, 30 Sep 2024 01:24:55 +0000 (03:24 +0200)] 
[3.13] gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (#123896)

gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893)
(cherry picked from commit fb1b51a58df4315f7ef3171a5abeb74f132b0971)

Co-authored-by: Victor Stinner <vstinner@python.org>
13 months ago[3.13] gh-123881: Add additional test coverage for PEP 695 edge cases (GH-123886...
Miss Islington (bot) [Mon, 30 Sep 2024 01:24:40 +0000 (03:24 +0200)] 
[3.13] gh-123881: Add additional test coverage for PEP 695 edge cases (GH-123886) (#123890)

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>
13 months ago[3.13] gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH...
Miss Islington (bot) [Mon, 30 Sep 2024 01:23:42 +0000 (03:23 +0200)] 
[3.13] gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898) (#123936)

gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898)

Now a memoryview object can only be cleared if there are no buffers
that refer it.
(cherry picked from commit a1dbf2ea69acc6ccee6292709af1dadd55c068be)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-123919: Fix null handling in `_freeze_module.c` (GH-123920) (#123948)
Miss Islington (bot) [Mon, 30 Sep 2024 01:22:15 +0000 (03:22 +0200)] 
[3.13] gh-123919: Fix null handling in `_freeze_module.c` (GH-123920) (#123948)

gh-123919: Fix null handling in `_freeze_module.c` (GH-123920)
(cherry picked from commit c8d1dbef5b770b647aa7ff45fd5b269bc7629d0b)

Co-authored-by: sobolevn <mail@sobolevn.me>
13 months ago[3.13] gh-123942: add missing test for docstring-handling code in ast_opt.c (GH-12394...
Miss Islington (bot) [Mon, 30 Sep 2024 01:21:57 +0000 (03:21 +0200)] 
[3.13] gh-123942: add missing test for docstring-handling code in ast_opt.c (GH-123943) (#123955)

gh-123942: add missing test for docstring-handling code in ast_opt.c (GH-123943)
(cherry picked from commit 6e23c89fcdd02b08fa6e9fa70d6e90763ddfc327)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
13 months ago[3.13] gh-121735: Fix module-adjacent references in zip files (GH-123037) (#123986)
Miss Islington (bot) [Mon, 30 Sep 2024 01:17:16 +0000 (03:17 +0200)] 
[3.13] gh-121735: Fix module-adjacent references in zip files (GH-123037) (#123986)

* gh-121735: Fix module-adjacent references in zip files (GH-123037)

* gh-116608: Apply style and compatibility changes from importlib_metadata.

* gh-121735: Ensure module-adjacent resources are loadable from a zipfile.

* gh-121735: Allow all modules to be processed by the ZipReader.

* Add blurb

* Remove update-zips script, unneeded.

* Remove unnecessary references to removed static fixtures.

* Remove zipdata fixtures, unused.
(cherry picked from commit ba687d9481c04fd160795ff8d8568f5c9f877128)

* gh-123994: Generate utf-16 file using little endian and BOM. (#123995)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
13 months ago[3.13] gh-116622: Mock the passage of time in Android logcat rate limit tests (GH...
Miss Islington (bot) [Mon, 30 Sep 2024 01:15:16 +0000 (03:15 +0200)] 
[3.13] gh-116622: Mock the passage of time in Android logcat rate limit tests (GH-124015) (#124035)

gh-116622: Mock the passage of time in Android logcat rate limit tests (GH-124015)

Mock the passage of time in Android logcat rate limit tests

(cherry picked from commit f5548834256414c6a721e9ebfa511e043e73ef03)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
13 months ago[3.13] gh-123836: Check zero signs in math_testcases.txt (GH-123854) (#124161)
Miss Islington (bot) [Mon, 30 Sep 2024 01:14:44 +0000 (03:14 +0200)] 
[3.13] gh-123836: Check zero signs in math_testcases.txt (GH-123854) (#124161)

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>
13 months ago[3.13] gh-123836: workaround fmod(x, y) bug on Windows (GH-124171) (#124187)
Sergey B Kirpichev [Mon, 30 Sep 2024 01:14:02 +0000 (04:14 +0300)] 
[3.13] gh-123836: workaround fmod(x, y) bug on Windows (GH-124171) (#124187)

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)

13 months ago[3.13] gh-122145: Handle an empty AST body when reporting tracebacks (GH-122161)...
Miss Islington (bot) [Mon, 30 Sep 2024 01:13:36 +0000 (03:13 +0200)] 
[3.13] gh-122145: Handle an empty AST body when reporting tracebacks (GH-122161) (#124214)

gh-122145: Handle an empty AST body when reporting tracebacks (GH-122161)
(cherry picked from commit 5cd50cb6eb28e525f0c838e049e900ea982a5a23)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
13 months ago[3.13] gh-124064: Fix -Wconversion warnings in Parser/string_parser.c (GH-124204...
Miss Islington (bot) [Mon, 30 Sep 2024 01:13:13 +0000 (03:13 +0200)] 
[3.13] gh-124064: Fix -Wconversion warnings in Parser/string_parser.c (GH-124204) (#124216)

gh-124064: Fix -Wconversion warnings in Parser/string_parser.c (GH-124204)

Fix integer overflow check in decode_unicode_with_escapes(): use
PY_SSIZE_T_MAX instead of SIZE_MAX.
(cherry picked from commit f9fa6ba4f8d90ae12bc1f6a792d66903bb169ba8)

Co-authored-by: Victor Stinner <vstinner@python.org>
13 months ago[3.13] gh-124212: Fix undefined variable in error message in venv (GH-124211) (#124226)
Miss Islington (bot) [Mon, 30 Sep 2024 01:11:22 +0000 (03:11 +0200)] 
[3.13] gh-124212: Fix undefined variable in error message in venv (GH-124211) (#124226)

gh-124212: Fix undefined variable in error message in venv (GH-124211)
(cherry picked from commit ea7fe1fe2e162f2375562467ad834c6224a62daf)

Co-authored-by: Jacek <jacek.duszenko@gmail.com>
13 months ago[3.13] gh-123934: Fix `MagicMock` not to reset magic method return values (GH-124038...
Miss Islington (bot) [Mon, 30 Sep 2024 01:11:03 +0000 (03:11 +0200)] 
[3.13] gh-123934: Fix `MagicMock` not to reset magic method return values (GH-124038) (#124231)

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>
13 months ago[3.13] gh-124245: Fix UserWarning in test_argparse (GH-124246) (#124255)
Miss Islington (bot) [Mon, 30 Sep 2024 01:07:04 +0000 (03:07 +0200)] 
[3.13] gh-124245: Fix UserWarning in test_argparse (GH-124246) (#124255)

gh-124245: Fix UserWarning in test_argparse (GH-124246)
(cherry picked from commit 992e8f6102e317b4967a762fbefea82f9fcf9dfb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 months ago[3.13] gh-123797: Check for runtime availability of `ptsname_r` on macos (GH-123806...
Miss Islington (bot) [Mon, 30 Sep 2024 01:06:53 +0000 (03:06 +0200)] 
[3.13] gh-123797: Check for runtime availability of `ptsname_r` on macos (GH-123806) (#124270)

gh-123797: Check for runtime availability of `ptsname_r` on macos (GH-123806)
(cherry picked from commit 3e36e5aef18e326f5d1081d73ee8d8fefa1d82f8)

Co-authored-by: sobolevn <mail@sobolevn.me>
13 months ago[3.13] gh-124248: Fix crash in struct when processing 0p fields (GH-124251) (#124277)
Miss Islington (bot) [Mon, 30 Sep 2024 01:06:32 +0000 (03:06 +0200)] 
[3.13] gh-124248: Fix crash in struct when processing 0p fields (GH-124251) (#124277)

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>
13 months ago[3.13] gh-124254: Detect freethreaded MSI component when doing an upgrade on Windows...
Miss Islington (bot) [Mon, 30 Sep 2024 01:06:11 +0000 (03:06 +0200)] 
[3.13] gh-124254: Detect freethreaded MSI component when doing an upgrade on Windows (GH-124279) (#124347)

gh-124254: Detect freethreaded MSI component when doing an upgrade on Windows (GH-124279)
(cherry picked from commit df7228ce140ecb005d44a0c171ba4d098b3fa67c)

Co-authored-by: Steve Dower <steve.dower@python.org>
13 months ago[3.13] GH-87041: Fix incorrect indentation in argparse help (GH-124230) (#124373)
Miss Islington (bot) [Mon, 30 Sep 2024 01:05:51 +0000 (03:05 +0200)] 
[3.13] GH-87041: Fix incorrect indentation in argparse help (GH-124230) (#124373)

GH-87041: Fix incorrect indentation in argparse help (GH-124230)

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>
13 months ago[3.13] Bump Ruff to 0.6.7 (#124384) (#124389)
Alex Waygood [Mon, 30 Sep 2024 01:04:56 +0000 (02:04 +0100)] 
[3.13] Bump Ruff to 0.6.7 (#124384) (#124389)

Bump Ruff to 0.6.7 (#124384)

13 months ago[3.13] bpo-44864: Do not translate user-provided strings in ArgumentParser.add_subpar...
Miss Islington (bot) [Mon, 30 Sep 2024 01:03:29 +0000 (03:03 +0200)] 
[3.13] bpo-44864: Do not translate user-provided strings in ArgumentParser.add_subparsers() (GH-27667) (#124506)

bpo-44864: Do not translate user-provided strings in ArgumentParser.add_subparsers() (GH-27667)

Call _() on literal strings only.
(cherry picked from commit d3c76dff444046504754a437dceebc9a9c87ef18)

Co-authored-by: Jérémie Detrey <jdetrey@users.noreply.github.com>
13 months ago[3.13] gh-116622: Make test_unzip_zipfile recognize Android error message format...
Miss Islington (bot) [Mon, 30 Sep 2024 01:03:12 +0000 (03:03 +0200)] 
[3.13] gh-116622: Make test_unzip_zipfile recognize Android error message format (GH-124462) (#124516)

gh-116622: Make test_unzip_zipfile recognize Android error message format (GH-124462)

Make test_unzip_zipfile recognize Android error message format
(cherry picked from commit 461c12b43870d51ea29eae7b0969b20565d50eb6)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
13 months ago[3.13] gh-124513: Check args in framelocalsproxy_new() (GH-124515) (#124539)
Miss Islington (bot) [Mon, 30 Sep 2024 01:03:00 +0000 (03:03 +0200)] 
[3.13] gh-124513: Check args in framelocalsproxy_new() (GH-124515) (#124539)

gh-124513: Check args in framelocalsproxy_new() (GH-124515)

Fix a crash in FrameLocalsProxy constructor: check the number of
arguments.
(cherry picked from commit d6954b6421aa34afd280df9c44ded21a2348a6ea)

Co-authored-by: Victor Stinner <vstinner@python.org>
13 months ago[3.13] gh-124378: Update test_ttk for Tcl/Tk 8.6.15 (GH-124542) (#124544)
Miss Islington (bot) [Mon, 30 Sep 2024 01:02:42 +0000 (03:02 +0200)] 
[3.13] gh-124378: Update test_ttk for Tcl/Tk 8.6.15 (GH-124542) (#124544)

gh-124378: Update test_ttk for Tcl/Tk 8.6.15 (GH-124542)
(cherry picked from commit fb6bd31cb74d2f7e7b525ee4fe9f45475fc94ce9)

Co-authored-by: Zachary Ware <zach@python.org>
Co-authored-by: Marc Culler <culler@users.noreply.github.com>
13 months ago[3.13] gh-124498: Fix `TypeAliasType` not to be generic, when `type_params=()` (GH...
Miss Islington (bot) [Mon, 30 Sep 2024 01:01:06 +0000 (03:01 +0200)] 
[3.13] gh-124498: Fix `TypeAliasType` not to be generic, when `type_params=()` (GH-124499) (#124603)

gh-124498: Fix `TypeAliasType` not to be generic, when `type_params=()` (GH-124499)
(cherry picked from commit abe5f799e6ce1d177f79554f1b84d348b6141045)

Co-authored-by: sobolevn <mail@sobolevn.me>
13 months ago[3.13] gh-89683: add tests for `deepcopy` on frozen dataclasses (GH-123098) (#124678)
Bénédikt Tran [Mon, 30 Sep 2024 01:00:42 +0000 (03:00 +0200)] 
[3.13] gh-89683: add tests for `deepcopy` on frozen dataclasses (GH-123098) (#124678)

* gh-89683: add tests for `deepcopy` on frozen dataclasses (gh-123098)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>