]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
16 months ago[3.12] gh-120868: Fix breaking change in `logging.config` when using `QueueHandler...
Miss Islington (bot) [Fri, 28 Jun 2024 16:10:53 +0000 (18:10 +0200)] 
[3.12] gh-120868: Fix breaking change in `logging.config` when using `QueueHandler` (GH-120872) (GH-121077)

(cherry picked from commit 7d9c68513d112823a9a6cdc7453b998b2c24eb4c)

16 months ago[3.12] gh-121018: Fix more cases of exiting in argparse when exit_on_error=False...
Serhiy Storchaka [Fri, 28 Jun 2024 14:52:07 +0000 (17:52 +0300)] 
[3.12] gh-121018: Fix more cases of exiting in argparse when exit_on_error=False (GH-121056) (GH-121129)

* parse_intermixed_args() now raises ArgumentError instead of calling
  error() if exit_on_error is false.
* Internal code now always raises ArgumentError instead of calling
  error(). It is then caught at the higher level and error() is called if
  exit_on_error is true.
(cherry picked from commit 81a654a3425eaa05a51342509089533c1f623f1b)

16 months ago[3.12] gh-121096: Ignore dlopen() leaks in Valgrind suppression file (GH-121097)...
Miss Islington (bot) [Fri, 28 Jun 2024 11:17:30 +0000 (13:17 +0200)] 
[3.12] gh-121096: Ignore dlopen() leaks in Valgrind suppression file (GH-121097) (#121123)

gh-121096: Ignore dlopen() leaks in Valgrind suppression file (GH-121097)
(cherry picked from commit 6e63d84e43fdce3a5bdb899b024cf947d4e48900)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.12] gh-105623 Fix performance degradation in logging RotatingFileHandler (GH-10588...
Miss Islington (bot) [Fri, 28 Jun 2024 09:09:38 +0000 (11:09 +0200)] 
[3.12] gh-105623 Fix performance degradation in logging RotatingFileHandler (GH-105887) (GH-121116)

The check for whether the log file is a real file is expensive on NFS
filesystems.  This commit reorders the rollover condition checking to
not do the file type check if the expected file size is less than the
rotation threshold.

(cherry picked from commit e9b4ec614b66d11623b80471409c16a109f888d5)

Co-authored-by: Craig Robson <craig@zhatt.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
16 months ago[3.12] gh-121035: Update logging flow chart to include the lastResort handler. (GH...
Miss Islington (bot) [Thu, 27 Jun 2024 22:20:36 +0000 (00:20 +0200)] 
[3.12] gh-121035: Update logging flow chart to include the lastResort handler. (GH-121036) (GH-121105)

(cherry picked from commit 237baf4d7a789deb153fbc1fc3863550949d5da2)

16 months ago[3.12] gh-120937: Reference weakref from the `__del__` documentation (GH-120940)...
Miss Islington (bot) [Wed, 26 Jun 2024 20:14:30 +0000 (22:14 +0200)] 
[3.12] gh-120937: Reference weakref from the `__del__` documentation (GH-120940) (#121062)

gh-120937: Reference weakref from the `__del__` documentation (GH-120940)
(cherry picked from commit 1c13b29d54ad6d7c9e030227d575ad7d21b4054f)

Co-authored-by: chaen <christophe.haen@cern.ch>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
16 months ago[3.12] gh-121018: Ensure ArgumentParser.parse_args with exit_on_error=False raises...
Miss Islington (bot) [Wed, 26 Jun 2024 10:16:44 +0000 (12:16 +0200)] 
[3.12] gh-121018: Ensure ArgumentParser.parse_args with exit_on_error=False raises instead of exiting when given unrecognized arguments (GH-121019) (GH-121031)

(cherry picked from commit 0654336dd5138aec04e3017e15ccbb90a44e053d)

Co-authored-by: blhsing <blhsing@gmail.com>
16 months ago[3.12] gh-120380: fix Python implementation of `pickle.Pickler` for `bytes` and ...
Miss Islington (bot) [Wed, 26 Jun 2024 10:12:04 +0000 (12:12 +0200)] 
[3.12] gh-120380: fix Python implementation of `pickle.Pickler` for `bytes` and `bytearray` objects in protocol version 5. (GH-120422) (GH-120833)

gh-120380: fix Python implementation of `pickle.Pickler` for `bytes` and `bytearray` objects in protocol version 5. (GH-120422)
(cherry picked from commit 7595e6743ac78ac0dd19418176f66d251668fafc)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.12] gh-121025: Improve partialmethod.__repr__ (GH-121033) (GH-121038)
Miss Islington (bot) [Wed, 26 Jun 2024 09:29:59 +0000 (11:29 +0200)] 
[3.12] gh-121025: Improve partialmethod.__repr__ (GH-121033) (GH-121038)

It no longer contains redundant commas and spaces.
(cherry picked from commit d2646e3f45e3e4e831ee2ae84d55b161a361d592)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.12] gh-120155: Fix Coverity issue in parse_string() (GH-120997) (#121006)
Miss Islington (bot) [Tue, 25 Jun 2024 17:40:08 +0000 (19:40 +0200)] 
[3.12] gh-120155: Fix Coverity issue in parse_string() (GH-120997) (#121006)

gh-120155: Fix Coverity issue in parse_string() (GH-120997)
(cherry picked from commit 769aea332940f03c3e5b1ad9badd6635c1ac992a)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.12] gh-114053: Fix another edge case involving `get_type_hints`, PEP 695 and PEP...
Miss Islington (bot) [Tue, 25 Jun 2024 16:31:01 +0000 (18:31 +0200)] 
[3.12] gh-114053: Fix another edge case involving `get_type_hints`, PEP 695 and PEP 563 (GH-120272) (#121004)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.12] Doc/README: Document 'make htmllive' (GH-120692) (#120991)
Miss Islington (bot) [Tue, 25 Jun 2024 09:15:11 +0000 (11:15 +0200)] 
[3.12] Doc/README: Document 'make htmllive' (GH-120692) (#120991)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
16 months ago[3.12] gh-120661: improve example for basic type hints (GH-120934) (#120988)
Miss Islington (bot) [Tue, 25 Jun 2024 08:25:11 +0000 (10:25 +0200)] 
[3.12] gh-120661: improve example for basic type hints (GH-120934) (#120988)

gh-120661: improve example for basic type hints (GH-120934)
(cherry picked from commit bb057ea1075e000ff3f0d6b27a2b7ca4117b4969)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.12] gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (GH-120822) (#120986)
Miss Islington (bot) [Tue, 25 Jun 2024 08:11:22 +0000 (10:11 +0200)] 
[3.12] gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (GH-120822) (#120986)

gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (GH-120822)

Add missing space in AS_VAR_APPEND() on CFLAGS.
(cherry picked from commit 2106c9bef0c18ff35db7d6c083cb8f189507758e)

Co-authored-by: Michael Allwright <allsey87@gmail.com>
16 months ago[3.12] GH-119054: Add "Permissions and ownership" section to pathlib docs. (GH-120505...
Barney Gale [Mon, 24 Jun 2024 19:32:24 +0000 (20:32 +0100)] 
[3.12] GH-119054: Add "Permissions and ownership" section to pathlib docs. (GH-120505) (#120968)

Add dedicated subsection for `pathlib.owner()`, `group()`, `chmod()` and
`lchmod()`.

(cherry picked from commit e4a97a7fb1c03d3b6ec6efbeff553a0230e003c7)

16 months ago[3.12] gh-120373: Mark test_audit.test_http as requiring the network resource (GH...
Miss Islington (bot) [Mon, 24 Jun 2024 13:37:51 +0000 (15:37 +0200)] 
[3.12] gh-120373: Mark test_audit.test_http as requiring the network resource (GH-120374) (#120949)

gh-120373: Mark test_audit.test_http as requiring the network resource (GH-120374)
(cherry picked from commit b0e1c51882e3a129d1e4db8291f7a0d869d6f1d6)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
16 months ago[3.12] gh-119614: Fix truncation of strings with embedded null characters in Tkinter...
Miss Islington (bot) [Mon, 24 Jun 2024 09:39:56 +0000 (11:39 +0200)] 
[3.12] gh-119614: Fix truncation of strings with embedded null characters in Tkinter (GH-120909) (GH-120939)

Now the null character is always represented as \xc0\x80 for
Tcl_NewStringObj().
(cherry picked from commit c38e2f64d012929168dfef7363c9e48bd1a6c731)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.12] gh-112169: Documented getaddrinfo/getnameinfo default loop executor usage...
Miss Islington (bot) [Mon, 24 Jun 2024 08:45:46 +0000 (10:45 +0200)] 
[3.12] gh-112169: Documented getaddrinfo/getnameinfo default loop executor usage and implications. (GH-112191) (#120936)

gh-112169: Documented getaddrinfo/getnameinfo default loop executor usage and implications. (GH-112191)
(cherry picked from commit fc297b4ba4c61febeb2d8f5d718f2955c6bbea0a)

Co-authored-by: Alek Kowalczyk <alek.kowalczyk@gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
16 months ago[3.12] gh-119824: Revert the where solution and use meta commands (#120928)
Tian Gao [Sun, 23 Jun 2024 21:58:10 +0000 (14:58 -0700)] 
[3.12] gh-119824: Revert the where solution and use meta commands (#120928)

16 months ago[3.12] Docs makefile/RTD: Use uv if installed (GH-120711) (#120923)
Hugo van Kemenade [Sun, 23 Jun 2024 19:47:59 +0000 (13:47 -0600)] 
[3.12] Docs makefile/RTD: Use uv if installed (GH-120711) (#120923)

16 months ago[3.12] gh-120910: Fix issue resolving relative paths outside site-packages. (GH-12091...
Jason R. Coombs [Sun, 23 Jun 2024 17:30:18 +0000 (13:30 -0400)] 
[3.12] gh-120910: Fix issue resolving relative paths outside site-packages. (GH-120911) (#120918)

Incorporates changes from importlib_metadata 7.2.1.
(cherry picked from commit 1ba0bb21ed4eb54023fdfccc9cb20be8fff946b1)

16 months ago[3.12] Typing docs: normalize some indents in code examples (GH-120912) (#120916)
Miss Islington (bot) [Sun, 23 Jun 2024 16:23:01 +0000 (18:23 +0200)] 
[3.12] Typing docs: normalize some indents in code examples (GH-120912) (#120916)

Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>
16 months ago[3.12] gh-101830: Fix Tcl_Obj to string conversion (GH-120884) (GH-120913)
Serhiy Storchaka [Sun, 23 Jun 2024 16:02:43 +0000 (19:02 +0300)] 
[3.12] gh-101830: Fix Tcl_Obj to string conversion (GH-120884) (GH-120913)

Accessing the Tkinter object's string representation no longer converts
the underlying Tcl object to a string on Windows.
(cherry picked from commit f4ddaa396715855ffbd94590f89ab7d55feeec07)

16 months ago[3.12] gh-119960: Add information about regex flags in re module functions (GH-119978...
Bénédikt Tran [Sun, 23 Jun 2024 16:02:24 +0000 (18:02 +0200)] 
[3.12] gh-119960: Add information about regex flags in re module functions (GH-119978) (#120908)

gh-119960: Add information about regex flags in re module functions (#119978)

(cherry picked from commit a86e6255c371e14cab8680dee979a7393b339ce5)

Co-authored-by: Awbert <119314310+SweetyAngel@users.noreply.github.com>
16 months ago[3.12] gh-120896: Fix typo in version changed note of `urllib.parse.urlparse()` ...
Miss Islington (bot) [Sun, 23 Jun 2024 12:40:11 +0000 (14:40 +0200)] 
[3.12] gh-120896: Fix typo in version changed note of `urllib.parse.urlparse()` (GH-120898) (#120903)

gh-120896: Fix typo in version changed note of `urllib.parse.urlparse()` (GH-120898)
(cherry picked from commit b6fa8fe86a6f4d02c263682716a91285a94024fc)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
16 months ago[3.12] gh-119003: Clarify slice assignments (GH-119935) (#120848)
Miss Islington (bot) [Sun, 23 Jun 2024 12:34:25 +0000 (14:34 +0200)] 
[3.12] gh-119003: Clarify slice assignments (GH-119935) (#120848)

gh-119003: Clarify slice assignments (GH-119935)
(cherry picked from commit 462832041e342f8aaf8c88ec44f7b14c70042575)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
16 months ago[3.12] Amend categories of @nineteendo's news entries (GH-120735) (#120736)
Nice Zombies [Sat, 22 Jun 2024 20:05:37 +0000 (22:05 +0200)] 
[3.12] Amend categories of @nineteendo's news entries (GH-120735) (#120736)

16 months ago[3.12] gh-120873: Add tests for new widget options in Tk 8.7 (GH-120877) (GH-120880)
Miss Islington (bot) [Sat, 22 Jun 2024 13:38:08 +0000 (15:38 +0200)] 
[3.12] gh-120873: Add tests for new widget options in Tk 8.7 (GH-120877) (GH-120880)

(cherry picked from commit a046c848c1df0cf98092e9696594d3fb836e3530)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.12] gh-120873: Add test for "state" option in ttk.Scale (GH-120874) (GH-120876)
Miss Islington (bot) [Sat, 22 Jun 2024 11:39:33 +0000 (13:39 +0200)] 
[3.12] gh-120873: Add test for "state" option in ttk.Scale (GH-120874) (GH-120876)

Also refactor the "state" option tests for other ttk widgets.
(cherry picked from commit 974a978631bfbfa6f617e927d5eaa82b06694ae5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.12] gh-120811: Fix reference leak upon `_PyContext_Exit` failure (GH-120812) ...
Miss Islington (bot) [Sat, 22 Jun 2024 11:14:31 +0000 (13:14 +0200)] 
[3.12] gh-120811: Fix reference leak upon `_PyContext_Exit` failure (GH-120812) (#120844)

gh-120811: Fix reference leak upon `_PyContext_Exit` failure (GH-120812)
(cherry picked from commit aed31beca9a54b85a1392631a48da80602210f18)

Co-authored-by: Peter <zintensitydev@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
16 months ago[3.12] gh-104855: Update Tkinter tests for Tcl/Tk 8.7 and 9.0 (GH-120824) (GH-120865)
Miss Islington (bot) [Sat, 22 Jun 2024 07:10:04 +0000 (09:10 +0200)] 
[3.12] gh-104855: Update Tkinter tests for Tcl/Tk 8.7 and 9.0 (GH-120824) (GH-120865)

The tests are now passed with the current version of Tcl/Tk under
development (8.7b1+ and 9.0b3+).

The following changes were also made to make the tests more flexible:

* Helper methods like checkParam() now interpret the expected error message
  as a regular expression instead of a literal.
* Add support of new arguments in checkEnumParam():
  - allow_empty=True skips testing with empty string;
  - fullname= specifies the name for error message if it differs from the
    option name;
  - sort=True sorts values for error message.
* Add support of the allow_empty argument in checkReliefParam():
  allow_empty=True adds an empty string to the list of accepted values.
* Attributes _clip_highlightthickness, _clip_pad and  _clip_borderwidth
  specify how negative values of options -highlightthickness, -padx, -pady
  and -borderwidth are handled.
* Use global variables for some common error messages.

(cherry picked from commit 6ad26de6e8ab61b035e7ecfff9791c2b349c3ad0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
16 months ago[3.12] gh-120838: Add a Note in the Docs About Expectations for Py_Finalize() (gh...
Miss Islington (bot) [Fri, 21 Jun 2024 19:12:08 +0000 (21:12 +0200)] 
[3.12] gh-120838: Add a Note in the Docs About Expectations for Py_Finalize() (gh-120853)

(cherry picked from commit 03fa2df92707b543c304a426732214002f81d671, AKA gh-120839)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
16 months ago[3.12] gh-120773: document introspective attributes of an async generator object...
Miss Islington (bot) [Fri, 21 Jun 2024 11:28:58 +0000 (13:28 +0200)] 
[3.12] gh-120773: document introspective attributes of an async generator object in the inspect module (GH-120778) (#120828)

gh-120773: document introspective attributes of an async generator object in the inspect module (GH-120778)
(cherry picked from commit 83d3d7aace32b8536f552f78dd29610344f13160)

Co-authored-by: blhsing <blhsing@gmail.com>
16 months ago[3.12] gh-120384: Fix array-out-of-bounds crash in `list_ass_subscript` (GH-120442...
Miss Islington (bot) [Fri, 21 Jun 2024 11:08:22 +0000 (13:08 +0200)] 
[3.12] gh-120384: Fix array-out-of-bounds crash in `list_ass_subscript` (GH-120442) (#120825)

gh-120384: Fix array-out-of-bounds crash in `list_ass_subscript` (GH-120442)
(cherry picked from commit 8334a1b55c93068f5d243852029baa83377ff6c9)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.12] gh-111259: Document idiomatic RE pattern (?s:.) that matches any character...
Miss Islington (bot) [Thu, 20 Jun 2024 21:10:35 +0000 (23:10 +0200)] 
[3.12] gh-111259: Document idiomatic RE pattern (?s:.) that matches any character (GH-120745) (GH-120814)

(cherry picked from commit a2f6f7dd26128b834c6e66fe1ceac3ac751143f5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.12] gh-119698: fix `symtable.Class.get_methods` and document its behaviour correct...
Jelle Zijlstra [Thu, 20 Jun 2024 05:12:31 +0000 (22:12 -0700)] 
[3.12] gh-119698: fix `symtable.Class.get_methods` and document its behaviour correctly (#120151) (#120776)

(cherry picked from commit b8a8e04fec76ad7f7c3e5149114dd2ee8a5caecc)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.12] Fix typos in comments (GH-120481) (#120775)
Terry Jan Reedy [Thu, 20 Jun 2024 03:59:31 +0000 (23:59 -0400)] 
[3.12] Fix typos in comments (GH-120481) (#120775)

Only 1 applicable change backported to 3.12.

(cherry picked from commit 656a1c8)

Co-authored-by: Xie Yanbo xieyanbo@gmail.com
16 months ago[3.12] gh-118820: Zero-valued flag enum has no name (GH-118848) (GH120758)
Miss Islington (bot) [Wed, 19 Jun 2024 22:11:58 +0000 (00:11 +0200)] 
[3.12] gh-118820: Zero-valued flag enum has no name (GH-118848) (GH120758)

gh-118820: Zero-valued flag enum has no name (GH-118848)
(cherry picked from commit ed5ae6c4d76feaff06c2104c8ff864553b000253)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.12] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec...
Miss Islington (bot) [Wed, 19 Jun 2024 20:53:19 +0000 (22:53 +0200)] 
[3.12] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737) (#120761)

gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737)
(cherry picked from commit 1e4815692f6c8a37a3974d0d7d2025494d026d76)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-120753) (#120756)
Miss Islington (bot) [Wed, 19 Jun 2024 20:01:25 +0000 (22:01 +0200)] 
[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-120753) (#120756)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
16 months ago[3.12] gh-120521: clarify except* documentation to allow tuples (GH-120523) (#120751)
Miss Islington (bot) [Wed, 19 Jun 2024 19:06:52 +0000 (21:06 +0200)] 
[3.12] gh-120521: clarify except* documentation to allow tuples (GH-120523) (#120751)

(cherry picked from commit 58b3f111767148e9011ccd52660e208f0c834b2a)

Co-authored-by: Danny Yang <yangdanny97@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
16 months ago[3.12] gh-120722: Set position on RETURN_VALUE in lambda (GH-120724) (#120739)
Jelle Zijlstra [Wed, 19 Jun 2024 13:19:39 +0000 (06:19 -0700)] 
[3.12] gh-120722: Set position on RETURN_VALUE in lambda (GH-120724) (#120739)

(cherry picked from commit d8f27cb1141fd3575de816438ed80a916c0560ed)

16 months ago[3.12] gh-119506: fix `_io.TextIOWrapper.write()` write during flush (GH-119507)...
Miss Islington (bot) [Wed, 19 Jun 2024 10:23:29 +0000 (12:23 +0200)] 
[3.12] gh-119506: fix `_io.TextIOWrapper.write()` write during flush (GH-119507) (#119965)

gh-119506: fix `_io.TextIOWrapper.write()` write during flush (GH-119507)
(cherry picked from commit 52586f930f62bd80374f0f240a4ecce0c0238174)

Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
16 months ago[3.12] gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450...
Miss Islington (bot) [Wed, 19 Jun 2024 07:20:16 +0000 (09:20 +0200)] 
[3.12] gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450) (GH-120701)

gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450)
(cherry picked from commit d8cd0fa4e347f460d0f3277e2392504e61ed087d)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.12] gh-120662: Improve `smtplib` example (GH-120668) (#120682)
Miss Islington (bot) [Tue, 18 Jun 2024 12:04:06 +0000 (14:04 +0200)] 
[3.12] gh-120662: Improve `smtplib` example (GH-120668) (#120682)

gh-120662: Improve `smtplib` example (GH-120668)
(cherry picked from commit 4bc27abdbee88efcf9ada83de6e9e9a0e439edaf)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.12] gh-119897: Revert buggy optimization which was removed in 3.13 (#120467)
Irit Katriel [Tue, 18 Jun 2024 09:45:40 +0000 (10:45 +0100)] 
[3.12] gh-119897: Revert buggy optimization which was removed in 3.13 (#120467)

16 months ago[3.12] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120670)
Miss Islington (bot) [Tue, 18 Jun 2024 09:44:02 +0000 (11:44 +0200)] 
[3.12] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120670)

Mocking only works if sys.modules['pydoc'] and pydoc are the same,
but some pydoc functions reload the module and change sys.modules.
Ensure that sys.modules['pydoc'] is always restored after the corresponding
tests.
(cherry picked from commit 2cf47389e26cb591342d07dad98619916d5a1b15)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.12] gh-119824: Print stack entry when user input is needed … (#120594)
Tian Gao [Mon, 17 Jun 2024 17:40:49 +0000 (10:40 -0700)] 
[3.12] gh-119824: Print stack entry when user input is needed … (#120594)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
16 months ago[3.12] gh-120586: Fix several "unused function" warnings in `posixmodule.c` (GH-12058...
Miss Islington (bot) [Mon, 17 Jun 2024 07:01:15 +0000 (09:01 +0200)] 
[3.12] gh-120586: Fix several "unused function" warnings in `posixmodule.c` (GH-120588) (#120617)

gh-120586: Fix several "unused function" warnings in `posixmodule.c` (GH-120588)
(cherry picked from commit 3df2022931f77c5cadb3f51b371be6ae17587ede)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.12] gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 ...
Miss Islington (bot) [Mon, 17 Jun 2024 05:54:33 +0000 (07:54 +0200)] 
[3.12] gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 (GH-120480) (#120613)

gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 (GH-120480)
(cherry picked from commit bac4edad69bb20dd9460766e062637cae999e1e0)

gh-112346: Describe the "os" byte in gzip output change.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
16 months ago[3.12] gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570...
Miss Islington (bot) [Sun, 16 Jun 2024 21:03:09 +0000 (23:03 +0200)] 
[3.12] gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570) (#120598)

gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570)
(cherry picked from commit bd4516d9efee109dd3b02a3d60845f9053fc6718)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
16 months ago[3.12] gh-118596: Add thread-safety clarifications to the SSLContext documentation...
Miss Islington (bot) [Sun, 16 Jun 2024 20:34:18 +0000 (22:34 +0200)] 
[3.12] gh-118596: Add thread-safety clarifications to the SSLContext documentation (GH-118597) (#120596)

gh-118596: Add thread-safety clarifications to the SSLContext documentation (GH-118597)

Add thread-safety clarifications to the SSLContext documentation. Per the issue:

This issue has also come up [here](https://github.com/psf/requests/pull/6667) where the matter was clarified by @tiran in [this comment](https://github.com/psf/requests/pull/6667):
> `SSLContext` is designed to be shared and used for multiple connections. It is thread safe as long as you don't reconfigure it once it is used by a connection. Adding new certs to the internal trust store is fine, but changing ciphers, verification settings, or mTLS certs can lead to surprising behavior. The problem is unrelated to threads and can even occur in a single-threaded program.
(cherry picked from commit 4f59f8638267aa64ad2daa0111d8b7fdc2499834)

Co-authored-by: mm-matthias <43849132+mm-matthias@users.noreply.github.com>
16 months ago[3.12] Docs: remove temporary hardcoded links and move inline JS to own file (GH...
Hugo van Kemenade [Sun, 16 Jun 2024 15:14:22 +0000 (09:14 -0600)] 
[3.12] Docs: remove temporary hardcoded links and move inline JS to own file (GH-120348) (#120589)

[3.12] Docs: remove temporary hardcoded links (GH-120348)
(cherry picked from commit b8484c6ad7fd14ca464e584b79821b4b906dd77a)

16 months ago[3.12] gh-120572: add missing parentheses in TypeIs documentation (GH-120573) (#120578)
Nyuan Zhang [Sun, 16 Jun 2024 06:50:27 +0000 (14:50 +0800)] 
[3.12] gh-120572: add missing parentheses in TypeIs documentation (GH-120573) (#120578)

16 months ago[3.12] gh-120360: Add self as IDLE doc owner (GH-120571) (#120577)
Miss Islington (bot) [Sun, 16 Jun 2024 06:12:48 +0000 (08:12 +0200)] 
[3.12] gh-120360: Add self as IDLE doc owner (GH-120571) (#120577)

gh-120360: Add self as IDLE doc owner (GH-120571)

Add self as IDLE doc owner
(cherry picked from commit cf49ef78f894e418bea7de23dde9b01d6235889d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
16 months ago[3.12] gh-120417: Remove unused import in idlelib (GH-120420) (#120574)
Terry Jan Reedy [Sun, 16 Jun 2024 05:45:32 +0000 (01:45 -0400)] 
[3.12] gh-120417: Remove unused import in idlelib (GH-120420) (#120574)

(cherry picked from commit 4c6d4f5)

Co-authored-by: Victor Stinner vstinner@python.org
16 months ago[3.12] annotations: expand documentation on "simple" assignment targets (GH-120535...
Miss Islington (bot) [Sat, 15 Jun 2024 15:24:21 +0000 (17:24 +0200)] 
[3.12] annotations: expand documentation on "simple" assignment targets (GH-120535) (#120556)

This behavior is rather surprising and it was not clearly specified.

(cherry picked from commit 9e0b11eb21930b7b8e4a396200a921e9985cfca4)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.12] Add some more edge-case tests for `inspect.get_annotations` with `eval_str...
Miss Islington (bot) [Sat, 15 Jun 2024 13:10:01 +0000 (15:10 +0200)] 
[3.12] Add some more edge-case tests for `inspect.get_annotations` with `eval_str=True` (GH-120550) (#120552)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.12] gh-120128: fix description of argument to ipaddress.collapse_addresses() ...
Miss Islington (bot) [Sat, 15 Jun 2024 12:12:45 +0000 (14:12 +0200)] 
[3.12] gh-120128: fix description of argument to ipaddress.collapse_addresses() (GH-120131) (#120136)

gh-120128: fix description of argument to ipaddress.collapse_addresses() (GH-120131)

The argument to collapse_addresses() is now described as an *iterable*
(rather than *iterator*).
(cherry picked from commit f878d46e5614f08a9302fcb6fc611ef49e9acf2f)

Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
16 months ago[3.12] gh-120544: Add `else: fail()` to tests where exception is expected (GH-120545...
Miss Islington (bot) [Sat, 15 Jun 2024 11:54:22 +0000 (13:54 +0200)] 
[3.12] gh-120544: Add `else: fail()` to tests where exception is expected (GH-120545) (#120547)

gh-120544: Add `else: fail()` to tests where exception is expected (GH-120545)
(cherry picked from commit 42ebdd83bb194f054fe5a10b3caa0c3a95be3679)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.12] gh-120495: Fix incorrect exception handling in Tab Nanny (GH-120498) (#120549)
Miss Islington (bot) [Sat, 15 Jun 2024 11:21:05 +0000 (13:21 +0200)] 
[3.12] gh-120495: Fix incorrect exception handling in Tab Nanny (GH-120498) (#120549)

gh-120495: Fix incorrect exception handling in Tab Nanny (GH-120498)
(cherry picked from commit c501261c919ceb97c850ef9427a93326f06a8f2e)

Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
16 months ago[3.12] gh-119819: Conditional skip of logging tests that require multiprocessing...
Miss Islington (bot) [Sat, 15 Jun 2024 00:32:28 +0000 (02:32 +0200)] 
[3.12] gh-119819: Conditional skip of logging tests that require multiprocessing subprocess support (GH-120476) (#120532)

gh-119819: Conditional skip of logging tests that require multiprocessing subprocess support (GH-120476)

Skip tests that require multiprocessing subprocess support.
(cherry picked from commit 92f6d400f76b6a04dddd944568870f689c8fab5f)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
16 months ago[3.12] gh-120361: Add `nonmember` test with enum flags inside to `test_enum` (GH...
Miss Islington (bot) [Fri, 14 Jun 2024 17:59:12 +0000 (19:59 +0200)] 
[3.12] gh-120361: Add `nonmember` test with enum flags inside to `test_enum` (GH-120364) (#120512)

gh-120361: Add `nonmember` test with enum flags inside to `test_enum` (GH-120364)

* gh-120361: Add `nonmember` test with enum flags inside to `test_enum`
(cherry picked from commit 7fadfd82ebf6ea90b38cb3f2a046a51f8601a205)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.12] gh-114053: Fix bad interaction of PEP 695, PEP 563 and `inspect.get_annotation...
Miss Islington (bot) [Thu, 13 Jun 2024 21:35:21 +0000 (23:35 +0200)] 
[3.12] gh-114053: Fix bad interaction of PEP 695, PEP 563 and `inspect.get_annotations` (GH-120270) (#120475)

gh-114053: Fix bad interaction of PEP 695, PEP 563 and `inspect.get_annotations` (GH-120270)
(cherry picked from commit 42351c3b9a357ec67135b30ed41f59e6f306ac52)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.12] GH-119054: Add "Renaming and deleting" section to pathlib docs. (GH-120465...
Miss Islington (bot) [Thu, 13 Jun 2024 20:31:52 +0000 (22:31 +0200)] 
[3.12] GH-119054: Add "Renaming and deleting" section to pathlib docs. (GH-120465) (#120473)

GH-119054: Add "Renaming and deleting" section to pathlib docs. (GH-120465)

Add dedicated subsection for `pathlib.Path.rename()`, `replace()`,
`unlink()` and `rmdir()`.
(cherry picked from commit d88a1f2e156cd1072119afa91d4f4dc4037c1b21)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
16 months ago[3.12] gh-71587: Drop local reference cache to `_strptime` module in `_datetime`...
neonene [Thu, 13 Jun 2024 18:47:46 +0000 (03:47 +0900)] 
[3.12] gh-71587: Drop local reference cache to `_strptime` module in `_datetime` (gh-120431)

The _strptime module object was cached in a static local variable (in the datetime.strptime() implementation).  That's a problem when it crosses isolation boundaries, such as reinitializing the runtme or between interpreters.  This change fixes the problem by dropping the static variable, instead always relying on the normal sys.modules cache (via PyImport_Import()).

(cherry picked from commit 127c1d2771749853e287632c086b6054212bf12a, AKA gh-120224)

16 months ago[3.12] GH-119054: Add "Creating files and directories" section to pathlib docs. ...
Barney Gale [Thu, 13 Jun 2024 18:21:27 +0000 (19:21 +0100)] 
[3.12] GH-119054: Add "Creating files and directories" section to pathlib docs. (GH-120186) (#120464)

Add dedicated subsection for `pathlib.Path.touch()`, `mkdir()`,
`symlink_to()` and `hardlink_to()`. Also note that `open()`, `write_text()`
and `write_bytes()` are often used to create files.

(cherry picked from commit c2d810b6d4deeea530648a8d0983e3a2adf6c942)

16 months ago[3.12] gh-119146: Update ``regexp`` in `build.yml` to not trigger the jobs on `*...
Miss Islington (bot) [Thu, 13 Jun 2024 12:39:05 +0000 (14:39 +0200)] 
[3.12] gh-119146: Update ``regexp`` in `build.yml` to not trigger the jobs on `*.md` and `*.ini` files. (GH-120435) (#120448)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
16 months ago[3.12] gh-93691: fix too broad source locations of for statement iterators (GH-120330...
Irit Katriel [Thu, 13 Jun 2024 10:38:36 +0000 (11:38 +0100)] 
[3.12] gh-93691: fix too broad source locations of for statement iterators (GH-120330 (#120405)

[3.12] gh-93691: fix too broad source locations of for statement iterators (GH-120330).
(cherry picked from commit 97b69db167be28a33688db436551a6c3c3ea4662)

16 months ago[3.12] gh-101575: document Decimal.__round__() (GH-101737) (GH-120395)
Miss Islington (bot) [Thu, 13 Jun 2024 07:10:17 +0000 (09:10 +0200)] 
[3.12] gh-101575: document Decimal.__round__() (GH-101737) (GH-120395)

gh-101575: document Decimal.__round__() (GH-101737)
(cherry picked from commit 7dd8c37a067f9fcb6a2a658d6a93b294cc2e6fb4)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
16 months ago[3.12] Fix typos in documentation (GH-120338) (#120439)
Xie Yanbo [Thu, 13 Jun 2024 06:32:35 +0000 (14:32 +0800)] 
[3.12] Fix typos in documentation (GH-120338) (#120439)

(cherry picked from commit ce3879bd45e068f8e2a5a214acd234ca44cad53b)

16 months ago[3.12] gh-120343: Fix column offsets of multiline tokens in tokenize (GH-120391)...
Miss Islington (bot) [Wed, 12 Jun 2024 19:10:35 +0000 (21:10 +0200)] 
[3.12] gh-120343: Fix column offsets of multiline tokens in tokenize (GH-120391) (#120428)

(cherry picked from commit 4b5d3e0e721a952f4ac9d17bee331e6dfe543dcd)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
16 months ago[3.12] gh-120345: Fix incorrect use of the :class: role with the "()" suffix (GH...
Miss Islington (bot) [Wed, 12 Jun 2024 14:42:06 +0000 (16:42 +0200)] 
[3.12] gh-120345: Fix incorrect use of the :class: role with the "()" suffix (GH-120347) (GH-120412)

* Remove "()" when refer to a class as a type.
* Use :func: when refer to a callable.
* Fix reference to the datetime.astimezone() method.
(cherry picked from commit 92c9c6ae147e1e658bbc8d454f8c7b2c4dea31d1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.12] gh-120155: Add assertion to sre.c match_getindex() (GH-120402) (#120410)
Miss Islington (bot) [Wed, 12 Jun 2024 13:57:45 +0000 (15:57 +0200)] 
[3.12] gh-120155: Add assertion to sre.c match_getindex() (GH-120402) (#120410)

gh-120155: Add assertion to sre.c match_getindex() (GH-120402)

Add an assertion to help static analyzers to detect that i*2 cannot
overflow.
(cherry picked from commit 42b25dd61ff3593795c4cc2ffe876ab766098b24)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months agogh-120198: Fix race condition when editing __class__ with an audit hook active (GH...
Ken Jin [Wed, 12 Jun 2024 13:06:24 +0000 (21:06 +0800)] 
gh-120198: Fix race condition when editing __class__ with an audit hook active (GH-120195)

Co-authored-by: Nadeshiko Manju <me@manjusaka.me>
17 months ago[3.12] gh-120343: Do not reset byte_col_offset_diff after multiline tokens (GH-120352...
Miss Islington (bot) [Tue, 11 Jun 2024 17:22:16 +0000 (19:22 +0200)] 
[3.12] gh-120343: Do not reset byte_col_offset_diff after multiline tokens (GH-120352) (#120356)

(cherry picked from commit 1b62bcee941e54244b3ce6476aef8913604987c9)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
17 months ago[3.12] Fix typo in ElementTree docs (GH-120342) (#120358)
Miss Islington (bot) [Tue, 11 Jun 2024 17:19:06 +0000 (19:19 +0200)] 
[3.12] Fix typo in ElementTree docs (GH-120342) (#120358)

Fix typo in ElementTree docs (GH-120342)
(cherry picked from commit 0335662fe1f663fe96e3e4acf0f34c5959d06b00)

Co-authored-by: naglis <827324+naglis@users.noreply.github.com>
17 months ago[3.12] gh-120268: Prohibit passing ``None`` to ``_pydatetime.date.fromtimestamp`...
Miss Islington (bot) [Tue, 11 Jun 2024 09:54:20 +0000 (11:54 +0200)] 
[3.12] gh-120268: Prohibit passing ``None`` to ``_pydatetime.date.fromtimestamp`` (GH-120269) (GH-120283)

This makes the pure Python implementation consistent with the C implementation.
(cherry picked from commit 34f5ae69fe9ab0f5b23311d5c396d0cbb5902913)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
17 months ago[3.12] gh-120298: Fix use-after-free in `list_richcompare_impl` (GH-120303) (#120339)
Miss Islington (bot) [Tue, 11 Jun 2024 07:22:59 +0000 (09:22 +0200)] 
[3.12] gh-120298: Fix use-after-free in `list_richcompare_impl` (GH-120303) (#120339)

gh-120298: Fix use-after-free in `list_richcompare_impl` (GH-120303)
(cherry picked from commit 141babad9b4eceb83371bf19ba3a36b50dd05250)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.12] gh-65454: avoid triggering call to a PropertyMock in NonCallableMock.__setattr...
Miss Islington (bot) [Tue, 11 Jun 2024 06:07:25 +0000 (08:07 +0200)] 
[3.12] gh-65454: avoid triggering call to a PropertyMock in NonCallableMock.__setattr__ (GH-120019) (#120337)

gh-65454: avoid triggering call to a PropertyMock in NonCallableMock.__setattr__ (GH-120019)
(cherry picked from commit 9e9ee50421c857b443e2060274f17fb884d54473)

Co-authored-by: blhsing <blhsing@gmail.com>
17 months ago[3.12] gh-119600: mock: do not access attributes of original when new_callable is...
Miss Islington (bot) [Tue, 11 Jun 2024 06:01:02 +0000 (08:01 +0200)] 
[3.12] gh-119600: mock: do not access attributes of original when new_callable is set (GH-119601) (#120335)

gh-119600: mock: do not access attributes of original when new_callable is set (GH-119601)

In order to patch flask.g e.g. as in GH-84982, that
proxies getattr must not be invoked. For that,
mock must not try to read from the original
object. In some cases that is unavoidable, e.g.
when doing autospec. However, patch("flask.g",
new_callable=MagicMock) should be entirely safe.
(cherry picked from commit 422c4fc855afd18bcc6415902ea1d85a50cb7ce1)

Co-authored-by: Robert Collins <robert.collins@cognite.com>
17 months ago[3.12] GH-115983: skip building shared modules for testing under WASI (GH-116528...
Miss Islington (bot) [Mon, 10 Jun 2024 13:27:04 +0000 (15:27 +0200)] 
[3.12] GH-115983: skip building shared modules for testing under WASI (GH-116528) (#120316)

GH-115983: skip building shared modules for testing under WASI (GH-116528)
(cherry picked from commit 8c094c3095feb4de2efebd00f67fb6cc3b2bc240)

Co-authored-by: Brett Cannon <brett@python.org>
17 months ago[3.12] bpo-24766: doc= argument to subclasses of property not handled correctly ...
Serhiy Storchaka [Mon, 10 Jun 2024 10:32:45 +0000 (13:32 +0300)] 
[3.12] bpo-24766: doc= argument to subclasses of property not handled correctly (GH-2487) (GH-120312)

(cherry picked from commit 4829522b8d3e1a28930f1cccfcc9635e035a0eb4)

Co-authored-by: E. M. Bray <erik.bray@lri.fr>
17 months ago[3.12] gh-120155: Fix Coverity issue in zoneinfo load_data() (GH-120232) (#120311)
Miss Islington (bot) [Mon, 10 Jun 2024 10:12:25 +0000 (12:12 +0200)] 
[3.12] gh-120155: Fix Coverity issue in zoneinfo load_data() (GH-120232) (#120311)

gh-120155: Fix Coverity issue in zoneinfo load_data() (GH-120232)

Declare the 'rv' varaible at the top of the load_data() function to
make sure that it's initialized before the first 'goto error' which
uses 'rv' (return rv).

Fix the Coverity issue:

Error: UNINIT (CWE-457):
Python-3.12.2/Modules/_zoneinfo.c:1233:5: skipped_decl: Jumping over declaration of ""rv"".
Python-3.12.2/Modules/_zoneinfo.c:1284:5: uninit_use: Using uninitialized value ""rv"".
  1282|       }
  1283|
  1284|->     return rv;
  1285|   }
  1286|
(cherry picked from commit b90bd3e5bbc136f53b24ee791824acd6b17e0d42)

Co-authored-by: Victor Stinner <vstinner@python.org>
17 months ago[3.12] gh-119666: fix multiple class-scope comprehensions referencing __class__ ...
Miss Islington (bot) [Mon, 10 Jun 2024 04:37:15 +0000 (06:37 +0200)] 
[3.12] gh-119666: fix multiple class-scope comprehensions referencing __class__ (GH-120295) (#120300)

17 months ago[3.12] gh-120276: Fix incorrect email.header.Header maxlinelen default (GH-120277...
Miss Islington (bot) [Sat, 8 Jun 2024 17:26:01 +0000 (19:26 +0200)] 
[3.12] gh-120276: Fix incorrect email.header.Header maxlinelen default (GH-120277) (GH-120278)

(cherry picked from commit 7c016deae62308dd1b4e2767fc6abf04857c7843)

Co-authored-by: Clinton <pygeek@users.noreply.github.com>
17 months ago[3.12] gh-120121: Add InvalidStateError to concurrent.futures.__all__ (GH-120123...
Miss Islington (bot) [Sat, 8 Jun 2024 16:28:21 +0000 (18:28 +0200)] 
[3.12] gh-120121: Add InvalidStateError to concurrent.futures.__all__ (GH-120123) (#120274)

gh-120121: Add InvalidStateError to concurrent.futures.__all__ (GH-120123)
(cherry picked from commit 5d59b870effa0f576acf7264cfcbfca2b36e34e3)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.12] gh-120244: Fix re.sub() reference leak (GH-120245) (GH-120265)
Miss Islington (bot) [Sat, 8 Jun 2024 11:10:44 +0000 (13:10 +0200)] 
[3.12] gh-120244: Fix re.sub() reference leak (GH-120245) (GH-120265)

(cherry picked from commit 38a25e9560cf0ff0b80d9e90bce793ff24c6e027)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
17 months ago[3.12] bpo-37755: Use configured output in pydoc instead of pager (GH-15105) (GH...
Serhiy Storchaka [Sat, 8 Jun 2024 09:46:25 +0000 (12:46 +0300)] 
[3.12] bpo-37755: Use configured output in pydoc instead of pager (GH-15105) (GH-120262)

If the Helper() class was initialized with an output, the topics, keywords
and symbols help still use the pager instead of the output.
Change the behavior so  the output is used if available while keeping the
previous behavior if no output was configured.
(cherry picked from commit 2080425154d235b4b7dcc9a8a2f58e71769125ca)

Co-authored-by: Enrico Tröger <enrico.troeger@uvena.de>
17 months ago[3.12] gh-120242: Fix handling of `[setUp,tearDown]Class` in `test_datetime` (GH...
Miss Islington (bot) [Sat, 8 Jun 2024 08:09:55 +0000 (10:09 +0200)] 
[3.12] gh-120242: Fix handling of `[setUp,tearDown]Class` in `test_datetime` (GH-120243) (#120260)

gh-120242: Fix handling of `[setUp,tearDown]Class` in `test_datetime` (GH-120243)
(cherry picked from commit 95f4db88d5ab7d900f05d0418b2a2e77bf9ff126)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.12] gh-120200: Fix `inspect.iscoroutinefunction(inspect) is True` corner case...
Nikita Sobolev [Fri, 7 Jun 2024 16:41:45 +0000 (19:41 +0300)] 
[3.12] gh-120200: Fix `inspect.iscoroutinefunction(inspect) is True` corner case (GH-120214) (#120239)

* [3.12] gh-120200: Fix `inspect.iscoroutinefunction(inspect) is True` corner case (GH-120214)
(cherry picked from commit 10fb1b8f36ab2fc3d2fe7392d5735dd19c5e2365)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.12] gh-120155: Fix copy/paste error in HAVE_SUBOFFSETS_IN_LAST_DIM() (GH-120228...
Miss Islington (bot) [Fri, 7 Jun 2024 16:26:03 +0000 (18:26 +0200)] 
[3.12] gh-120155: Fix copy/paste error in HAVE_SUBOFFSETS_IN_LAST_DIM() (GH-120228) (#120240)

gh-120155: Fix copy/paste error in HAVE_SUBOFFSETS_IN_LAST_DIM() (GH-120228)

Don't hardcode 'dest' in HAVE_SUBOFFSETS_IN_LAST_DIM() macro of
memoryobject.c, but use its 'view' parameter instead.

Fix the Coverity issue:

Error: COPY_PASTE_ERROR (CWE-398):
Python-3.12.2/Objects/memoryobject.c:273:14: original: ""dest->suboffsets + (dest->ndim - 1)"" looks like the original copy.
Python-3.12.2/Objects/memoryobject.c:274:14: copy_paste_error: ""dest"" in ""src->suboffsets + (dest->ndim - 1)"" looks like a copy-paste error.
Python-3.12.2/Objects/memoryobject.c:274:14: remediation: Should it say ""src"" instead?
GH-  272|       assert(dest->ndim > 0 && src->ndim > 0);
GH-  273|       return (!HAVE_SUBOFFSETS_IN_LAST_DIM(dest) &&
GH-  274|->             !HAVE_SUBOFFSETS_IN_LAST_DIM(src) &&
GH-  275|               dest->strides[dest->ndim-1] == dest->itemsize &&
GH-  276|               src->strides[src->ndim-1] == src->itemsize);
(cherry picked from commit 90b75405260467814c93738a3325645918d4ea51)

Co-authored-by: Victor Stinner <vstinner@python.org>
17 months ago[3.12] gh-120155: Fix optimize_and_assemble_code_unit() error handling (#120231)
Victor Stinner [Fri, 7 Jun 2024 15:17:06 +0000 (17:17 +0200)] 
[3.12] gh-120155: Fix optimize_and_assemble_code_unit() error handling (#120231)

gh-120155: Fix optimize_and_assemble_code_unit() error handling

Don't use 'g' before it's being initialized: don't use the 'error'
label if consts_dict_keys_inorder() failed.

Fix the Coverity issue:

Error: UNINIT (CWE-457):
Python-3.12.2/Python/compile.c:7670:5: skipped_decl: Jumping over declaration of ""g"".
Python-3.12.2/Python/compile.c:7714:5: uninit_use_in_call: Using uninitialized value ""g.g_block_list"" when calling ""_PyCfgBuilder_Fini"".
Python-3.12.2/Python/compile.c:7714:5: uninit_use_in_call: Using uninitialized value ""g.g_entryblock"" when calling ""_PyCfgBuilder_Fini"".
  7712|       Py_XDECREF(consts);
  7713|       instr_sequence_fini(&optimized_instrs);
  7714|->     _PyCfgBuilder_Fini(&g);
  7715|       return co;
  7716|   }

17 months ago[3.12] gh-110383: Improve 'old string formatting' text in tutorial (GH-120219) (...
Miss Islington (bot) [Fri, 7 Jun 2024 13:43:59 +0000 (15:43 +0200)] 
[3.12] gh-110383: Improve 'old string formatting' text in tutorial (GH-120219) (#120230)

(cherry picked from commit 225aab7f70d804174cc3a75bc04a5bb1545e5adb)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
17 months ago[3.12] gh-120211: Fix tkinter.ttk with Tcl/Tk 9.0 (GH-120213) (GH-120216)
Miss Islington (bot) [Fri, 7 Jun 2024 11:30:50 +0000 (13:30 +0200)] 
[3.12] gh-120211: Fix tkinter.ttk with Tcl/Tk 9.0 (GH-120213) (GH-120216)

* Use new methods for tracing Tcl variable.
* Fix Combobox.current() for empty combobox.
(cherry picked from commit d68a22e7a68ae09f7db61d5a1a3bd9c0360cf3ee)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.12] gh-112672: Fix builtin Tkinter with Tcl 9.0 (GH-112681) (GH-120209)
Miss Islington (bot) [Fri, 7 Jun 2024 10:18:42 +0000 (12:18 +0200)] 
[3.12] gh-112672: Fix builtin Tkinter with Tcl 9.0 (GH-112681) (GH-120209)

* Add declaration of Tcl_AppInit(), missing in Tcl 9.0.
* Use Tcl_Size instead of int where needed.

(cherry picked from commit e0799352823289fafb8131341abd751923ee9c08)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.12] gh-110383: Clarify "non-integral" wording in pow() docs (GH-119688) (#120207)
Miss Islington (bot) [Fri, 7 Jun 2024 09:53:55 +0000 (11:53 +0200)] 
[3.12] gh-110383: Clarify "non-integral" wording in pow() docs (GH-119688) (#120207)

(cherry picked from commit 6646a9da26d12fc54263b22dd2916a2f710f1db7)

Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
17 months ago[3.12] gh-120154: Fix Emscripten/WASI pattern in case statement for LDSHARED… (#120204)
Victor Stinner [Fri, 7 Jun 2024 09:49:54 +0000 (11:49 +0200)] 
[3.12] gh-120154: Fix Emscripten/WASI pattern in case statement for LDSHARED… (#120204)

gh-120154: Fix Emscripten/WASI pattern in case statement for LDSHARED (#120173)

Fix Emscripten/WASI pattern in case statement for LDSHARED

(cherry picked from commit 47816f465e833a5257a82b759b1081e06381e528)

Co-authored-by: Michael Allwright <contact@allwright.io>
17 months ago[3.12] gh-120164: Fix test_os.test_win32_mkdir_700() (GH-120177) (#120203)
Miss Islington (bot) [Fri, 7 Jun 2024 09:35:08 +0000 (11:35 +0200)] 
[3.12] gh-120164: Fix test_os.test_win32_mkdir_700() (GH-120177) (#120203)

gh-120164: Fix test_os.test_win32_mkdir_700() (GH-120177)

Don't compare the path to avoid encoding issues.

(cherry picked from commit d5ba4fc9bc9b2d9eff2a90893e8d500e0c367237)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
17 months ago[3.12] Add Plausible for docs metrics (GH-119977) (#120194)
Miss Islington (bot) [Fri, 7 Jun 2024 07:42:37 +0000 (09:42 +0200)] 
[3.12] Add Plausible for docs metrics (GH-119977) (#120194)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Julien Palard <julien@palard.fr>