]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
17 months ago[3.12] gh-119118: Fix performance regression in tokenize module (GH-119615) (#119683)
Miss Islington (bot) [Tue, 28 May 2024 20:49:02 +0000 (22:49 +0200)] 
[3.12] gh-119118: Fix performance regression in tokenize module (GH-119615) (#119683)

- Cache line object to avoid creating a Unicode object
  for all of the tokens in the same line.
- Speed up byte offset to column offset conversion by using the
  smallest buffer possible to measure the difference.

(cherry picked from commit d87b0151062e36e67f9e42e1595fba5bf23a485c)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
17 months ago[3.12] gh-119011: `type.__type_params__` now return an empty tuple (GH-119296) (...
Jelle Zijlstra [Tue, 28 May 2024 19:54:47 +0000 (12:54 -0700)] 
[3.12] gh-119011: `type.__type_params__` now return an empty tuple (GH-119296) (#119681)

(cherry picked from commit 6b240c2308a044e38623900ccb8fa58c3549d4ae)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.12] gh-119581: Add a test of InitVar with name shadowing (GH-119582) (#119673)
Miss Islington (bot) [Tue, 28 May 2024 17:42:01 +0000 (19:42 +0200)] 
[3.12] gh-119581: Add a test of InitVar with name shadowing (GH-119582) (#119673)

gh-119581: Add a test of InitVar with name shadowing (GH-119582)
(cherry picked from commit 6ec371223dff4da7719039e271f35a16a5b861c6)

Co-authored-by: Steven Troxler <steven.troxler@gmail.com>
17 months ago[3.12] Clarify base64.a85encode docs: *wrapcols* doesn't count the newline (GH-119409...
Miss Islington (bot) [Tue, 28 May 2024 14:55:43 +0000 (16:55 +0200)] 
[3.12] Clarify base64.a85encode docs: *wrapcols* doesn't count the newline (GH-119409) (GH-119482)

Clarify base64.a85encode docs: *wrapcols* doesn't count the newline (GH-119409)
(cherry picked from commit ffa24aab107b5bc3c6ad31a6a245c226bf24b208)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
17 months ago[3.12] [doc] Clarify the nature of the root logger in the `logging` documentation...
Miss Islington (bot) [Tue, 28 May 2024 14:04:19 +0000 (16:04 +0200)] 
[3.12] [doc] Clarify the nature of the root logger in the `logging` documentation (GH-119440) (GH-119652)

(cherry picked from commit b407ad38fb93585332c370b8fa56905fb238cdfd)

17 months ago[3.12] Re-order imports to align with zipp 3.18.2 (GH-119587) (#119590)
Miss Islington (bot) [Tue, 28 May 2024 12:49:38 +0000 (14:49 +0200)] 
[3.12] Re-order imports to align with zipp 3.18.2 (GH-119587) (#119590)

Re-order imports to align with zipp 3.18.2 (GH-119587)
(cherry picked from commit 5482a939ac18f4cd861d212c759960af8fa2b19d)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
17 months agogh-118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule...
Nice Zombies [Tue, 28 May 2024 10:13:01 +0000 (12:13 +0200)] 
gh-118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule (GH-119608)

17 months ago[3.12] gh-116860: Remove outdated `test_parserhack` from `test_future` (GH-116861...
Miss Islington (bot) [Tue, 28 May 2024 09:50:26 +0000 (11:50 +0200)] 
[3.12] gh-116860: Remove outdated `test_parserhack` from `test_future` (GH-116861) (#119648)

gh-116860: Remove outdated `test_parserhack` from `test_future` (GH-116861)
(cherry picked from commit 669175bf8edc2c02d48401bac0e4c7d99a33f15b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.12] Misc cleanups and wording improvements for the itertools docs (gh-119631)
Raymond Hettinger [Mon, 27 May 2024 18:43:08 +0000 (13:43 -0500)] 
[3.12] Misc cleanups and wording improvements for the itertools docs (gh-119631)

17 months ago[3.12] gh-119580: Improve version added section for convenience variable (GH-119583...
Miss Islington (bot) [Mon, 27 May 2024 18:04:01 +0000 (20:04 +0200)] 
[3.12] gh-119580: Improve version added section for convenience variable (GH-119583) (#119625)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
17 months ago[3.12] Docs: Only install sphinx-autobuild for `make htmllive` (GH-119607) (#119622)
Miss Islington (bot) [Mon, 27 May 2024 17:35:57 +0000 (19:35 +0200)] 
[3.12] Docs: Only install sphinx-autobuild for `make htmllive` (GH-119607) (#119622)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
17 months ago[3.12] gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475...
Miss Islington (bot) [Mon, 27 May 2024 12:22:23 +0000 (14:22 +0200)] 
[3.12] gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475) (#119603)

gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475)
(cherry picked from commit 3b26cd8ca0e6c65e4b61effea9aa44d06e926797)

Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
17 months ago[3.12] Fix typos in HISTORY documentation (GH-119453) (#119598)
Miss Islington (bot) [Mon, 27 May 2024 08:04:05 +0000 (10:04 +0200)] 
[3.12] Fix typos in HISTORY documentation (GH-119453) (#119598)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
17 months ago[3.12] docs: fix a few typos identified by codespell (GH-119516) (#119571)
Hugo van Kemenade [Sun, 26 May 2024 08:15:57 +0000 (11:15 +0300)] 
[3.12] docs: fix a few typos identified by codespell (GH-119516) (#119571)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
17 months ago[3.12] FAQ: Add reference to Python version numbering scheme (GH-119225) (#119545)
Miss Islington (bot) [Sat, 25 May 2024 14:19:35 +0000 (16:19 +0200)] 
[3.12] FAQ: Add reference to Python version numbering scheme (GH-119225) (#119545)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
17 months ago[3.12] Misc improvements to the docs for itertools (gh-119532)
Raymond Hettinger [Fri, 24 May 2024 22:35:38 +0000 (17:35 -0500)] 
[3.12] Misc improvements to the docs for itertools (gh-119532)

17 months ago[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-119520) (#119523)
Miss Islington (bot) [Fri, 24 May 2024 20:01:53 +0000 (22:01 +0200)] 
[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-119520) (#119523)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
17 months ago[3.12] GH-119496: accept UTF-8 BOM in .pth files (GH-119509)
Miss Islington (bot) [Fri, 24 May 2024 14:52:09 +0000 (16:52 +0200)] 
[3.12] GH-119496: accept UTF-8 BOM in .pth files (GH-119509)

`Out-File -Encoding utf8` and similar commands in Windows Powershell 5.1 emit
UTF-8 with a BOM marker, which the regular `utf-8` codec decodes incorrectly.

`utf-8-sig` accepts a BOM, but also works correctly without one.

This change also makes .pth files match the way Python source files are handled.

(cherry picked from commit bf5b6467f8cc06759f3396ab1a8ad64fe7d1db2e)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
17 months ago[3.12] gh-69214: Fix fcntl.ioctl() request type (#119498) (#119505)
Victor Stinner [Fri, 24 May 2024 12:53:41 +0000 (14:53 +0200)] 
[3.12] gh-69214: Fix fcntl.ioctl() request type (#119498) (#119505)

gh-69214: Fix fcntl.ioctl() request type (#119498)

Use an 'unsigned long' instead of an 'unsigned int' for the request
parameter of fcntl.ioctl() to support requests larger than UINT_MAX.

(cherry picked from commit 92fab3356f4c61d4c73606e4fae705c6d8f6213b)

17 months ago[3.12] gh-119317: findall instead of traverse for docutils nodes (GH-119319) (#119487)
Miss Islington (bot) [Fri, 24 May 2024 02:12:23 +0000 (04:12 +0200)] 
[3.12] gh-119317: findall instead of traverse for docutils nodes (GH-119319) (#119487)

gh-119317: findall instead of traverse for docutils nodes (GH-119319)
(cherry picked from commit 0867bce45768454ee31bee95ca33fdc2c9d8b0fa)

Co-authored-by: Carlos Meza <hire@carlosmeza.com>
17 months ago[3.12] [3.13] gh-119461: Fix ThreadedVSOCKSocketStreamTest (GH-119465) (GH-119479...
Miss Islington (bot) [Thu, 23 May 2024 23:23:55 +0000 (01:23 +0200)] 
[3.12] [3.13] gh-119461: Fix ThreadedVSOCKSocketStreamTest (GH-119465) (GH-119479) (#119484)

[3.13] gh-119461: Fix ThreadedVSOCKSocketStreamTest (GH-119465) (GH-119479)

gh-119461: Fix ThreadedVSOCKSocketStreamTest (GH-119465)

Fix ThreadedVSOCKSocketStreamTest: if get_cid() returns the host
address or the "any" address, use the local communication address
(loopback): VMADDR_CID_LOCAL.

On Linux 6.9, apparently, the /dev/vsock device is now available but
get_cid() returns VMADDR_CID_ANY (-1).

(cherry picked from commit c750061047ee520d8299334df4b112fd983d7e48)

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit e94dbe4ed83460f18bd72563c5f09f6cdc71f604)

Co-authored-by: Victor Stinner <vstinner@python.org>
17 months ago[3.12] gh-90562: Mention slots pitfall in dataclass docs (GH-107391) (#119351)
Miss Islington (bot) [Thu, 23 May 2024 06:16:23 +0000 (08:16 +0200)] 
[3.12] gh-90562: Mention slots pitfall in dataclass docs (GH-107391) (#119351)

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
17 months ago[3.12] gh-119213: Be More Careful About _PyArg_Parser.kwtuple Across Interpreters...
Eric Snow [Wed, 22 May 2024 22:26:58 +0000 (18:26 -0400)] 
[3.12] gh-119213: Be More Careful About _PyArg_Parser.kwtuple Across Interpreters (gh-119331) (gh-119425)

_PyArg_Parser holds static global data generated for modules by Argument Clinic.  The _PyArg_Parser.kwtuple field is a tuple object, even though it's stored within a static global.  In some cases the tuple is statically allocated and thus it's okay that it gets shared by multiple interpreters.  However, in other cases the tuple is set lazily, allocated from the heap using the active interprepreter at the point the tuple is needed.

This is a problem once that interpreter is destroyed since _PyArg_Parser.kwtuple becomes at dangling pointer, leading to crashes.  It isn't a problem if the tuple is allocated under the main interpreter, since its lifetime is bound to the lifetime of the runtime.  The solution here is to temporarily switch to the main interpreter.  The alternative would be to always statically allocate the tuple.

This change also fixes a bug where only the most recent parser was added to the global linked list.

(cherry picked from commit 81865002aee8eaaeb3c7e402f86183afa6de77bf)

17 months ago[3.12] gh-70795: Rework RLock documentation (GH-103853) (#119437)
Miss Islington (bot) [Wed, 22 May 2024 20:21:42 +0000 (22:21 +0200)] 
[3.12] gh-70795: Rework RLock documentation (GH-103853) (#119437)

gh-70795: Rework RLock documentation (GH-103853)

Attempted to simultaneously reduce verbosity, while more descriptively
describing behavior.

Fix links (RLock acquire/release previously linking to Lock
acquire/release, seems like bad copy pasta).

Add a seealso for with-locks.

Switch section to use bullet points.

---------

(cherry picked from commit 2fbea81d646688cf438be1dc0be82112a9ae4325)

Co-authored-by: uıɐɾ ʞ ʇɐɯɐs <_@skj.io>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
17 months agogh-118507 : Refactor ntpath native functions (gh-119381)
Nice Zombies [Wed, 22 May 2024 14:49:26 +0000 (16:49 +0200)] 
gh-118507 : Refactor ntpath native functions (gh-119381)

This refactoring will make future backports easier without changing behaviours,
apart from correcting a bug when passing a pipe to `ntpath.isfile`.

17 months ago[3.12] gh-118643: Fix AttributeError in the email module (GH-119099) (GH-119390)
Miss Islington (bot) [Wed, 22 May 2024 11:08:05 +0000 (13:08 +0200)] 
[3.12] gh-118643: Fix AttributeError in the email module (GH-119099) (GH-119390)

Fix regression introduced in gh-100884: AttributeError when re-fold a long
address list.

Also fix more cases of incorrect encoding of the address separator in the
address list missed in gh-100884.
(cherry picked from commit 858b9e85fcdd495947c9e892ce6e3734652c48f2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.12] Fix version number in use_load_tests deprecation reference (GH-119151) (GH...
Miss Islington (bot) [Wed, 22 May 2024 09:49:41 +0000 (11:49 +0200)] 
[3.12] Fix version number in use_load_tests deprecation reference (GH-119151) (GH-119387)

Deprecation took place in d78742a260ba09e53c844de7b1fd11a11c674945 (3.5)
(cherry picked from commit aee8f03abbebfb76357f459dfb297026862e3c0b)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
17 months ago[3.12] Clarify that dklen is expected in bytes for the hashlib functions (GH-106624...
Miss Islington (bot) [Wed, 22 May 2024 08:58:03 +0000 (10:58 +0200)] 
[3.12] Clarify that dklen is expected in bytes for the hashlib functions (GH-106624) (GH-119384)

(cherry picked from commit 5adf78f546a5dc3f5b8eeaa209a2e8437ae96ac8)

Co-authored-by: Mathijs Mortimer <thiezn@users.noreply.github.com>
17 months ago[3.12] gh-110383: Align dict.get(), .fromkeys(), and .setdefault() docs with docstrin...
Miss Islington (bot) [Wed, 22 May 2024 01:22:05 +0000 (03:22 +0200)] 
[3.12] gh-110383: Align dict.get(), .fromkeys(), and .setdefault() docs with docstrings (GH-119330) (#119371)

(cherry picked from commit 0e3c8cda1f04c983994e76aea93600dbb4714832)

Co-authored-by: Landon Wood <landon@elkrange.com>
17 months ago[3.12] gh-119189: Add yet more tests for mixed Fraction arithmetic (GH-119298) (GH...
Miss Islington (bot) [Tue, 21 May 2024 22:49:16 +0000 (00:49 +0200)] 
[3.12] gh-119189: Add yet more tests for mixed Fraction arithmetic (GH-119298) (GH-119347)

(cherry picked from commit 10b1bd926a5546e0f5cbd1a47d00dc5ff84f1979)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.12] Fix typos in documentation (GH-119295) (#119338)
Miss Islington (bot) [Tue, 21 May 2024 22:33:32 +0000 (00:33 +0200)] 
[3.12] Fix typos in documentation (GH-119295) (#119338)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
17 months ago[3.12] gh-110383: Document `socket.makefile()` accepts combined modes (GH-119150...
Miss Islington (bot) [Tue, 21 May 2024 18:52:56 +0000 (20:52 +0200)] 
[3.12] gh-110383: Document `socket.makefile()` accepts combined modes (GH-119150) (#119325)

The supported mode values are 'r', 'w', and 'b', or a combination of those.
(cherry picked from commit 62a29be5bb01c2d0f72d8f9b1b5539816e65310c)

Co-authored-by: Daniel Williams <dann0a@gmail.com>
17 months ago[3.12] GH-110383: Improve Tutorial for Input Ouput (GH-119230) (GH-119327)
Miss Islington (bot) [Tue, 21 May 2024 17:54:20 +0000 (19:54 +0200)] 
[3.12] GH-110383: Improve Tutorial for Input Ouput (GH-119230) (GH-119327)

GH-110383: Improve Tutorial for Input Ouput (GH-119230)

(cherry picked from commit 9db2fd7edaa9d03e8c649c3bb0e8d963233cde22)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
17 months ago[3.12] Docs: Ensure no warnings are found in the NEWS file before a given line number...
Hugo van Kemenade [Tue, 21 May 2024 14:40:16 +0000 (10:40 -0400)] 
[3.12] Docs: Ensure no warnings are found in the NEWS file before a given line number (GH-119221) (#119266)

17 months ago[3.12] gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows...
Miss Islington (bot) [Tue, 21 May 2024 04:09:30 +0000 (06:09 +0200)] 
[3.12] gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (GH-119175) (#119290)

gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (GH-119175)

------

(cherry picked from commit 538ed5e4818aa0d0aa759634e8bfa23e317434a1)

Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
17 months ago[3.12] gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide...
Miss Islington (bot) [Mon, 20 May 2024 23:40:17 +0000 (01:40 +0200)] 
[3.12] gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide (GH-119232) (#119283)

gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide (GH-119232)

* Remove description of issue fixed in 3.5 from autospeccing guide

* Make autospeccing note text more succint and lint whitespace

* Add linting changes (missed in last commit)

---------

(cherry picked from commit 7e57640c7ec6b7b5ce9b5eac465f6b771fd6ae69)

Co-authored-by: Shauna <shaunagm@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
17 months ago[3.12] gh-119050: Add XML support to libregrtest refleak checker (#119148) (#119272)
Victor Stinner [Mon, 20 May 2024 22:56:34 +0000 (18:56 -0400)] 
[3.12] gh-119050: Add XML support to libregrtest refleak checker (#119148) (#119272)

gh-119050: Add XML support to libregrtest refleak checker (#119148)

regrtest test runner: Add XML support to the refleak checker
(-R option).

* run_unittest() now stores XML elements as string, rather than
  objects, in support.junit_xml_list.
* runtest_refleak() now saves/restores XML strings before/after
  checking for reference leaks. Save XML into a temporary file.

(cherry picked from commit 9257731f5d3e9d4f99e314b23a14506563e167d7)

17 months ago[3.12] gh-108267 Fix another dataclasses docs typo (GH-119277) (#119280)
Miss Islington (bot) [Mon, 20 May 2024 22:48:54 +0000 (00:48 +0200)] 
[3.12] gh-108267 Fix another dataclasses docs typo (GH-119277) (#119280)

gh-108267 Fix another dataclasses docs typo (GH-119277)
(cherry picked from commit 423bbcbbc43cacfb6a217c04f890a47d3cf7c3a9)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
17 months ago[3.12] gh-119189: Add more tests for mixed Fraction arithmetic (GH-119236) (GH-119256)
Miss Islington (bot) [Mon, 20 May 2024 20:58:40 +0000 (22:58 +0200)] 
[3.12] gh-119189: Add more tests for mixed Fraction arithmetic (GH-119236) (GH-119256)

(cherry picked from commit fe67af19638d208239549ccac8b4f4fb6480e801)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.12] Use correct markup in unittest.mock.reset_mock documentation (GH-119207) ...
Miss Islington (bot) [Mon, 20 May 2024 20:12:29 +0000 (22:12 +0200)] 
[3.12] Use correct markup in unittest.mock.reset_mock documentation (GH-119207) (GH-119249)

Use correct markup in unittest.mock.reset_mock documentation (GH-119207)
(cherry picked from commit 6b80a5b20f31a067bd1c374295608df5f1210f49)

Co-authored-by: Tialo <65392801+Tialo@users.noreply.github.com>
17 months ago[3.12] gh-92081: Fix for email.generator.Generator with whitespace between encoded...
Miss Islington (bot) [Mon, 20 May 2024 20:10:49 +0000 (22:10 +0200)] 
[3.12] gh-92081: Fix for email.generator.Generator with whitespace between encoded words. (GH-92281) (#119246)

* Fix for email.generator.Generator with whitespace between encoded words.

email.generator.Generator currently does not handle whitespace between
encoded words correctly when the encoded words span multiple lines.  The
current generator will create an encoded word for each line.  If the end
of the line happens to correspond with the end real word in the
plaintext, the generator will place an unencoded space at the start of
the subsequent lines to represent the whitespace between the plaintext
words.

A compliant decoder will strip all the whitespace from between two
encoded words which leads to missing spaces in the round-tripped
output.

The fix for this is to make sure that whitespace between two encoded
words ends up inside of one or the other of the encoded words.  This
fix places the space inside of the second encoded word.

A second problem happens with continuation lines.  A continuation line that
starts with whitespace and is followed by a non-encoded word is fine because
the newline between such continuation lines is defined as condensing to
a single space character.  When the continuation line starts with whitespace
followed by an encoded word, however, the RFCs specify that the word is run
together with the encoded word on the previous line.  This is because normal
words are filded on syntactic breaks by encoded words are not.

The solution to this is to add the whitespace to the start of the encoded word
on the continuation line.

Test cases are from GH-92081

* Rename a variable so it's not confused with the final variable.
(cherry picked from commit a6fdb31b6714c9f3c65fefbb3fe388b2b139a75f)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
17 months ago[3.12] gh-112844: Update CPE references for external dependencies (GH-118521) (#119238)
Miss Islington (bot) [Mon, 20 May 2024 19:32:51 +0000 (21:32 +0200)] 
[3.12] gh-112844: Update CPE references for external dependencies (GH-118521) (#119238)

Co-authored-by: Seth Michael Larson <seth@python.org>
17 months ago[3.12] DOCS: Suggest always calling exec with a globals argument and no locals argume...
Miss Islington (bot) [Mon, 20 May 2024 18:11:36 +0000 (20:11 +0200)] 
[3.12] DOCS: Suggest always calling exec with a globals argument and no locals argument (GH-119235) (#119240)

DOCS: Suggest always calling exec with a globals argument and no locals argument (GH-119235)

Many users think they want a locals argument for various reasons but they do not
understand that it makes code be treated as a class definition. They do not want
their code treated as a class definition and get surprised. The reason not
to pass locals specifically is that the following code raises a `NameError`:

```py
exec("""
def f():
    print("hi")

f()

def g():
    f()
g()
""", {}, {})
```

The reason not to leave out globals is as follows:

```py
def t():
    exec("""
def f():
    print("hi")

f()

def g():
    f()
g()
    """)
```
(cherry picked from commit 7e1a130b8ff1ed8b3a5f00fe0f06d3916b852216)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
17 months ago[3.12] IDLE: fix url in config.py comment (GH-119198) (#119200)
Miss Islington (bot) [Mon, 20 May 2024 06:29:42 +0000 (08:29 +0200)] 
[3.12] IDLE: fix url in config.py comment (GH-119198) (#119200)

IDLE: fix url in config.py comment (GH-119198)
(cherry picked from commit 357f5a1f73684d0c126a5e8f79d76ff3641c4d52)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
17 months ago[3.12] marshal docs: Remove reference to "Sun" (GH-119161) (#119168)
Miss Islington (bot) [Sun, 19 May 2024 02:22:10 +0000 (04:22 +0200)] 
[3.12] marshal docs: Remove reference to "Sun" (GH-119161) (#119168)

Nobody has been using a Sun machine for a long time. When I saw
this sentence in a lightning talk just now, I thought it was talking
about sending Python code on a spacecraft.
(cherry picked from commit 697465ff88e49d98443025474e5b534adfba2cb0)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
17 months ago[3.12] gh-119050: Add type hints to libregrtest/results.py (GH-119144) (#119157)
Miss Islington (bot) [Sat, 18 May 2024 21:06:41 +0000 (23:06 +0200)] 
[3.12] gh-119050: Add type hints to libregrtest/results.py (GH-119144) (#119157)

gh-119050: Add type hints to libregrtest/results.py (GH-119144)

Sort also 'omitted' in TestResults.display_result().
(cherry picked from commit 30b4e9f9c42493136c58c56fee5553128bb32428)

Co-authored-by: Victor Stinner <vstinner@python.org>
17 months ago[3.12] gh-118997: Fix _Py_ClearImmortal() assertion (#119001)
Victor Stinner [Sat, 18 May 2024 20:56:27 +0000 (16:56 -0400)] 
[3.12] gh-118997: Fix _Py_ClearImmortal() assertion (#119001)

Fix _Py_ClearImmortal() assertion: use _Py_IsImmortal() to tolerate
reference count lower than _Py_IMMORTAL_REFCNT. Fix the assertion for
the stable ABI, when a C extension is built with Python 3.11 or
lower.

17 months ago[3.12] gh-119078: Clarify venv tutorial (GH-119129) (GH-119141)
Miss Islington (bot) [Sat, 18 May 2024 11:54:40 +0000 (13:54 +0200)] 
[3.12] gh-119078: Clarify venv tutorial (GH-119129) (GH-119141)

(cherry picked from commit 0f5e8bed636c2f29701e5a1965d1b088d33abbf0)

17 months ago[3.12] Minor improvements to the docs for itertools.tee() (gh-119135) (gh-119137)
Miss Islington (bot) [Sat, 18 May 2024 06:51:20 +0000 (08:51 +0200)] 
[3.12] Minor improvements to the docs for itertools.tee() (gh-119135) (gh-119137)

17 months ago[3.12] Fix typos in documentation (GH-119092) (#119117)
Miss Islington (bot) [Fri, 17 May 2024 10:57:34 +0000 (12:57 +0200)] 
[3.12] Fix typos in documentation (GH-119092) (#119117)

Fix typos in documentation (GH-119092)
(cherry picked from commit 65de194dd80bbc8cb7098d21cfd6aefd11d0d0ce)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
17 months ago[3.12] gh-108267: Fix object.__setattr__ regression in dataclasses docs (GH-119082...
Miss Islington (bot) [Thu, 16 May 2024 13:46:20 +0000 (15:46 +0200)] 
[3.12] gh-108267: Fix object.__setattr__ regression in dataclasses docs (GH-119082) (#119098)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
17 months ago[3.12] Add Tkinter tests for different events (GH-118778) (GH-119095)
Serhiy Storchaka [Thu, 16 May 2024 10:43:02 +0000 (13:43 +0300)] 
[3.12] Add Tkinter tests for different events (GH-118778) (GH-119095)

(cherry picked from commit b6839942a8906fccdd64e749abeefe8a61ce7e03)

17 months ago[3.12] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065...
Serhiy Storchaka [Thu, 16 May 2024 08:04:37 +0000 (11:04 +0300)] 
[3.12] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119088)

(cherry picked from commit 0152dc4ff5534fa2948b95262e70ff6b202b9b99)

17 months ago[3.12] gh-119009: Add gettext target (GH-119006) (#119075)
Miss Islington (bot) [Wed, 15 May 2024 18:20:41 +0000 (20:20 +0200)] 
[3.12] gh-119009: Add gettext target (GH-119006) (#119075)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
17 months agogh-118486: Simplify test_win32_mkdir_700 to check the exact ACL (GH-119056)
Miss Islington (bot) [Wed, 15 May 2024 11:21:57 +0000 (13:21 +0200)] 
gh-118486: Simplify test_win32_mkdir_700 to check the exact ACL (GH-119056)

(cherry picked from commit 94591dca510c796c7d40e9b4167ea56f2fdf28ca)

Co-authored-by: Steve Dower <steve.dower@python.org>
17 months ago[3.12] Misc improvements to the itertools docs (gh-119040) (#119044)
Miss Islington (bot) [Tue, 14 May 2024 15:27:03 +0000 (17:27 +0200)] 
[3.12] Misc improvements to the itertools docs (gh-119040) (#119044)

17 months ago[3.12] Itertools docs: fix parameter names and indentation in Python equivalents...
Miss Islington (bot) [Tue, 14 May 2024 14:59:11 +0000 (16:59 +0200)] 
[3.12] Itertools docs: fix parameter names and indentation in Python equivalents (gh-118977) (#119042)

17 months ago[3.12] typing tests: remove some unnecessary uses of `exec()` (GH-119005) (#119039)
Miss Islington (bot) [Tue, 14 May 2024 14:51:08 +0000 (16:51 +0200)] 
[3.12] typing tests: remove some unnecessary uses of `exec()` (GH-119005) (#119039)

(cherry picked from commit a9328e2b6ee05c186dcc552feb92b862b4a574df)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
17 months ago[3.12] Add yet few cases for urlparse/urlunparse roundtrip tests (GH-119031) (GH...
Miss Islington (bot) [Tue, 14 May 2024 14:16:27 +0000 (16:16 +0200)] 
[3.12] Add yet few cases for urlparse/urlunparse roundtrip tests (GH-119031) (GH-119036)

(cherry picked from commit 331d385af9817eaa32b739130227781358f85771)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.12] gh-67693: Fix urlunparse() and urlunsplit() for URIs with path starting with...
Miss Islington (bot) [Tue, 14 May 2024 09:47:11 +0000 (11:47 +0200)] 
[3.12] gh-67693: Fix urlunparse() and urlunsplit() for URIs with path starting with multiple slashes and no authority (GH-113563) (GH-119024)

(cherry picked from commit e237b25a4fa5626fcd1b1848aa03f725f892e40e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.12] gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (GH-118999...
Miss Islington (bot) [Mon, 13 May 2024 21:47:12 +0000 (23:47 +0200)] 
[3.12] gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (GH-118999) (#119019)

gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (GH-118999)
(cherry picked from commit fc757925944a9486d4244853dbe6e37ab3e560c2)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.12] gh-119010: Adds docs about `__type_params__` to `functools.update_wrapper...
Miss Islington (bot) [Mon, 13 May 2024 20:16:54 +0000 (22:16 +0200)] 
[3.12] gh-119010: Adds docs about `__type_params__` to `functools.update_wrapper` (GH-119012) (#119014)

gh-119010: Adds docs about `__type_params__` to `functools.update_wrapper` (GH-119012)
(cherry picked from commit b04c497f187b0b474e431a6d8d282269b40ffe52)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
17 months ago[3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is not set...
Tian Gao [Mon, 13 May 2024 19:21:15 +0000 (12:21 -0700)] 
[3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is not set (GH-118979) (#119008)

* [3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is not set (GH-118979)
(cherry picked from commit f526314194f7fd15931025f8a4439c1765666e42)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
17 months agogh-118876: Ensure PC/layout sets ns.temp before using it (GH-118880)
Miss Islington (bot) [Mon, 13 May 2024 11:48:39 +0000 (13:48 +0200)] 
gh-118876: Ensure PC/layout sets ns.temp before using it (GH-118880)

Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows.
(cherry picked from commit d8a82cca12e12a6b22bfe6691e9b222f6d276f0a)

Co-authored-by: I-Shen Leong <i-shenl@activestate.com>
17 months ago[3.12] Improve the `rmtree` doc for `dir_fd` param addition in 3.11 (GH-118964) ...
Miss Islington (bot) [Mon, 13 May 2024 11:10:55 +0000 (13:10 +0200)] 
[3.12] Improve the `rmtree` doc for `dir_fd` param addition in 3.11 (GH-118964) (#118992)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.12] gh-87106: Fix inspect.signature.bind() handling of positional-only arguments...
Miss Islington (bot) [Mon, 13 May 2024 08:29:47 +0000 (10:29 +0200)] 
[3.12] gh-87106: Fix inspect.signature.bind() handling of positional-only arguments with **kwargs (GH-103404) (GH-118984)

(cherry picked from commit 9c1520244151f36e010c1b04bedf14747a28517d)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
18 months ago[3.12] gh-118899: Add tests for `NotImplemented` attribute access (GH-118902) (#118969)
Miss Islington (bot) [Sun, 12 May 2024 14:22:58 +0000 (16:22 +0200)] 
[3.12] gh-118899: Add tests for `NotImplemented` attribute access (GH-118902) (#118969)

gh-118899: Add tests for `NotImplemented` attribute access (GH-118902)
(cherry picked from commit ec1398e117fb142cc830495503dbdbb1ddafe941)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] GH-118701: Note that recursive wildcards aren't supported in `PurePath.match...
Barney Gale [Sat, 11 May 2024 18:10:51 +0000 (19:10 +0100)] 
[3.12] GH-118701: Note that recursive wildcards aren't supported in `PurePath.match()` (#118713)

18 months ago[3.12] Correct the argument names for `secrets.choice` and `secrets.randbelow` in...
Miss Islington (bot) [Fri, 10 May 2024 14:45:22 +0000 (16:45 +0200)] 
[3.12] Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst` (GH-118098) (GH-118907)

Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst` (GH-118098)

Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`.
(cherry picked from commit c444362c6e0b6c01f49c3bee864100f52bd3b640)

Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
18 months agogh-118689: Doc: fix ePub build (GH-118690)
Miss Islington (bot) [Fri, 10 May 2024 10:34:33 +0000 (12:34 +0200)] 
gh-118689: Doc: fix ePub build (GH-118690)

(cherry picked from commit 7ac933e2609b2ef9b08ccf9c815b682b0e1ede2a)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
18 months agoFix some missing null checks. (GH-118721)
Miss Islington (bot) [Fri, 10 May 2024 09:51:57 +0000 (11:51 +0200)] 
Fix some missing null checks. (GH-118721)

(cherry picked from commit 7e6fcab20003b07621dc02ea78d6ea2fda500371)

Co-authored-by: Steve Dower <steve.dower@python.org>
18 months agogh-118486: Support mkdir(mode=0o700) on Windows (GH-118488)
Steve Dower [Thu, 9 May 2024 18:18:56 +0000 (19:18 +0100)] 
gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488)

18 months agogh-118802: Fix ACL use in test for non-English Windows (GH-118831)
Miss Islington (bot) [Thu, 9 May 2024 13:41:15 +0000 (15:41 +0200)] 
gh-118802: Fix ACL use in test for non-English Windows (GH-118831)

(cherry picked from commit 82acc5f2113bffd0ed902851f4ccf5b9be8980b2)

Co-authored-by: Steve Dower <steve.dower@python.org>
18 months ago[3.12] gh-103956: Fix `trace` output in case of missing source line (GH-103958) ...
Miss Islington (bot) [Thu, 9 May 2024 12:51:03 +0000 (14:51 +0200)] 
[3.12] gh-103956: Fix `trace` output in case of missing source line (GH-103958) (GH-118832)

Print only filename with lineno if linecache.getline() returns an empty string.
(cherry picked from commit 7c87ce777b3fd9055b118a58ec8614901ecb45e9)

Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
18 months ago[3.12] gh-118033: Fix `__weakref__` not set for generic dataclasses (GH-118099) ...
Miss Islington (bot) [Thu, 9 May 2024 09:09:40 +0000 (11:09 +0200)] 
[3.12] gh-118033: Fix `__weakref__` not set for generic dataclasses (GH-118099) (#118822)

gh-118033: Fix `__weakref__` not set for generic dataclasses (GH-118099)
(cherry picked from commit fa9b9cb11379806843ae03b1e4ad4ccd95a63c02)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] Format None, True, False and NotImplemented as literals (GH-118758) (GH-118794)
Serhiy Storchaka [Wed, 8 May 2024 19:55:13 +0000 (22:55 +0300)] 
[3.12] Format None, True, False and NotImplemented as literals (GH-118758) (GH-118794)

(cherry picked from commit 05c2fe1acda9ea5a57061642c36e8b73bb4fbba4)

18 months ago[3.12] docs: module page titles should not start with a link to themselves (GH-117099...
Miss Islington (bot) [Wed, 8 May 2024 19:42:01 +0000 (21:42 +0200)] 
[3.12] docs: module page titles should not start with a link to themselves (GH-117099) (#118791)

docs: module page titles should not start with a link to themselves (GH-117099)
(cherry picked from commit bcb435ee8ff41b5ec5d879ee0b6651f146a66151)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
18 months ago[3.12] Docs: fix typos in documentation (GH-118752) (#118786)
Miss Islington (bot) [Wed, 8 May 2024 19:13:42 +0000 (21:13 +0200)] 
[3.12] Docs: fix typos in documentation (GH-118752) (#118786)

Docs: fix typos in documentation (GH-118752)
(cherry picked from commit 7b0c247f1c176e092777fce4677a00f22c738b3c)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
18 months ago[3.12] gh-118671: Updated dead ActiveState links (GH-118730) (#118754)
Miss Islington (bot) [Wed, 8 May 2024 07:22:35 +0000 (09:22 +0200)] 
[3.12] gh-118671: Updated dead ActiveState links (GH-118730) (#118754)

Co-authored-by: trag1c <trag1cdev@yahoo.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
18 months ago[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-118736) (#118753)
Miss Islington (bot) [Wed, 8 May 2024 06:06:04 +0000 (08:06 +0200)] 
[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-118736) (#118753)

Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-118736)

Regen dependencies
(cherry picked from commit fcf52d7ceea3532f0b3475aadd4e1f72db463a1f)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
18 months ago[3.12] Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) ...
Miss Islington (bot) [Tue, 7 May 2024 13:35:09 +0000 (15:35 +0200)] 
[3.12] Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) (GH-118707)

Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612)
(cherry picked from commit a855f824a2f5a310ffa58a973a8fe9feaa2500b3)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
18 months ago[3.12] gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311) (GH-118699)
Miss Islington (bot) [Tue, 7 May 2024 12:02:55 +0000 (14:02 +0200)] 
[3.12] gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311) (GH-118699)

gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311)

The provided example was incorrect:
- The example enum was missing the `int` mixin as implied by the context
- The value of `int('1a', 16)` was incorrectly given as 17
  (should be 26)
(cherry picked from commit 48e52fe2c9a7b33671f6b5d1420a71a6f31ad64b)

Co-authored-by: Momo Eissenhauer <mmEissen@users.noreply.github.com>
18 months ago[3.12] gh-78612: Mark up eval() using param list (GH-115212) (#116044)
Miss Islington (bot) [Tue, 7 May 2024 11:49:29 +0000 (13:49 +0200)] 
[3.12] gh-78612: Mark up eval() using param list (GH-115212) (#116044)

Also mention that the 'expression' parameter can be a string.
(cherry picked from commit a71e32ce8e183023fc1ee401c22ebe35e4832f09)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
18 months ago[3.12] gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320...
Miss Islington (bot) [Tue, 7 May 2024 09:35:49 +0000 (11:35 +0200)] 
[3.12] gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320) (GH-118691)

gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320)

Fix an edge case in `binascii.a2b_base64` strict mode, where
excessive padding was not detected when no padding is necessary.

(cherry picked from commit fe47d9bee319528ffeb5fd60a615d7f02c7b5585)

Co-authored-by: Youfu Zhang <1315097+zhangyoufu@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
18 months ago[3.12] Expand recipe for kernel density estimation to include common tasks. (gh-118659)
Raymond Hettinger [Mon, 6 May 2024 19:51:27 +0000 (14:51 -0500)] 
[3.12] Expand recipe for kernel density estimation to include common tasks. (gh-118659)

18 months ago[3.12] gh-71592: Add ability to trace Tcl commands executed by Tkinter (GH-118291...
Serhiy Storchaka [Mon, 6 May 2024 19:26:08 +0000 (22:26 +0300)] 
[3.12] gh-71592: Add ability to trace Tcl commands executed by Tkinter (GH-118291) (GH-118662)

This is an experimental feature, for internal use.

Setting tkinter._debug = True before creating the root window enables
printing every executed Tcl command (or a Tcl command equivalent to the
used Tcl C API).

This will help to convert a Tkinter example into Tcl script to check
whether the issue is caused by Tkinter or exists in the underlying Tcl/Tk
library.
(cherry picked from commit 1ff626ebda465931ff3e4922e8e87d586eb6244c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] Fix typo in Doc/library/asyncio-task.rst (GH-118627) (#118657)
Miss Islington (bot) [Mon, 6 May 2024 17:03:22 +0000 (19:03 +0200)] 
[3.12] Fix typo in Doc/library/asyncio-task.rst (GH-118627) (#118657)

Fix typo in Doc/library/asyncio-task.rst (GH-118627)
(cherry picked from commit fc50f1bdbad3aa52d7cbd3cb836a35806266ec54)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
18 months ago[3.12] GH-115577 Clarify netloc term usage in urllib.parse docs (GH-117632) (GH-118656)
Miss Islington (bot) [Mon, 6 May 2024 17:01:50 +0000 (19:01 +0200)] 
[3.12] GH-115577 Clarify netloc term usage in urllib.parse docs (GH-117632) (GH-118656)

(cherry picked from commit 3ed3bc379a0c4ce7a107dd4bc276554fbb477998)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
18 months ago[3.12] gh-118164: Break a loop between _pydecimal and _pylong and optimize int to...
Miss Islington (bot) [Mon, 6 May 2024 09:10:05 +0000 (11:10 +0200)] 
[3.12] gh-118164: Break a loop between _pydecimal and _pylong and optimize int to str conversion (GH-118483) (GH-118590)

For converting large ints to strings, CPython invokes a function in _pylong.py,
which uses the decimal module to implement an asymptotically waaaaay
sub-quadratic algorithm. But if the C decimal module isn't available, CPython
uses _pydecimal.py instead. Which in turn frequently does str(int). If the int
is very large, _pylong ends up doing the work, which in turn asks decimal to do
"big" arithmetic, which in turn calls str(big_int), which in turn ... it can
become infinite mutual recursion.

This change introduces a different int->str function that doesn't use decimal.
It's asymptotically worse, "Karatsuba time" instead of quadratic time, so
still a huge improvement. _pylong switches to that when the C decimal isn't
available. It is also used for not too large integers (less than 450_000 bits),
where it is faster (up to 2 times for 30_000 bits) than the asymptotically
better implementation that uses the C decimal.

(cherry picked from commit 711c80bfca5dd17cb7c6ec26f0e44848b33aec04)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Tim Peters <tim.peters@gmail.com>
18 months ago[3.12] gh-115119: Bump CI to use Ubuntu 22.04 (#118631) (#118634)
Erlend E. Aasland [Mon, 6 May 2024 09:03:36 +0000 (11:03 +0200)] 
[3.12] gh-115119: Bump CI to use Ubuntu 22.04 (#118631) (#118634)

Ubuntu 22.04 ships with mpdecimal 2.5.1, installable using 'apt install libmpdec-dev'.

18 months ago[3.12] gh-78955: Use user-selected color theme for Help => IDLE Doc (GH-9502) (#118632)
Miss Islington (bot) [Mon, 6 May 2024 08:12:39 +0000 (10:12 +0200)] 
[3.12] gh-78955: Use user-selected color theme for Help => IDLE Doc (GH-9502) (#118632)

gh-78955: Use user-selected color theme for Help => IDLE Doc (GH-9502)
(cherry picked from commit 7758be431807d574e0f1bbab003796585ae46719)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
18 months ago[3.12] gh-117389: Fix `test_compileall.EncodingTest` (GH-117390) (#118603)
Miss Islington (bot) [Sun, 5 May 2024 19:02:04 +0000 (21:02 +0200)] 
[3.12] gh-117389: Fix `test_compileall.EncodingTest` (GH-117390) (#118603)

gh-117389: Fix `test_compileall.EncodingTest` (GH-117390)
(cherry picked from commit 44f67916dafd3583f482e6d001766581a1a734fc)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] gh-118476: Fix corner cases in islice() rough equivalent. (Gh-118559) (#118587)
Miss Islington (bot) [Sun, 5 May 2024 06:49:19 +0000 (08:49 +0200)] 
[3.12] gh-118476: Fix corner cases in islice() rough equivalent. (Gh-118559) (#118587)

18 months ago[3.12] gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ ...
Miss Islington (bot) [Sun, 5 May 2024 06:35:11 +0000 (08:35 +0200)] 
[3.12] gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ (GH-118456) (#118586)

gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ (GH-118456)

* Fix mangle_from_ default value in email.policy.Policy.__doc__

The docstring says it defaults to True, but it actually defaults
to False. Only the Compat32 subclass overrides that.

---------

(cherry picked from commit fed8d73fde779fca41026398376cb3038e9b2b5f)

Co-authored-by: wim glenn <jump@wimglenn.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] gh-118164: str(10**10000) hangs if the C _decimal module is missing (GH-118503...
Miss Islington (bot) [Sun, 5 May 2024 06:34:43 +0000 (08:34 +0200)] 
[3.12] gh-118164: str(10**10000) hangs if the C _decimal module is missing (GH-118503) (GH-118584)

Serhiy and I independently concluded that exact powers of 10
aren't possible in these contexts, so just checking the
string length is sufficient.

(cherry picked from commit 999f0c512281995fb61a0d9eda075fd846e8c505)

Co-authored-by: Tim Peters <tim.peters@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] gh-118569: Add a test for dynamic PEP695 classes (GH-118570) (#118574)
Miss Islington (bot) [Sat, 4 May 2024 15:26:30 +0000 (17:26 +0200)] 
[3.12] gh-118569: Add a test for dynamic PEP695 classes (GH-118570) (#118574)

gh-118569: Add a test for dynamic PEP695 classes (GH-118570)
(cherry picked from commit 5f547585fa56c94c5d836b5313a7200f4937ebc4)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] Minor improvements to the itertools recipes (GH-118563) (#118565)
Miss Islington (bot) [Fri, 3 May 2024 22:20:29 +0000 (00:20 +0200)] 
[3.12] Minor improvements to the itertools recipes (GH-118563) (#118565)

18 months ago[3.12] docs: clarify csv.DictReader's treatment of the first data row (GH-118549...
Miss Islington (bot) [Fri, 3 May 2024 15:55:09 +0000 (17:55 +0200)] 
[3.12] docs: clarify csv.DictReader's treatment of the first data row (GH-118549) (#118555)

(cherry picked from commit 9d67b72a4952766fdba803eb6eadd41dfee29dff)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
18 months ago[3.12] gh-118513: Fix sibling comprehensions with a name bound in one and global...
Miss Islington (bot) [Fri, 3 May 2024 14:40:05 +0000 (16:40 +0200)] 
[3.12] gh-118513: Fix sibling comprehensions with a name bound in one and global in the other (GH-118526) (#118548)

gh-118513: Fix sibling comprehensions with a name bound in one and global in the other (GH-118526)
(cherry picked from commit c8deb1e4b495bf97ab00c710dfd63f227e1fb645)

Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
18 months ago[3.12] gh-117492: Clarify documentation of `typing.Never` (GH-117678) (#118547)
Miss Islington (bot) [Fri, 3 May 2024 13:09:05 +0000 (15:09 +0200)] 
[3.12] gh-117492: Clarify documentation of `typing.Never` (GH-117678) (#118547)

(cherry picked from commit 852263e1086748492602a90347ecc0a3925e1dda)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>