]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
21 months ago[3.12] Update http.cookiejar document for cookie object attributes (GH-101885) (...
Miss Islington (bot) [Fri, 23 Feb 2024 22:11:59 +0000 (23:11 +0100)] 
[3.12] Update http.cookiejar document for cookie object attributes (GH-101885) (#115833)

Update http.cookiejar document for cookie object attributes (GH-101885)
(cherry picked from commit a3859422d15d98892fd53499916bd424f841404f)

Co-authored-by: NewUserHa <32261870+NewUserHa@users.noreply.github.com>
21 months ago[3.12] gh-67044: Always quote or escape \r and \n in csv.writer() (GH-115741) (GH...
Miss Islington (bot) [Fri, 23 Feb 2024 20:45:04 +0000 (21:45 +0100)] 
[3.12] gh-67044: Always quote or escape \r and \n in csv.writer() (GH-115741) (GH-115866)

(cherry picked from commit c688c0f130906ff7725a126fff143d1389884f89)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-54358: Clarify data chunking in pyexpat (GH-31629) (GH-115864)
Miss Islington (bot) [Fri, 23 Feb 2024 19:25:56 +0000 (20:25 +0100)] 
[3.12] gh-54358: Clarify data chunking in pyexpat (GH-31629) (GH-115864)

(cherry picked from commit 462a2fc09d9e5f7cdd3a8f2faed73e5bc2c93349)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
21 months ago[3.12] gh-90300: Reformat the Python CLI help output (GH-93415) (#115847)
Łukasz Langa [Fri, 23 Feb 2024 17:23:16 +0000 (18:23 +0100)] 
[3.12] gh-90300: Reformat the Python CLI help output (GH-93415) (#115847)

(cherry picked from commit 2e92ffd7fa89e3bd33ee2f31541d3dc53aaa2d12)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-89480: Document the gdb helpers (GH-115657) (GH-115857)
Miss Islington (bot) [Fri, 23 Feb 2024 16:32:42 +0000 (17:32 +0100)] 
[3.12] gh-89480: Document the gdb helpers (GH-115657) (GH-115857)

gh-89480: Document the gdb helpers (GH-115657)

Content adapted from https://devguide.python.org/development-tools/gdb/GH-
and https://wiki.python.org/moin/DebuggingWithGdb.

The original content on the Wiki page came from gdb debug help used by
the Launchpad (https://launchpad.net/) team.
Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page.

The history of the Devguide page follows
(with log entries expanded for major content contributions):

Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200
Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200
Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200
Satish Mishra, Sat Feb 11 13:54:57 2023 +0530
Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200
Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500

    Add a GDB tips section to Advanced Tools (GH-977)

Adam Turner, Wed Jun 15 21:19:23 2022 +0100
Adam Turner, Tue Jun 14 11:12:26 2022 +0100
Suriyaa, Fri Jun 8 19:39:23 2018 +0200
Jeff Allen, Tue Oct 24 18:12:53 2017 +0100
Jeff Allen, Fri Oct 13 13:43:43 2017 +0100
Mariatta, Wed Jan 4 09:14:55 2017 -0800
Carol Willing, Mon Sep 26 14:50:54 2016 -0700
Zachary Ware, Thu Jul 21 10:42:23 2016 -0500
Georg Brandl, Mon Nov 3 11:28:19 2014 +0100

    Add instruction how to activate python-gdb.py

Georg Brandl, Sun Mar 9 10:32:01 2014 +0100
Georg Brandl, Tue Apr 3 09:12:53 2012 +0200
Georg Brandl, Sat Mar 5 17:32:35 2011 +0100
Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500

    Add documentation on the gdb extension commands provided in libpython.py

    I adapted this from documentation I wrote for the Fedora wiki:
      https://fedoraproject.org/wiki/Features/EasierPythonDebuggingGH-New_gdb_commands
    reformatting it as rst, and making other minor changes

Brett Cannon, Thu Jan 20 15:16:52 2011 -0800
Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500

    Add some notes on the gdb pretty-printer hooks

Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100

    Give an example backtrace

Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100

    Expand explanations about gdb support

Brett Cannon, Thu Jan 20 11:33:36 2011 -0800

    Tweak the gdb support title to fit in better with the devguide.

Brett Cannon, Mon Jan 17 21:12:54 2011 +0000

    Short README on gdb support.

(cherry picked from commit 59057ce55a443f35bfd685c688071aebad7b3671)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: anatoly techtonik <techtonik@gmail.com>
Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Georg Brandl <georg@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Satish Mishra <7506satish@gmail.com>
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
21 months agogh-114435: Allow test_stat_inaccessible_file() to have matching ino/dev (GH-114571)
Miss Islington (bot) [Fri, 23 Feb 2024 12:35:42 +0000 (13:35 +0100)] 
gh-114435: Allow test_stat_inaccessible_file() to have matching ino/dev (GH-114571)

This may occur if Windows allows reading stat information from a file even if the current user does not have access.
(cherry picked from commit d91ddff5de61447844f1dac575d2e670c8d7e26b)

Co-authored-by: Steve Dower <steve.dower@python.org>
21 months ago[3.12] gh-88516: show file proxy icon in IDLE editor windows on macOS (GH-112894...
Miss Islington (bot) [Fri, 23 Feb 2024 02:37:17 +0000 (03:37 +0100)] 
[3.12] gh-88516: show file proxy icon in IDLE editor windows on macOS (GH-112894) (#115840)

The platform standard on macOS is to show a proxy icon for open
files in the titlebar of Windows. Make sure IDLE matches this
behaviour.

Don't use both the long and short names in the window title.
The behaviour of other editors (such as Text Editor) is to show
only the short name with the proxy icon.

(cherry picked from commit b48101864c724a7eab41a6878a836f38e54e04fb)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
21 months ago[3.12] gh-115663: Remove 'regen-sbom' from the 'regen-all' target (GH-115790) (#115820)
Seth Michael Larson [Thu, 22 Feb 2024 14:25:41 +0000 (08:25 -0600)] 
[3.12] gh-115663: Remove 'regen-sbom' from the 'regen-all' target (GH-115790) (#115820)

21 months ago[3.12] gh-100762: Fix optimization in gen_close (GH-111069) (#115818)
Miss Islington (bot) [Thu, 22 Feb 2024 14:05:59 +0000 (15:05 +0100)] 
[3.12] gh-100762: Fix optimization in gen_close  (GH-111069) (#115818)

gh-100762: Fix optimization in gen_close  (GH-111069)
(cherry picked from commit 0db2517687efcf5ec0174a32398ec1564b3204f1)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
21 months ago[3.12] gh-115795: Doc: fix obsolete URL (GH-115749) (#115803)
Miss Islington (bot) [Thu, 22 Feb 2024 06:51:49 +0000 (07:51 +0100)] 
[3.12] gh-115795: Doc: fix obsolete URL (GH-115749) (#115803)

gh-115795: Doc: fix obsolete URL (GH-115749)
(cherry picked from commit 7bc79371a62e8f45542cf5679ed35d0d29e94226)

Co-authored-by: partev <petrosyan@gmail.com>
21 months ago[3.12] gh-112364: Correct unparsing of backslashes and quotes in ast.… (#115782)
Frank Hoffmann [Wed, 21 Feb 2024 23:28:07 +0000 (00:28 +0100)] 
[3.12] gh-112364: Correct unparsing of backslashes and quotes in ast.… (#115782)

[3.12] gh-112364: Correct unparsing of backslashes and quotes in ast.unparse (GH-115696)
(cherry picked from commit 69ab93082d14425aaac48b8393711c716575b132)

21 months ago[3.12] gh-93205: When rotating logs with no namer specified, match whole extension...
Miss Islington (bot) [Wed, 21 Feb 2024 21:36:25 +0000 (22:36 +0100)] 
[3.12] gh-93205: When rotating logs with no namer specified, match whole extension (GH-93224) (GH-115784)

(cherry picked from commit 113687a8381d6dde179aeede607bcbca5c09d182)

Co-authored-by: Gabriele Catania <gabriele.ctn@gmail.com>
21 months agogh-113655: Increase stack reserve size on Windows for when running PGO (GH-115770)
Steve Dower [Wed, 21 Feb 2024 19:46:46 +0000 (19:46 +0000)] 
gh-113655: Increase stack reserve size on Windows for when running PGO (GH-115770)

21 months ago[3.12] gh-96310: Fix a traceback in argparse when all options in a mutually exclusive...
Miss Islington (bot) [Wed, 21 Feb 2024 16:20:29 +0000 (17:20 +0100)] 
[3.12] gh-96310: Fix a traceback in argparse when all options in a mutually exclusive group are suppressed (GH-96311) (GH-115767)

Reproducer depends on terminal size - the traceback occurs when there's
an option long enough so the usage line doesn't fit the terminal width.
Option order is also important for reproducibility.

Excluding empty groups (with all options suppressed) from inserts
fixes the problem.
(cherry picked from commit 5f7df88821347c5f44fc4e2c691e83a60a6c6cd5)

Co-authored-by: Daniel Mach <daniel.mach@suse.com>
21 months ago[3.12] gh-114785: Remove content from `Porting from Python2` how-to (GH-114805) ...
Miss Islington (bot) [Wed, 21 Feb 2024 12:49:36 +0000 (13:49 +0100)] 
[3.12] gh-114785: Remove content from `Porting from Python2` how-to (GH-114805) (GH-115327)

Keep the page though, because people might still rely on it (the traffic shows that they do).
Instead of our own manual we now give links to the 3rd-party ones.

(cherry picked from commit 705c76d4a202f1faf41027d48d44eac0e76bb1f0)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.12] gh-115399: Document CVE-2023-52425 under "XML vulnerabilities" (GH-115400...
Miss Islington (bot) [Wed, 21 Feb 2024 11:43:05 +0000 (12:43 +0100)] 
[3.12] gh-115399: Document CVE-2023-52425 under "XML vulnerabilities" (GH-115400) (GH-115760)

Doc/library/xml.rst: Document CVE-2023-52425 under "XML vulnerabilities"
(cherry picked from commit fbd40ce46e7335a5dbaf48a3aa841be22d7302ba)

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
21 months ago[3.12] gh-115653: Document PyCode_GetFirstFree() (GH-115654) (#115752)
Miss Islington (bot) [Wed, 21 Feb 2024 10:31:56 +0000 (11:31 +0100)] 
[3.12] gh-115653: Document PyCode_GetFirstFree() (GH-115654) (#115752)

gh-115653: Document PyCode_GetFirstFree() (GH-115654)

Correct the return type of the PyCode_GetNumFree() documentation.
(cherry picked from commit 10fc4675fdb14e19f2fdd15102c6533b9f71e992)

Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>
21 months ago[3.12] gh-86291: linecache: get module name from __spec__ if available (GH-22908...
Miss Islington (bot) [Tue, 20 Feb 2024 18:14:24 +0000 (19:14 +0100)] 
[3.12] gh-86291: linecache: get module name from __spec__ if available (GH-22908) (GH-115731)

This allows getting source code for the __main__ module when a custom
loader is used.
(cherry picked from commit e976baba99a5c243ff3a3b5ef2fd14608a398338)

Co-authored-by: Eugene Toder <eltoder@users.noreply.github.com>
21 months ago[3.12] gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True...
Serhiy Storchaka [Tue, 20 Feb 2024 17:53:29 +0000 (19:53 +0200)] 
[3.12] gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True (GH-115721) (GH-115729)

csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
(cherry picked from commit 937d2821501de7adaa5ed8491eef4b7f3dc0940a)

21 months ago[3.12] Add missed `stream` argument (GH-111775) (#115716)
Miss Islington (bot) [Tue, 20 Feb 2024 16:36:55 +0000 (17:36 +0100)] 
[3.12] Add missed `stream` argument (GH-111775) (#115716)

Add missed `stream` argument (GH-111775)

* Add missed `stream` argument

* Add news
(cherry picked from commit 1ff6c1416b0bb422f4847cd84fcb33662a2497ef)

Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
21 months ago[3.12] gh-112020: Document the meaning of empty bytes returned by socket.recv() ...
Miss Islington (bot) [Tue, 20 Feb 2024 15:01:31 +0000 (16:01 +0100)] 
[3.12] gh-112020: Document the meaning of empty bytes returned by socket.recv() (GH-112055) (GH-115722)

(cherry picked from commit e71468ba4f5fb2da0cefe9e923b01811cb53fb5f)

Co-authored-by: talcs <talh8787@gmail.com>
21 months ago[3.12] Make the title match the content (GH-115702) (gh-115703)
Miss Islington (bot) [Tue, 20 Feb 2024 07:58:53 +0000 (08:58 +0100)] 
[3.12] Make the title match the content (GH-115702) (gh-115703)

21 months ago[3.12] Modernize the Sorting HowTo guide (gh-115479) (gh-115701)
Miss Islington (bot) [Tue, 20 Feb 2024 03:28:23 +0000 (04:28 +0100)] 
[3.12] Modernize the Sorting HowTo guide (gh-115479) (gh-115701)

21 months ago[3.12] gh-115539: Allow enum.Flag to have None members (GH-115636) (GH-115694)
Miss Islington (bot) [Tue, 20 Feb 2024 00:18:40 +0000 (01:18 +0100)] 
[3.12] gh-115539: Allow enum.Flag to have None members (GH-115636) (GH-115694)

gh-115539: Allow enum.Flag to have None members (GH-115636)
(cherry picked from commit c2cb31bbe1262213085c425bc853d6587c66cae9)

Co-authored-by: Jason Zhang <yurenzhang2017@gmail.com>
21 months agogh-115543: Update py.exe to know about Python 3.13 and to install 3.12 by default...
Miss Islington (bot) [Mon, 19 Feb 2024 21:03:17 +0000 (22:03 +0100)] 
gh-115543: Update py.exe to know about Python 3.13 and to install 3.12 by default (GH-115544)

(cherry picked from commit 6cd18c75a41a74cab69ebef0b7def3e48421bdd1)

Co-authored-by: Steve Dower <steve.dower@python.org>
21 months ago[3.12] Fix typo in multiprocessing docs (GH-115650) (#115679)
Miss Islington (bot) [Mon, 19 Feb 2024 18:25:24 +0000 (19:25 +0100)] 
[3.12] Fix typo in multiprocessing docs (GH-115650) (#115679)

(cherry picked from commit 57d31ec3598429789492e0b3544efaaffca5799f)

Co-authored-by: Naglis Jonaitis <827324+naglis@users.noreply.github.com>
21 months ago[3.12] gh-60346: Improve handling single-dash options in ArgumentParser.parse_known_a...
Miss Islington (bot) [Mon, 19 Feb 2024 18:25:09 +0000 (19:25 +0100)] 
[3.12] gh-60346: Improve handling single-dash options in ArgumentParser.parse_known_args() (GH-114180) (GH-115675)

(cherry picked from commit e47ecbd0420528f1f9f282d9e7acfcf586a4caa1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-115664: Fix versionadded and versionchanged directives in multiprocessing...
Miss Islington (bot) [Mon, 19 Feb 2024 18:21:10 +0000 (19:21 +0100)] 
[3.12] gh-115664: Fix versionadded and versionchanged directives in multiprocessing.rst (GH-115665) (GH-115677)

(cherry picked from commit 8f602981ba95273f036968cfc5ac28fdcd1808fa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-115664: Fix chronological ordering of versionadded and versionchanged direc...
Brian Schubert [Mon, 19 Feb 2024 18:18:38 +0000 (13:18 -0500)] 
[3.12] gh-115664: Fix chronological ordering of versionadded and versionchanged directives (GH-115676) (#115678)

21 months ago[3.12] gh-115341: Fix loading unit tests with doctests in -OO mode (GH-115342) (GH...
Miss Islington (bot) [Mon, 19 Feb 2024 17:49:08 +0000 (18:49 +0100)] 
[3.12] gh-115341: Fix loading unit tests with doctests in -OO mode (GH-115342) (GH-115671)

(cherry picked from commit 872cc9957a9c8b971448e7377fad865f351da6c9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] Fix test_py_compile with -O mode (GH-115345) (GH-115669)
Miss Islington (bot) [Mon, 19 Feb 2024 17:30:22 +0000 (18:30 +0100)] 
[3.12] Fix test_py_compile with -O mode (GH-115345) (GH-115669)

(cherry picked from commit 07ef9d86a5efa82d06a8e7e15dd3aff1e946aa6b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] Fix test_compile with -O mode (GH-115346) (GH-115668)
Miss Islington (bot) [Mon, 19 Feb 2024 17:17:53 +0000 (18:17 +0100)] 
[3.12] Fix test_compile with -O mode (GH-115346) (GH-115668)

(cherry picked from commit 7b25a82e83ad8fe15e4302bb7655309573affa83)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-115154: Fix untokenize handling of unicode named literals (GH-115171) ...
Miss Islington (bot) [Mon, 19 Feb 2024 16:38:43 +0000 (17:38 +0100)] 
[3.12] gh-115154: Fix untokenize handling of unicode named literals (GH-115171) (#115662)

gh-115154: Fix untokenize handling of unicode named literals (GH-115171)
(cherry picked from commit ecf16ee50e42f979624e55fa343a8522942db2e7)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
21 months ago[3.12] gh-115652: Fix indentation in the documentation of multiprocessing.get_start_m...
Miss Islington (bot) [Mon, 19 Feb 2024 15:09:21 +0000 (16:09 +0100)] 
[3.12] gh-115652: Fix indentation in the documentation of multiprocessing.get_start_method (GH-115658) (GH-115659)

(cherry picked from commit d504968983c5cd5ddbdf73ccd3693ffb89e7952f)

Co-authored-by: Daniel Haag <121057143+denialhaag@users.noreply.github.com>
21 months ago[3.12] Docs: Add explanation about little/big endian (GH-109841) (#115646)
Miss Islington (bot) [Mon, 19 Feb 2024 07:56:54 +0000 (08:56 +0100)] 
[3.12] Docs: Add explanation about little/big endian (GH-109841) (#115646)

Docs: Add explanation about little/big endian (GH-109841)
(cherry picked from commit 177b9cb52e57da4e62dd8483bcd5905990d03f9e)

Co-authored-by: Simon A. Eugster <simon.eu@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
21 months ago[3.12] gh-111358: Fix timeout behaviour in BaseEventLoop.shutdown_default_executor...
Miss Islington (bot) [Mon, 19 Feb 2024 00:17:40 +0000 (01:17 +0100)] 
[3.12] gh-111358: Fix timeout behaviour in BaseEventLoop.shutdown_default_executor (GH-115622) (#115641)

(cherry picked from commit 53d5e67804227d541ed2f9e8efea8de5d70cb1ec)

Co-authored-by: Jamie Phan <jamie@ordinarylab.dev>
21 months ago[3.12] gh-115572: Move `codeobject.replace()` docs to the data model … (#115633)
Kirill Podoprigora [Sun, 18 Feb 2024 14:38:33 +0000 (17:38 +0300)] 
[3.12] gh-115572: Move `codeobject.replace()` docs to the data model … (#115633)

* [3.12] gh-115572: Move `codeobject.replace()` docs to the data model (GH-115631)
(cherry picked from commit 0c80da4c14d904a367968955544dd6ae58c8101c)

Co-authored-by: Daler <48939169+daler-sz@users.noreply.github.com>
* Remove note about copy.replace

---------

Co-authored-by: Daler <48939169+daler-sz@users.noreply.github.com>
21 months ago[3.12] gh-108303: Move `Lib/test/sortperf.py` to `Tools/scripts` (GH-114687) (#115625)
Miss Islington (bot) [Sun, 18 Feb 2024 07:46:23 +0000 (08:46 +0100)] 
[3.12] gh-108303: Move `Lib/test/sortperf.py` to `Tools/scripts` (GH-114687) (#115625)

gh-108303: Move `Lib/test/sortperf.py` to `Tools/scripts` (GH-114687)
(cherry picked from commit f9154f8f237e31e7c30f8698f980bee5e494f1e0)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-115618: Remove improper Py_XDECREFs in property methods (GH-115619) (GH...
Serhiy Storchaka [Sat, 17 Feb 2024 21:43:59 +0000 (23:43 +0200)] 
[3.12] gh-115618: Remove improper Py_XDECREFs in property methods (GH-115619) (GH-115620)

(cherry picked from commit 090dd21ab9379d6a2a6923d6cbab697355fb7165)

21 months ago[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.2.rst` (GH-115580) (#115589)
Miss Islington (bot) [Sat, 17 Feb 2024 21:18:30 +0000 (22:18 +0100)] 
[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.2.rst` (GH-115580) (#115589)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
21 months ago[3.12] gh-115596: Fix ProgramPriorityTests in test_os permanently changing the proces...
Miss Islington (bot) [Sat, 17 Feb 2024 17:14:26 +0000 (18:14 +0100)] 
[3.12] gh-115596: Fix ProgramPriorityTests in test_os permanently changing the process priority (GH-115610) (GH-115616)

(cherry picked from commit 90dd653a6122a6c5b4b1fe5abe773c4751e5ca25)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
21 months ago[3.12] Fix ProgramPriorityTests on FreeBSD with high nice value (GH-100145) (GH-115614)
Miss Islington (bot) [Sat, 17 Feb 2024 15:35:34 +0000 (16:35 +0100)] 
[3.12] Fix ProgramPriorityTests on FreeBSD with high nice value (GH-100145) (GH-115614)

It expects priority to be capped with 19, which is the cap for Linux,
but for FreeBSD the cap is 20 and the test fails under the similar
conditions. Tweak the condition to cover FreeBSD as well.
(cherry picked from commit 437924465de5cb81988d1e580797b07090c26a28)

Co-authored-by: Dmitry Marakasov <amdmi3@amdmi3.ru>
21 months ago[3.12] gh-107155: Fix help() for lambda function with return annotation (GH-115612)
Kirill Podoprigora [Sat, 17 Feb 2024 15:14:41 +0000 (18:14 +0300)] 
[3.12] gh-107155: Fix help() for lambda function with return annotation (GH-115612)

(cherry picked from commit b9a9e3dd62326b726ad2e8e8efd87ca6327b4019)

21 months ago[3.12] gh-115567: Catch test_ctypes.test_callbacks.test_i38748_stackCorruption stdout...
Miss Islington (bot) [Sat, 17 Feb 2024 14:41:46 +0000 (15:41 +0100)] 
[3.12] gh-115567: Catch test_ctypes.test_callbacks.test_i38748_stackCorruption stdout output (GH-115568) (GH-115609)

(cherry picked from commit 265548a4eaaebc3fb379f85f2a919848927f09e5)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
21 months ago[3.12] Document use of ANY in test assertions (GH-94060) (GH-115607)
Miss Islington (bot) [Sat, 17 Feb 2024 13:24:20 +0000 (14:24 +0100)] 
[3.12] Document use of ANY in test assertions (GH-94060) (GH-115607)

(cherry picked from commit 04005f5021a17b191dae319faaadf1c942af3fe9)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
21 months ago[3.12] gh-101699: Explain using Match.expand with \g<0> (GH-101701) (GH-115583)
Miss Islington (bot) [Sat, 17 Feb 2024 13:04:09 +0000 (14:04 +0100)] 
[3.12] gh-101699: Explain using Match.expand with \g<0> (GH-101701) (GH-115583)

Update documentation for re library to explain that a backreference `\g<0>` is
expanded to the entire string when using Match.expand().
Note that numeric backreferences to group 0 (`\0`) are not supported.

(cherry picked from commit d2d78088530433f475d9304104bbc0dac2536edd)

Co-authored-by: Stevoisiak <S.Vascellaro@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-101384: Add socket timeout to ThreadedVSOCKSocketStreamTest and skip it...
Miss Islington (bot) [Sat, 17 Feb 2024 13:03:04 +0000 (14:03 +0100)] 
[3.12] gh-101384: Add socket timeout to ThreadedVSOCKSocketStreamTest and skip it on WSL (GH-101419) (GH-115585)

(cherry picked from commit 9fd420f53d1b1087d2ae648b0efc44107d27d867)

Co-authored-by: Peter Jiping Xie <peter.jp.xie@gmail.com>
21 months ago[3.12] gh-100985: Consistently wrap IPv6 IP address during CONNECT (GH-100986) (GH...
Miss Islington (bot) [Sat, 17 Feb 2024 13:01:48 +0000 (14:01 +0100)] 
[3.12] gh-100985: Consistently wrap IPv6 IP address during CONNECT (GH-100986) (GH-115591)

Update _get_hostport to always remove square brackets
from IPv6 addresses. Then add them if needed
in "CONNECT .." and "Host: ".
(cherry picked from commit 465db27cb983084e718a1fd9519b2726c96935cb)

Co-authored-by: Derek Higgins <derekh@redhat.com>
21 months ago[3.12] gh-100884: email/_header_value_parser: don't encode list separators (GH-100885...
Miss Islington (bot) [Sat, 17 Feb 2024 13:00:39 +0000 (14:00 +0100)] 
[3.12] gh-100884: email/_header_value_parser: don't encode list separators (GH-100885) (GH-115592)

ListSeparator should not be encoded. This could happen when a long line
pushes its separator to the next line, which would have been encoded.
(cherry picked from commit 09fab93c3d857496c0bd162797fab816c311ee48)

Co-authored-by: Thomas Weißschuh <thomas@t-8ch.de>
21 months ago[3.12] gh-87688: Amend SSLContext.hostname_checks_common_name docs (GH-100517) (GH...
Miss Islington (bot) [Sat, 17 Feb 2024 12:59:59 +0000 (13:59 +0100)] 
[3.12] gh-87688: Amend SSLContext.hostname_checks_common_name docs (GH-100517) (GH-115594)

(cherry picked from commit debb1386be024181c8c003c5cbf61608024aee09)

Co-authored-by: Rami <72725910+ramikg@users.noreply.github.com>
21 months ago[3.12] gh-56499: Update the pickle library's note section for the __setstate__ functi...
Miss Islington (bot) [Sat, 17 Feb 2024 12:57:22 +0000 (13:57 +0100)] 
[3.12] gh-56499: Update the pickle library's note section for the __setstate__ function (GH-101062) (GH-115597)

(cherry picked from commit d5a30a1777f04523c7b151b894e999f5714d8e96)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
21 months ago[3.12] gh-95782: Fix io.BufferedReader.tell() etc. being able to return offsets ...
Miss Islington (bot) [Sat, 17 Feb 2024 12:56:00 +0000 (13:56 +0100)] 
[3.12] gh-95782: Fix io.BufferedReader.tell() etc. being able to return offsets < 0 (GH-99709) (GH-115599)

lseek() always returns 0 for character pseudo-devices like
`/dev/urandom` (for other non-regular files, e.g. `/dev/stdin`, it
always returns -1, to which CPython reacts by raising appropriate
exceptions). They are thus technically seekable despite not having seek
semantics.

When calling read() on e.g. an instance of `io.BufferedReader` that
wraps such a file, `BufferedReader` reads ahead, filling its buffer,
creating a discrepancy between the number of bytes read and the internal
`tell()` always returning 0, which previously resulted in e.g.
`BufferedReader.tell()` or `BufferedReader.seek()` being able to return
positions < 0 even though these are supposed to be always >= 0.

Invariably keep the return value non-negative by returning
max(former_return_value, 0) instead, and add some corresponding tests.
(cherry picked from commit 26800cf25a0970d46934fa9a881c0ef6881d642b)

Co-authored-by: 6t8k <58048945+6t8k@users.noreply.github.com>
21 months ago[3.12] gh-97590: Update docs and tests for ftplib.FTP.voidcmd() (GH-96825) (GH-115601)
Miss Islington (bot) [Sat, 17 Feb 2024 12:54:50 +0000 (13:54 +0100)] 
[3.12] gh-97590: Update docs and tests for ftplib.FTP.voidcmd() (GH-96825) (GH-115601)

Since 2f3941d743481ac48628b8b2c075f2b82762050b this function returns the
response string, rather than nothing.
(cherry picked from commit e88ebc1c4028cf2f0db43659e513440257eaec01)

Co-authored-by: Matthew Hughes <34972397+matthewhughes934@users.noreply.github.com>
21 months ago[3.12] gh-96497: Mangle name before symtable lookup in 'symtable_extend_namedexpr_sco...
Miss Islington (bot) [Sat, 17 Feb 2024 12:49:39 +0000 (13:49 +0100)] 
[3.12] gh-96497: Mangle name before symtable lookup in 'symtable_extend_namedexpr_scope' (GH-96561) (GH-115603)

(cherry picked from commit 664965a1c141e8af5eb465d29099781a6a2fc3f3)

Co-authored-by: wookie184 <wookie1840@gmail.com>
21 months ago[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.1.rst` (GH-115575) (#115587)
Miss Islington (bot) [Sat, 17 Feb 2024 09:47:46 +0000 (10:47 +0100)] 
[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.1.rst` (GH-115575) (#115587)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.12] docs: Add glossary term references to shutil docs (GH-115559) (#115578)
Miss Islington (bot) [Fri, 16 Feb 2024 22:12:49 +0000 (23:12 +0100)] 
[3.12] docs: Add glossary term references to shutil docs (GH-115559) (#115578)

docs: Add glossary term references to shutil docs (GH-115559)

Add glossary term references to shutil docs
(cherry picked from commit 318f2190bc93796008b0a4241243b0851b418436)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
21 months ago[3.12] gh-115570: Fix DeprecationWarnings in test_typing (#115571) (#115574)
Jelle Zijlstra [Fri, 16 Feb 2024 21:46:48 +0000 (13:46 -0800)] 
[3.12] gh-115570: Fix DeprecationWarnings in test_typing (#115571) (#115574)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
21 months ago[3.12] gh-100734: What's New in 3.x: Add missing detail from 3.x branch (GH-114689...
Miss Islington (bot) [Thu, 15 Feb 2024 15:44:47 +0000 (16:44 +0100)] 
[3.12] gh-100734: What's New in 3.x: Add missing detail from 3.x branch (GH-114689) (#115526)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.12] gh-108303: Move all `pydoc` related files to `test_pydoc` (GH-114506) (#115502)
Nikita Sobolev [Thu, 15 Feb 2024 13:35:56 +0000 (16:35 +0300)] 
[3.12] gh-108303: Move all `pydoc` related files to `test_pydoc` (GH-114506) (#115502)

(cherry picked from commit ccc76c3e88647e416184bb1f5210b4e8946ae358)

21 months ago[3.12] GH-113516: don't set `LDSHARED` when building for WASI (GH-115495) (GH-115496)
Brett Cannon [Thu, 15 Feb 2024 01:19:42 +0000 (17:19 -0800)] 
[3.12] GH-113516: don't set `LDSHARED` when building for WASI (GH-115495) (GH-115496)

21 months ago[3.12] gh-115399: Upgrade bundled libexpat to 2.6.0 (GH-115431) (#115469)
Miss Islington (bot) [Wed, 14 Feb 2024 22:14:34 +0000 (23:14 +0100)] 
[3.12] gh-115399: Upgrade bundled libexpat to 2.6.0 (GH-115431) (#115469)

gh-115399: Upgrade bundled libexpat to 2.6.0 (GH-115431)
(cherry picked from commit 4b2d1786ccf913bc80ff571c32b196be1543ca54)

Co-authored-by: Seth Michael Larson <seth@python.org>
21 months ago[3.12] gh-112302: Move pip SBOM discovery to release-tools (GH-115360) (#115486)
Miss Islington (bot) [Wed, 14 Feb 2024 20:43:03 +0000 (21:43 +0100)] 
[3.12] gh-112302: Move pip SBOM discovery to release-tools (GH-115360) (#115486)

Co-authored-by: Seth Michael Larson <seth@python.org>
21 months ago[3.12] gh-112087: Fix reduce logic for the empty reverse iterator for list (gh-115471)
Donghee Na [Wed, 14 Feb 2024 18:44:26 +0000 (03:44 +0900)] 
[3.12] gh-112087: Fix reduce logic for the empty reverse iterator for list (gh-115471)

21 months ago[3.12] Docs: spell out sentence about ndbm/gdbm file formats (GH-115470) (#115476)
Miss Islington (bot) [Wed, 14 Feb 2024 18:11:43 +0000 (19:11 +0100)] 
[3.12] Docs: spell out sentence about ndbm/gdbm file formats (GH-115470) (#115476)

(cherry picked from commit 49e8fdc1df41b6547fb3255f9e3a44dfb3b81fe0)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.12] gh-115243: Fix crash in deque.index() when the deque is concurrently modified...
Miss Islington (bot) [Wed, 14 Feb 2024 17:17:58 +0000 (18:17 +0100)] 
[3.12] gh-115243: Fix crash in deque.index() when the deque is concurrently modified (GH-115247) (GH-115465)

(cherry picked from commit 671360161f0b7a5ff4c1d062e570962e851b4bde)

Co-authored-by: kcatss <kcats9731@gmail.com>
21 months ago[3.12] gh-115392: Fix doctest reporting incorrect line numbers for decorated function...
Miss Islington (bot) [Wed, 14 Feb 2024 15:58:14 +0000 (16:58 +0100)] 
[3.12] gh-115392: Fix doctest reporting incorrect line numbers for decorated functions (GH-115440) (#115459)

gh-115392: Fix doctest reporting incorrect line numbers for decorated functions (GH-115440)
(cherry picked from commit bb791c7728e0508ad5df28a90b27e202d66a9cfa)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
21 months ago[3.12] Docs: reword sentences about dbm submodule traits (GH-114609) (#115462)
Miss Islington (bot) [Wed, 14 Feb 2024 15:55:48 +0000 (16:55 +0100)] 
[3.12] Docs: reword sentences about dbm submodule traits (GH-114609) (#115462)

Don't repeatedly say that keys and values are coerced into bytes.
(cherry picked from commit 81e140d10b77f0a41a5581412e3f3471cc77981f)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.12] gh-115403: Remove extra colon after "Examples" in datetime documentation ...
Miss Islington (bot) [Wed, 14 Feb 2024 14:07:55 +0000 (15:07 +0100)] 
[3.12] gh-115403: Remove extra colon after "Examples" in datetime documentation (GH-115452) (#115455)

gh-115403: Remove extra colon after "Examples" in datetime documentation (GH-115452)
(cherry picked from commit 6755c4e0c8803a246e632835030c0b8837b3b676)

Co-authored-by: Stanislav Lyu <wallseat@gmail.com>
21 months ago[3.12] gh-115450: Fix direct invocation of `test_desctut` (GH-115451) (#115453)
Miss Islington (bot) [Wed, 14 Feb 2024 13:59:47 +0000 (14:59 +0100)] 
[3.12] gh-115450: Fix direct invocation of `test_desctut` (GH-115451) (#115453)

gh-115450: Fix direct invocation of `test_desctut` (GH-115451)
(cherry picked from commit ec8909a23931338f81803ea3f18dc2073f74a152)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] ftplib docs: `timeout` doesn't have to be a whole number (GH-115443) (#115445)
Miss Islington (bot) [Wed, 14 Feb 2024 10:47:59 +0000 (11:47 +0100)] 
[3.12] ftplib docs: `timeout` doesn't have to be a whole number (GH-115443) (#115445)

ftplib docs: `timeout` doesn't have to be a whole number (GH-115443)
(cherry picked from commit 3fd2ad8241a61e75b2cd33c697af276863efbb51)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
21 months ago[3.12] gh-113437: Update documentation about PyUnicode_AsWideChar() function (GH...
Miss Islington (bot) [Wed, 14 Feb 2024 10:24:40 +0000 (11:24 +0100)] 
[3.12] gh-113437: Update documentation about PyUnicode_AsWideChar() function (GH-113455) (GH-115407)

(cherry picked from commit 5719aa23ab7f1c7a5f03309ca4044078a98e7b59)

Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com>
21 months ago[3.12] gh-115383: Use runner version to compute config.cache key (GH-115409) (#115427)
Miss Islington (bot) [Wed, 14 Feb 2024 07:21:25 +0000 (08:21 +0100)] 
[3.12] gh-115383: Use runner version to compute config.cache key (GH-115409) (#115427)

Co-authored-by: Sam Gross <colesbury@gmail.com>
21 months ago[3.12] gh-101100: Fix sphinx warnings in `c-api/gcsupport.rst` (GH-114786) (#115263)
Miss Islington (bot) [Tue, 13 Feb 2024 21:25:54 +0000 (22:25 +0100)] 
[3.12] gh-101100: Fix sphinx warnings in `c-api/gcsupport.rst` (GH-114786) (#115263)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-115405: add versionadded tag for co_qualname in code objects documentation...
Miss Islington (bot) [Tue, 13 Feb 2024 16:16:22 +0000 (17:16 +0100)] 
[3.12] gh-115405: add versionadded tag for co_qualname in code objects documentation (GH-115411) (#115412)

gh-115405: add versionadded tag for co_qualname in code objects documentation (GH-115411)
(cherry picked from commit de07941729b8899b187b8ef9690f9a74b2d6286b)

Co-authored-by: Christophe Papazian <114495376+christophe-papazian@users.noreply.github.com>
21 months ago[3.12] gh-115252: Fix test_enum with -OO mode again (GH-115334) (GH-115396)
Miss Islington (bot) [Tue, 13 Feb 2024 10:38:27 +0000 (11:38 +0100)] 
[3.12] gh-115252: Fix test_enum with -OO mode again (GH-115334) (GH-115396)

(cherry picked from commit ca3604a3e33d833ef698b44a4b82c5bc8c771fcb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] GH-112215: Backport C recursion changes (GH-115083)
Mark Shannon [Tue, 13 Feb 2024 09:45:59 +0000 (09:45 +0000)] 
[3.12] GH-112215: Backport C recursion changes (GH-115083)

21 months ago[3.12] Update "Using Python on a Mac" (GH-115024) (#115387)
Miss Islington (bot) [Tue, 13 Feb 2024 07:05:46 +0000 (08:05 +0100)] 
[3.12] Update "Using Python on a Mac" (GH-115024) (#115387)

Update "Using Python on a Mac" (GH-115024)
(cherry picked from commit 0a6e1a4119864bec0247b04a5c99fdd9799cd8eb)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.12] gh-115317: Rewrite changelog filter to use vanilla JavaScript (GH-115324)...
Miss Islington (bot) [Tue, 13 Feb 2024 05:29:31 +0000 (06:29 +0100)] 
[3.12] gh-115317: Rewrite changelog filter to use vanilla JavaScript (GH-115324) (#115372)

gh-115317: Rewrite changelog filter to use vanilla JavaScript (GH-115324)
(cherry picked from commit 341d7874f063dcb141672b09f62c19ffedd0a557)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
21 months ago[3.12] gh-114563: C decimal falls back to pydecimal for unsupported format strings...
John Belmonte [Mon, 12 Feb 2024 21:31:12 +0000 (06:31 +0900)] 
[3.12] gh-114563: C decimal falls back to pydecimal for unsupported format strings (GH-114879) (GH-115353)

Immediate merits:
* eliminate complex workarounds for 'z' format support
  (NOTE: mpdecimal recently added 'z' support, so this becomes
  efficient in the long term.)
* fix 'z' format memory leak
* fix 'z' format applied to 'F'
* fix missing '#' format support

Suggested and prototyped by Stefan Krah.

Fixes gh-114563, gh-91060

(cherry picked from commit 72340d15cdfdfa4796fdd7c702094c852c2b32d2)

Co-authored-by: John Belmonte <john@neggie.net>
Co-authored-by: Stefan Krah <skrah@bytereef.org>
21 months ago[3.12] gh-115285: Fix `test_dataclasses` with `-OO` mode (GH-115286) (#115359)
Miss Islington (bot) [Mon, 12 Feb 2024 20:27:48 +0000 (21:27 +0100)] 
[3.12] gh-115285: Fix `test_dataclasses` with `-OO` mode (GH-115286) (#115359)

gh-115285: Fix `test_dataclasses` with `-OO` mode (GH-115286)
(cherry picked from commit 4297d7301b97aba2e0df9f9cc5fa4010e53a8950)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] Remove stray backtick in NEWS entry (GH-115356) (#115364)
Miss Islington (bot) [Mon, 12 Feb 2024 19:30:30 +0000 (20:30 +0100)] 
[3.12] Remove stray backtick in NEWS entry (GH-115356) (#115364)

Remove stray backtick in NEWS entry (GH-115356)
(cherry picked from commit a82fbc13d0e352b9af7d7ffbef4bc04cf635f07f)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
21 months ago[3.12] gh-115233: Fix an example in the Logging Cookbook (GH-115325) (GH-115355)
Serhiy Storchaka [Mon, 12 Feb 2024 18:29:48 +0000 (20:29 +0200)] 
[3.12] gh-115233: Fix an example in the Logging Cookbook (GH-115325) (GH-115355)

Also add more tests for LoggerAdapter.

Also support stacklevel in LoggerAdapter._log().
(cherry picked from commit 91822018eeba12a6c9eabbc748363b2fd4291b30)

21 months agogh-115049: Fix py.exe failing when user has no LocalAppData. (GH-115185)
Miss Islington (bot) [Mon, 12 Feb 2024 18:18:45 +0000 (19:18 +0100)] 
gh-115049: Fix py.exe failing when user has no LocalAppData. (GH-115185)

Also ensure we always display a debug message or error for RC_INTERNAL_ERROR
(cherry picked from commit c39272e143b346bd6a3c04ca4fbf299163888277)

Co-authored-by: Steve Dower <steve.dower@python.org>
21 months ago[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/2.7.rst` and related (GH-115319...
Hugo van Kemenade [Mon, 12 Feb 2024 14:37:20 +0000 (16:37 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/2.7.rst` and related (GH-115319) (#115330)

21 months ago[3.12] Add missing sections to blurbs (GH-114553) (#115336)
Miss Islington (bot) [Mon, 12 Feb 2024 14:22:48 +0000 (15:22 +0100)] 
[3.12] Add missing sections to blurbs (GH-114553) (#115336)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.12] gh-101100: Clean up Doc/c-api/exceptions.rst and Doc/c-api/sys.rst (GH-114825...
Miss Islington (bot) [Sun, 11 Feb 2024 19:02:21 +0000 (20:02 +0100)] 
[3.12] gh-101100: Clean up Doc/c-api/exceptions.rst and Doc/c-api/sys.rst (GH-114825) (GH-115308)

(cherry picked from commit e1552fd19de17e7a6daa3c2a6d1ca207bb8eaf8e)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
21 months ago[3.12] gh-101100: Fix dangling refs in bdb.rst (#114983) (#115297)
Skip Montanaro [Sun, 11 Feb 2024 18:32:37 +0000 (12:32 -0600)] 
[3.12] gh-101100: Fix dangling refs in bdb.rst (#114983) (#115297)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Fix dangling refs in bdb.rst (#114983)

21 months ago[3.12] gh-97959: Fix rendering of routines in pydoc (GH-113941) (GH-115296)
Serhiy Storchaka [Sun, 11 Feb 2024 13:56:34 +0000 (15:56 +0200)] 
[3.12] gh-97959: Fix rendering of routines in pydoc (GH-113941) (GH-115296)

* Class methods no longer have "method of builtins.type instance" note.
* Corresponding notes are now added for class and unbound methods.
* Method and function aliases now have references to the module or the
  class where the origin was defined if it differs from the current.
* Bound methods are now listed in the static methods section.
* Methods of builtin classes are now supported as well as methods of
  Python classes.
(cherry picked from commit 2939ad02be62110ffa2ac6c4d9211c85e1d1720f)

21 months ago[3.12] gh-115011: Improve support of __index__() in setters of members with unsigned...
Serhiy Storchaka [Sun, 11 Feb 2024 11:56:17 +0000 (13:56 +0200)] 
[3.12] gh-115011: Improve support of __index__() in setters of members with unsigned integer type (GH-115029) (GH-115294)

Setters for members with an unsigned integer type now support
the same range of valid values for objects that has a __index__()
method as for int.

Previously, Py_T_UINT, Py_T_ULONG and Py_T_ULLONG did not support
objects that has a __index__() method larger than LONG_MAX.

Py_T_ULLONG did not support negative ints. Now it supports them and
emits a RuntimeWarning.
(cherry picked from commit d9d6909697501a2604d5895f9f88aeec61274ab0)

21 months ago[3.12] gh-79382: Fix recursive glob() with trailing "**" (GH-115134) (GH-115290)
Miss Islington (bot) [Sun, 11 Feb 2024 10:57:40 +0000 (11:57 +0100)] 
[3.12] gh-79382: Fix recursive glob() with trailing "**" (GH-115134) (GH-115290)

Trailing "**" no longer allows to match files and non-existing paths in
recursive glob().
(cherry picked from commit aeffc7f8951e04258f0fd8cadfa6cd8b704730f6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-115172: Fix explicit index extries for the C API (GH-115173) (GH-115292)
Serhiy Storchaka [Sun, 11 Feb 2024 10:34:41 +0000 (12:34 +0200)] 
[3.12] gh-115172: Fix explicit index extries for the C API (GH-115173) (GH-115292)

(cherry picked from commit 573acb30f22a84c0f2c951efa002c9946e29b6a3)

21 months ago[3.12] gh-115133: Fix tests for XMLPullParser with Expat 2.6.0 (GH-115164) (GH-115288)
Miss Islington (bot) [Sun, 11 Feb 2024 10:34:04 +0000 (11:34 +0100)] 
[3.12] gh-115133: Fix tests for XMLPullParser with Expat 2.6.0 (GH-115164) (GH-115288)

Feeding the parser by too small chunks defers parsing to prevent
CVE-2023-52425. Future versions of Expat may be more reactive.
(cherry picked from commit 4a08e7b3431cd32a0daf22a33421cd3035343dc4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-115274: Fix direct invocation of `testmock/testpatch.py` (GH-115275) (...
Miss Islington (bot) [Sun, 11 Feb 2024 09:14:37 +0000 (10:14 +0100)] 
[3.12] gh-115274: Fix direct invocation of `testmock/testpatch.py` (GH-115275) (#115280)

gh-115274: Fix direct invocation of `testmock/testpatch.py` (GH-115275)
(cherry picked from commit f8e9c57067e32baab4ed2fd824b892c52ecb7225)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-115249: Fix `test_descr` with `-OO` mode (GH-115250) (#115277)
Miss Islington (bot) [Sun, 11 Feb 2024 08:57:49 +0000 (09:57 +0100)] 
[3.12] gh-115249: Fix `test_descr` with `-OO` mode (GH-115250) (#115277)

gh-115249: Fix `test_descr` with `-OO` mode (GH-115250)
(cherry picked from commit 1f23837277e604f41589273aeb3a10377d416510)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-115254: Fix `test_property` with `-00` mode (GH-115255) (#115261)
Miss Islington (bot) [Sun, 11 Feb 2024 07:59:37 +0000 (08:59 +0100)] 
[3.12] gh-115254: Fix `test_property` with `-00` mode (GH-115255) (#115261)

gh-115254: Fix `test_property` with `-00` mode (GH-115255)
(cherry picked from commit b70a68fbd6b72a25b5ef430603e39c9e40f40d29)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-114670: Fix `_testbuffer` module initialization (GH-114672) (#115272)
Miss Islington (bot) [Sun, 11 Feb 2024 07:53:00 +0000 (08:53 +0100)] 
[3.12] gh-114670: Fix `_testbuffer` module initialization (GH-114672) (#115272)

(cherry picked from commit 3a5b38e3b465e00f133ff8074a2d4afb1392dfb5)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-115252: Fix `test_enum` with `-OO` mode (GH-115253) (GH-115260)
Miss Islington (bot) [Sun, 11 Feb 2024 05:15:40 +0000 (06:15 +0100)] 
[3.12] gh-115252: Fix `test_enum` with `-OO` mode (GH-115253) (GH-115260)

(cherry picked from commit 33f56b743285f8419e92cfabe673fa165165a580)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-115059: Remove debugging code in test_io (GH-115240) (GH-115244)
Miss Islington (bot) [Sat, 10 Feb 2024 14:04:49 +0000 (15:04 +0100)] 
[3.12] gh-115059: Remove debugging code in test_io (GH-115240) (GH-115244)

(cherry picked from commit 597fad07f7bf709ac7084ac20aa3647995759b01)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-114552: Update `__dir__` method docs: it allows returning an iterable ...
Miss Islington (bot) [Sat, 10 Feb 2024 08:50:31 +0000 (09:50 +0100)] 
[3.12] gh-114552: Update `__dir__` method docs: it allows returning an iterable (GH-114662) (#115234)

gh-114552: Update `__dir__` method docs: it allows returning an iterable (GH-114662)
(cherry picked from commit e19103a346f0277c44a43dfaebad9a5aa468bf1e)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-115165: Fix `typing.Annotated` for immutable types (GH-115213) (#115227)
Miss Islington (bot) [Fri, 9 Feb 2024 22:31:57 +0000 (23:31 +0100)] 
[3.12] gh-115165: Fix `typing.Annotated` for immutable types (GH-115213) (#115227)

gh-115165: Fix `typing.Annotated` for immutable types (GH-115213)

The return value from an annotated callable can raise any exception from
__setattr__ for the `__orig_class__` property.
(cherry picked from commit 564385612cdf72c2fa8e629a68225fb2cd3b3d99)

Co-authored-by: dave-shawley <daveshawley@gmail.com>