]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
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>
18 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>
18 months ago[3.12] gh-90848: Fixed create_autospec ignoring configure_mock style kwargs (GH-11816...
Miss Islington (bot) [Thu, 2 May 2024 18:01:17 +0000 (20:01 +0200)] 
[3.12] gh-90848: Fixed create_autospec ignoring configure_mock style kwargs (GH-118163) (#118517)

gh-90848: Fixed create_autospec ignoring configure_mock style kwargs (GH-118163)
(cherry picked from commit b28a3339e4c63ea3a801dba9bbbc6af5af42c3a0)

Co-authored-by: infohash <46137868+infohash@users.noreply.github.com>
18 months ago[3.12] gh-118272: Clear generator frame's locals when the generator is closed (#118451)
Irit Katriel [Thu, 2 May 2024 15:22:50 +0000 (16:22 +0100)] 
[3.12] gh-118272: Clear generator frame's locals when the generator is closed (#118451)

18 months ago[3.12] gh-117903: Clarify that the staticmethod descriptor is callable (GH-117925...
Miss Islington (bot) [Thu, 2 May 2024 14:02:26 +0000 (16:02 +0200)] 
[3.12] gh-117903: Clarify that the staticmethod descriptor is callable (GH-117925) (GH-118509)

(cherry picked from commit b3372481b6cae5766330b041c4622c28cee2119f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] GH-117881: fix athrow().throw()/asend().throw() concurrent access (GH-117882...
Thomas Grainger [Thu, 2 May 2024 08:23:25 +0000 (09:23 +0100)] 
[3.12] GH-117881: fix athrow().throw()/asend().throw() concurrent access (GH-117882) (#118458)

GH-117881: fix athrow().throw()/asend().throw() concurrent access (GH-117882)

(cherry picked from commit fc7e1aa3c001bbce25973261fba457035719a559)

18 months ago[3.12] Uncomment one grammar test (GH-118361) (#118385)
Miss Islington (bot) [Thu, 2 May 2024 06:03:49 +0000 (08:03 +0200)] 
[3.12] Uncomment one grammar test (GH-118361) (#118385)

Uncomment one grammar test (GH-118361)
(cherry picked from commit 23d0371bb99b1df183c36883e256f82fdf6a4bea)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] docs: typo: tiny grammar change: "pointed by" -> "pointed to by" (GH-118411...
Jelle Zijlstra [Thu, 2 May 2024 06:01:06 +0000 (23:01 -0700)] 
[3.12] docs: typo: tiny grammar change: "pointed by" -> "pointed to by" (GH-118411) (#118504)

(cherry picked from commit a6b610a94bee0e4436aee2825c14f05ec2f22f75)

Co-authored-by: Andrew Zipperer <47086307+zipperer@users.noreply.github.com>
Co-authored-by: Andrew-Zipperer <atzipperer@gmail.com>
18 months ago[3.12] gh-116767: fix crash on 'async with' with many context managers (GH-118348...
Irit Katriel [Wed, 1 May 2024 17:23:29 +0000 (18:23 +0100)] 
[3.12] gh-116767: fix crash on 'async with' with many context managers (GH-118348) (#118477)

gh-116767: fix crash on 'async with' with many context managers (GH-118348)

Account for `add_stopiteration_handler` pushing a block for `async with`.
To allow generator functions that previously almost hit the `CO_MAXBLOCKS`
limit by nesting non-async blocks, the limit is increased by 1.
This increase allows one more block in non-generator functions.

(cherry picked from commit c1bf4874c1e9db2beda1d62c8c241229783c789b)

18 months agogh-116122: Add SBOM generation to PCbuild/build.bat (GH-116138)
Seth Michael Larson [Wed, 1 May 2024 14:47:41 +0000 (09:47 -0500)] 
gh-116122: Add SBOM generation to PCbuild/build.bat (GH-116138)

(cherry picked from commit 72dae53e09a5344bf4922d934a34a2fa48a11c86)

Co-authored-by: Seth Michael Larson <seth@python.org>
18 months ago[3.12] gh-118418: Use a default value for `type_params` in `typing._eval_type` (GH...
Miss Islington (bot) [Tue, 30 Apr 2024 16:26:38 +0000 (18:26 +0200)] 
[3.12] gh-118418: Use a default value for `type_params` in `typing._eval_type` (GH-118431) (#118436)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] gh-117860: Add tests for resolving names when import rebind names (GH-118176...
Miss Islington (bot) [Tue, 30 Apr 2024 14:52:44 +0000 (16:52 +0200)] 
[3.12] gh-117860: Add tests for resolving names when import rebind names (GH-118176) (GH-118432)

Add tests for "import", pkgutil.resolve_name() and unittest.mock.path()
for cases when "import a.b as x" and "from a import b as x" give
different results.
(cherry picked from commit c0eaa232f63a62e0e0408911ab5f118dca2af607)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] gh-118404: Fix inspect.signature() for non-comparable callables (GH-118405...
Miss Islington (bot) [Tue, 30 Apr 2024 12:33:54 +0000 (14:33 +0200)] 
[3.12] gh-118404: Fix inspect.signature() for non-comparable callables (GH-118405) (GH-118424)

(cherry picked from commit 11f8348d78c22f85694d7a424541b34d6054a8ee)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] gh-85453: Consistent backquotes on None occurences across datetime.rst (GH...
Miss Islington (bot) [Tue, 30 Apr 2024 08:44:23 +0000 (10:44 +0200)] 
[3.12] gh-85453: Consistent backquotes on None occurences across datetime.rst (GH-118282) (#118419)

(cherry picked from commit 0f797402bc77192c76a952410ca8e17359feab3c)

Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
18 months agogh-118347: Fix Windows installer not updating launcher (GH-118386)
Miss Islington (bot) [Mon, 29 Apr 2024 21:16:17 +0000 (23:16 +0200)] 
gh-118347: Fix Windows installer not updating launcher (GH-118386)

(cherry picked from commit 96d8ca7ad6c4f23f023dd6ed0abd042b29dff4a2)

Co-authored-by: Steve Dower <steve.dower@python.org>
18 months ago[3.12] gh-118359: Improve docs for Bdb.user_call (GH-118368) (#118410)
Miss Islington (bot) [Mon, 29 Apr 2024 21:07:56 +0000 (23:07 +0200)] 
[3.12] gh-118359: Improve docs for Bdb.user_call (GH-118368) (#118410)

gh-118359: Improve docs for Bdb.user_call (GH-118368)

The `argument_list` parameter of bdb.Bdb.user_call has been useless for 25 years. It is retained for backwards compatibility, but it will always be None.
(cherry picked from commit 8e4fb5d260e529c9d4ca60980225fbd00dd5c3c8)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
18 months ago[3.12] gh-118401: Docs: Use Sphinx short options (GH-118403) (#118407)
Miss Islington (bot) [Mon, 29 Apr 2024 20:31:14 +0000 (22:31 +0200)] 
[3.12] gh-118401: Docs: Use Sphinx short options (GH-118403) (#118407)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] Docs: Upgrade to Sphinx 7.3 (GH-118397) (#118400)
Miss Islington (bot) [Mon, 29 Apr 2024 17:58:06 +0000 (19:58 +0200)] 
[3.12] Docs: Upgrade to Sphinx 7.3 (GH-118397) (#118400)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] gh-117566: fix IPv6Address.is_loopback for IPv4-mapped loopbacks (GH-117567...
Miss Islington (bot) [Mon, 29 Apr 2024 14:41:26 +0000 (16:41 +0200)] 
[3.12] gh-117566: fix IPv6Address.is_loopback for IPv4-mapped loopbacks (GH-117567) (GH-118391)

gh-117566: fix IPv6Address.is_loopback for IPv4-mapped loopbacks (GH-117567)

While properties like IPv6Address.is_private account for IPv4-mapped
IPv6 addresses, such as for example:

    >>> ipaddress.ip_address("192.168.0.1").is_private
    True
    >>> ipaddress.ip_address("::ffff:192.168.0.1").is_private
    True
...the same doesn't currently apply to the is_loopback property:
    >>> ipaddress.ip_address("127.0.0.1").is_loopback
    True
    >>> ipaddress.ip_address("::ffff:127.0.0.1").is_loopback
    False

At minimum, this inconsistency between different properties is
counter-intuitive. Moreover, ::ffff:127.0.0.0/104 is for all intents and
purposes a loopback address, and should be treated as such.

(cherry picked from commit fb7f79b4da35b75cdc82ff3cf20816d2bf93d416)

Co-authored-by: Faidon Liambotis <paravoid@debian.org>
18 months ago[3.12] gh-101100: Fix Sphinx warnings in `library/faulthandler.rst` (GH-118353) ...
Miss Islington (bot) [Sun, 28 Apr 2024 18:41:02 +0000 (20:41 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings in `library/faulthandler.rst` (GH-118353) (#118366)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.10.rst` (GH-118356) (#118367)
Miss Islington (bot) [Sun, 28 Apr 2024 18:40:46 +0000 (20:40 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.10.rst` (GH-118356) (#118367)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.9.rst` (GH-118364) (#118365)
Hugo van Kemenade [Sun, 28 Apr 2024 17:52:58 +0000 (20:52 +0300)] 
[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.9.rst` (GH-118364) (#118365)

18 months ago[3.12] Fix note in Enum.__new__ docs (GH-118284) (#118325)
Jelle Zijlstra [Fri, 26 Apr 2024 23:25:31 +0000 (16:25 -0700)] 
[3.12] Fix note in Enum.__new__ docs (GH-118284) (#118325)

(cherry picked from commit 5a4d3df2fa02409ffd2a90cd75b67370206e9891)

Co-authored-by: Philipp A <flying-sheep@web.de>
18 months ago[3.12] gh-117928: Bump the minimum Sphinx version to 6.2.1 (GH-117853) (#118321)
Kirill Podoprigora [Fri, 26 Apr 2024 14:18:58 +0000 (17:18 +0300)] 
[3.12] gh-117928: Bump the minimum Sphinx version to 6.2.1 (GH-117853) (#118321)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec (GH-118237) ...
Miss Islington (bot) [Fri, 26 Apr 2024 09:56:10 +0000 (11:56 +0200)] 
[3.12] gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec (GH-118237) (GH-118309)

gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec (GH-118237)
(cherry picked from commit ef940dec409f0a9e4f353c6188990aeb3ad4ffb4)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
18 months ago[3.12] gh-118042: Fix error in Telnet.__del__ when __init__() was not called (GH...
Serhiy Storchaka [Fri, 26 Apr 2024 05:53:54 +0000 (08:53 +0300)] 
[3.12] gh-118042: Fix error in Telnet.__del__ when __init__() was not called (GH-118274)

18 months ago[3.12] gh-118207: Rename the COMMON_FIELDS macro in funcobject.h and undef it after...
Miss Islington (bot) [Fri, 26 Apr 2024 05:29:45 +0000 (07:29 +0200)] 
[3.12] gh-118207: Rename the COMMON_FIELDS macro in funcobject.h and undef it after use (GH-118208) (#118269)

gh-118207: Rename the COMMON_FIELDS macro in funcobject.h and undef it after use (GH-118208)
(cherry picked from commit 796b3fb28057948ea5b98f7eb0c0f3af6a1e276e)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
18 months ago[3.12] gh-118221: Always use the default row factory in sqlite3.iterdump() (#118223...
Erlend E. Aasland [Thu, 25 Apr 2024 08:33:35 +0000 (10:33 +0200)] 
[3.12] gh-118221: Always use the default row factory in sqlite3.iterdump() (#118223) (#118270)

sqlite3.iterdump() depends on the row factory returning resulting rows
as tuples; it will fail with custom row factories like for example a
dict factory.

With this commit, we explicitly reset the row factory of the cursor used
by iterdump(), so we always get predictable results. This does not
affect the row factory of the parent connection.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] GH-117894: prevent aclose()/athrow() being re-used after StopIteration (GH...
Thomas Grainger [Thu, 25 Apr 2024 07:13:47 +0000 (08:13 +0100)] 
[3.12] GH-117894: prevent aclose()/athrow() being re-used after StopIteration (GH-117851) (GH-118226)

(cherry picked from commit 7d369d471cf2b067c4d795d70b75201c48b46f5b)

18 months ago[3.12] gh-117968: Make the test for closed file more safe in the C API tests (GH...
Miss Islington (bot) [Thu, 25 Apr 2024 05:16:43 +0000 (07:16 +0200)] 
[3.12] gh-117968: Make the test for closed file more safe in the C API tests (GH-118230) (GH-118266)

The behavior of fileno() after fclose() is undefined, but it is the only
practical way to check whether the file was closed.
Only test this on the known platforms (Linux, Windows, macOS), where we
already tested that it works.
(cherry picked from commit 546cbcfa0eeeb533950bd49e30423f3d3bbd5ebe)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] gh-85453: Make numeric literals consistent across datetime.rst (GH-118245...
Miss Islington (bot) [Wed, 24 Apr 2024 20:27:19 +0000 (22:27 +0200)] 
[3.12] gh-85453: Make numeric literals consistent across datetime.rst (GH-118245) (#118248)

Remove code formatting from remaining numeric literals.
(cherry picked from commit 59a4d52973ca73bd739f914e88243a31dbef6b32)

Co-authored-by: edson duarte <eduarte.uatach@gmail.com>