]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.12] Fix PyVectorcall_Function doc versionadded (GH-107140) (#107173)
Miss Islington (bot) [Mon, 24 Jul 2023 13:06:16 +0000 (06:06 -0700)] 
[3.12] Fix PyVectorcall_Function doc versionadded (GH-107140) (#107173)

Fix PyVectorcall_Function doc versionadded (GH-107140)

The documentation implies that PyVectorcall_Function() was available in Python 3.8.
This is half-true - it was available under a different name. I think it's clearer to set
the "version added" to 3.9.
(cherry picked from commit 0a9b339363a59be1249189c767ed6f46fd71e1c7)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
2 years ago[3.12] Docs: Remove duplicate word in Argument Clinic howto heading (GH-107169) ...
Miss Islington (bot) [Mon, 24 Jul 2023 12:03:01 +0000 (05:03 -0700)] 
[3.12] Docs: Remove duplicate word in Argument Clinic howto heading (GH-107169) (#107171)

(cherry picked from commit ebe44a5155e9abc70c4b8914ad26b27c2b84f72b)

Co-authored-by: Hakan Celik <hakancelikdev@gmail.com>
2 years ago[3.12] gh-105291: Add link to migration guide for distutils (GH-107130) (#107160)
Miss Islington (bot) [Sun, 23 Jul 2023 22:00:51 +0000 (15:00 -0700)] 
[3.12] gh-105291: Add link to migration guide for distutils (GH-107130) (#107160)

Co-authored-by: cLupus <cLupus@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years ago[3.12] gh-106948: Docs: Disable links for C standard library functions, OS utility...
Miss Islington (bot) [Sun, 23 Jul 2023 21:13:23 +0000 (14:13 -0700)] 
[3.12] gh-106948: Docs: Disable links for C standard library functions, OS utility functions and system calls (GH-107062) (#107154)

(cherry picked from commit b447e19e720e6781025432a40eb72b1cc93ac944)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-107017: Analolgy to Pascal and C replaced. (GH-107025) (#107124)
Miss Islington (bot) [Sun, 23 Jul 2023 13:59:50 +0000 (06:59 -0700)] 
[3.12] gh-107017: Analolgy to Pascal and C replaced. (GH-107025) (#107124)

(cherry picked from commit e59da0c4f283b966ccb175fb94460f58211a9704)

Co-authored-by: TommyUnreal <45427816+TommyUnreal@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years ago[3.12] Introduce a gate/check GHA job (GH-97533) (#107114)
Sviatoslav Sydorenko [Sun, 23 Jul 2023 12:58:20 +0000 (14:58 +0200)] 
[3.12] Introduce a gate/check GHA job (GH-97533) (#107114)

(cherry picked from commit e7cd557)

2 years ago[3.12] bpo-18319: gettext() can retrieve a message even if a plural form exists ...
Miss Islington (bot) [Sun, 23 Jul 2023 12:29:08 +0000 (05:29 -0700)] 
[3.12] bpo-18319: gettext() can retrieve a message even if a plural form exists (GH-19869) (#107108)

(cherry picked from commit 54632528eeba841e4a8cc95ecbd84c9aca8eef57)

Co-authored-by: Gilles Bassière <gbassiere@gmail.com>
2 years ago[3.12] gh-106186: Don't report MultipartInvariantViolationDefect for valid multipart...
Miss Islington (bot) [Sun, 23 Jul 2023 12:28:28 +0000 (05:28 -0700)] 
[3.12] gh-106186: Don't report MultipartInvariantViolationDefect for valid multipart emails when parsing header only (GH-107016) (#107111)

(cherry picked from commit c65592c4d6d7552fb6284442906a96a6874cb266)

Co-authored-by: htsedebenham <31847376+htsedebenham@users.noreply.github.com>
2 years ago[3.12] gh-107091: Fix the use of some C domain roles (GH-107092) (GH-107113)
Miss Islington (bot) [Sun, 23 Jul 2023 11:50:21 +0000 (04:50 -0700)] 
[3.12] gh-107091: Fix the use of some C domain roles (GH-107092) (GH-107113)

(cherry picked from commit 08a228da05a7aec937b65eea21f4091fa3c6b5cf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-106969: Indicate no modules were added in 3.10 & 3.12 (GH-106988) (#107094)
Moritz Neeb [Sun, 23 Jul 2023 10:26:05 +0000 (12:26 +0200)] 
[3.12] gh-106969: Indicate no modules were added in 3.10 & 3.12 (GH-106988) (#107094)

The "New Modules" section was left in place to ensure that the anchor
link for new modules will still exist:

/whatsnew/3.12.htmlGH-new-modules
/whatsnew/3.10.htmlGH-new-modules

This means that existing links to this section don't break.
(cherry picked from commit 6dbffaed17d59079d6a2788d686009f762a3278f)

Co-authored-by: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com>
2 years ago[3.12] gh-106996: Add the basics of a turtle graphics tutorial (GH-107072) (#107109)
Daniele Procida [Sun, 23 Jul 2023 10:22:05 +0000 (12:22 +0200)] 
[3.12] gh-106996: Add the basics of a turtle graphics tutorial (GH-107072) (#107109)

2 years ago[3.12] gh-101100: Fix some broken sphinx references (GH-107095) (#107103)
Miss Islington (bot) [Sun, 23 Jul 2023 10:00:31 +0000 (03:00 -0700)] 
[3.12] gh-101100: Fix some broken sphinx references (GH-107095) (#107103)

(cherry picked from commit f5147c0cfbd7943ff10917225448c36a53f9828d)

Co-authored-by: wulmer <wulmer@users.noreply.github.com>
2 years ago[3.12] gh-106976: alphabetise bullets by module name task2-3 (GH-107005) (#107106)
Miss Islington (bot) [Sun, 23 Jul 2023 09:44:39 +0000 (02:44 -0700)] 
[3.12] gh-106976: alphabetise bullets by module name task2-3 (GH-107005) (#107106)

Co-authored-by: littlebutt's workshop <luogan199686@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-54738: Add argparse i18n howto (GH-104562) (#107102)
Miss Islington (bot) [Sun, 23 Jul 2023 09:36:10 +0000 (02:36 -0700)] 
[3.12] gh-54738: Add argparse i18n howto (GH-104562) (#107102)

(cherry picked from commit dcd7acb04a719d8d30c8d03b80d3d48b6c035e14)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
2 years ago[3.12] Convert `doc.yml` workflow to be reusable (GH-103914 + GH-105151) (#107042)
Sviatoslav Sydorenko [Sun, 23 Jul 2023 09:35:17 +0000 (11:35 +0200)] 
[3.12] Convert `doc.yml` workflow to be reusable (GH-103914 + GH-105151) (#107042)

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
(cherry picked from commit 88d14da76f579fe014cbd7c15e42be4234135fe9)
(cherry picked from commit eaa670228066220f08c8d73f80365c50058d40b8)

2 years ago[3.12] gh-75371: reformat Makefile.pre.in to accommodate for empty FRAMEWORKALTINSTAL...
Miss Islington (bot) [Sun, 23 Jul 2023 09:34:28 +0000 (02:34 -0700)] 
[3.12] gh-75371: reformat Makefile.pre.in to accommodate for empty FRAMEWORKALTINSTALLLAST (GH-107035) (#107049)

gh-75371: reformat Makefile.pre.in to accommodate for empty FRAMEWORKALTINSTALLLAST (GH-107035)

in the case of an empty FRAMEWORKALTINSTALLLAST, this patch prevents leaving
an astray linebreak and two tabs in the resulting Makefile.

Before change:
```
.PHONY: commoninstall
commoninstall:  check-clean-src  \
altbininstall libinstall inclinstall libainstall \
sharedinstall altmaninstall \

```

After change (with empty FRAMEWORKALTINSTALLLAST):
```
.PHONY: commoninstall
commoninstall:  check-clean-src  \
altbininstall libinstall inclinstall libainstall \
sharedinstall altmaninstall
```
(cherry picked from commit 9c38206925246ab919cf558ac069ae9458720ba7)

Co-authored-by: Moritz Neeb <nt4u@kpvn.de>
2 years ago[3.12] gh-106948: Add standard external names to nitpick_ignore (GH-106949) (#107060)
Serhiy Storchaka [Sun, 23 Jul 2023 09:24:51 +0000 (12:24 +0300)] 
[3.12] gh-106948: Add standard external names to nitpick_ignore (GH-106949) (#107060)

* [3.12] gh-106948: Add standard external names to nitpick_ignore (GH-106949)

It includes standard C types, macros and variables like "size_t",
"LONG_MAX" and "errno", and standard environment variables like "PATH".

(cherry picked from commit f8b7fe2f2647813ae8249675a80e59c117d30fe1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Delete 2023-05-31-18-37-57.gh-issue-105156.R4El5V.rst

2 years ago[3.12] gh-107017: removed mention that C does it the same way (GH-107020) (#107097)
Miss Islington (bot) [Sun, 23 Jul 2023 09:11:26 +0000 (02:11 -0700)] 
[3.12] gh-107017: removed mention that C does it the same way (GH-107020) (#107097)

Co-authored-by: Jakub Červinka <cervinka.jakub.1989@gmail.com>
2 years ago[3.12] gh-71261: Add paragraph on shadowing submodules with star imports (GH-107004...
Miss Islington (bot) [Sun, 23 Jul 2023 09:01:24 +0000 (02:01 -0700)] 
[3.12] gh-71261: Add paragraph on shadowing submodules with star imports (GH-107004) (#107100)

Co-authored-by: wulmer <wulmer@users.noreply.github.com>
2 years ago[3.12] gh-102111: Add link to string escape sequences in re module (GH-106995) (...
Miss Islington (bot) [Sun, 23 Jul 2023 08:59:16 +0000 (01:59 -0700)] 
[3.12] gh-102111: Add link to string escape sequences in re module (GH-106995) (#107096)

Co-authored-by: wulmer <wulmer@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] gh-106962: Detect mpicc in configure.ac (GH-106961) (#107081)
Miss Islington (bot) [Sun, 23 Jul 2023 00:01:44 +0000 (17:01 -0700)] 
[3.12] gh-106962: Detect mpicc in configure.ac (GH-106961) (#107081)

Don't let autoconf mistake MPI compilers for Intel compilers;
filter out the MPI case to prevent Intel specific options from being applied.
(cherry picked from commit 9a6b278769b9f24e0650283f6c347db8ae52b7b3)

Co-authored-by: Lukas van de Wiel <30800501+LukasvdWiel@users.noreply.github.com>
2 years ago[3.12] GH-103082: Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS (#107069)...
Victor Stinner [Sat, 22 Jul 2023 22:20:38 +0000 (00:20 +0200)] 
[3.12] GH-103082: Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS (#107069) (#107075)

GH-103082: Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS (#107069)

Rename private C API constants:

* Rename PY_MONITORING_UNGROUPED_EVENTS to _PY_MONITORING_UNGROUPED_EVENTS
* Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS

(cherry picked from commit 0927a2b25c059988e237108605ed8ab0c5459c53)

2 years agogh-106847: Add -X warn_default_encoding in sys.flags Doc (GH-106854)
Miss Islington (bot) [Sat, 22 Jul 2023 21:15:19 +0000 (14:15 -0700)] 
gh-106847: Add -X warn_default_encoding in sys.flags Doc (GH-106854)

gh-106847: Add -X warn_default_encoding in sys.flags Doc (GH-106854)
(cherry picked from commit fd84ac0ee0a8d5e34e0a106eed7e50539b61c5f8)

Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-107028: tiny textual changes in logging docs and docstrings (GH-107029...
Miss Islington (bot) [Sat, 22 Jul 2023 21:11:29 +0000 (14:11 -0700)] 
[3.12] gh-107028: tiny textual changes in logging docs and docstrings (GH-107029) (GH-107065)

(cherry picked from commit 5e5a34ac3a827e040cd89426b1774fec2123336a)

2 years ago[3.12] gh-83006: Document behavior of `shutil.disk_usage` for non-mounted filesystems...
Miss Islington (bot) [Sat, 22 Jul 2023 18:25:03 +0000 (11:25 -0700)] 
[3.12] gh-83006: Document behavior of `shutil.disk_usage` for non-mounted filesystems on Unix (GH-107031) (#107047)

(cherry picked from commit 6e5f2235f3754307292c7d8d3698958136b5e311)

Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
2 years ago[3.12] gh-107008: Document the curses module variables LINES and COLS (GH-107011...
Miss Islington (bot) [Sat, 22 Jul 2023 18:12:58 +0000 (11:12 -0700)] 
[3.12] gh-107008: Document the curses module variables LINES and COLS (GH-107011) (GH-107057)

LINES and COLS referred in curses.update_lines_cols() documentations are
the module variables, not the environment variables.
(cherry picked from commit 26e08dfdd7ac1b3d567d30cd35e4898121580390)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] Fix Sphinx warnings in `re` module docs (GH-107044) (#107046)
Miss Islington (bot) [Sat, 22 Jul 2023 15:54:02 +0000 (08:54 -0700)] 
[3.12] Fix Sphinx warnings in `re` module docs (GH-107044) (#107046)

Fix Sphinx warnings in `re` module docs (GH-107044)
(cherry picked from commit 149748ea4f552e6fe43a1d6d69bd65910a7c4813)

Co-authored-by: wulmer <wulmer@users.noreply.github.com>
2 years ago[3.12] gh-105090: Replace incorrect TLSv1.2 with TLSv1.3 (GH-105404) (#107040)
Miss Islington (bot) [Sat, 22 Jul 2023 14:30:28 +0000 (07:30 -0700)] 
[3.12] gh-105090: Replace incorrect TLSv1.2 with TLSv1.3 (GH-105404) (#107040)

Co-authored-by: Jocelyn Castellano <admin@malwarefight.gq>
2 years ago[3.12] Bump sphinx-lint to 0.6.8 (gh-106978) (#107023)
Sven Arends [Sat, 22 Jul 2023 13:41:38 +0000 (15:41 +0200)] 
[3.12] Bump sphinx-lint to 0.6.8 (gh-106978) (#107023)

2 years ago[3.12] gh-106989: Remove tok report warnings (GH-106993) (#107013)
Miss Islington (bot) [Sat, 22 Jul 2023 13:01:36 +0000 (06:01 -0700)] 
[3.12] gh-106989: Remove tok report warnings (GH-106993) (#107013)

Co-authored-by: Menelaos Kotoglou <contact@menelaoskotoglou.com>
2 years ago[3.12] Reformat code block to make it easier to read (GH-106965) (#107010)
Miss Islington (bot) [Sat, 22 Jul 2023 12:54:13 +0000 (05:54 -0700)] 
[3.12] Reformat code block to make it easier to read (GH-106965) (#107010)

(cherry picked from commit ed491d9f782480fb00535abcf667027e0e323287)

Co-authored-by: Joe Kaufeld <opensource@joekaufeld.com>
2 years ago[3.12] gh-106714: Fix test_capi to not write a coredump (GH-107007) (#107009)
Miss Islington (bot) [Sat, 22 Jul 2023 12:48:41 +0000 (05:48 -0700)] 
[3.12] gh-106714: Fix test_capi to not write a coredump (GH-107007) (#107009)

gh-106714: Fix test_capi to not write a coredump (GH-107007)

test_capi: Fix test_no_FatalError_infinite_loop() to no longer write
a coredump, by using test.support.SuppressCrashReport.
(cherry picked from commit 4a1026d7647c084b0dc80dd49163d16ba12a2e55)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-106368: Increase coverage for Argument Clinic output directive (GH-106979...
Miss Islington (bot) [Sat, 22 Jul 2023 10:48:35 +0000 (03:48 -0700)] 
[3.12] gh-106368: Increase coverage for Argument Clinic output directive (GH-106979) (#106994)

(cherry picked from commit ee5c01b473eeadb007b9f330db3143e34e46038b)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] gh-106970: Fix Argument Clinic 'destination <name> clear' command (GH-106972...
Miss Islington (bot) [Sat, 22 Jul 2023 09:06:46 +0000 (02:06 -0700)] 
[3.12] gh-106970: Fix Argument Clinic 'destination <name> clear' command (GH-106972) (#106983)

Add test for the 'destination <name> clear' command,
and the 'destination' directive in general.

Fix two bugs in 'destination <name> clear' command:

1. The text attribute of the allocator is called 'text', not '_text'
2. Return after processing the 'clear' command,
   instead of proceeding directly to the fail().
(cherry picked from commit 3372bcba9893030e4063a9264ec0b4d1b6166883)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] gh-106973: Change non-integral to non-integer in "3.12 What's New" (GH-106984...
Miss Islington (bot) [Sat, 22 Jul 2023 08:40:37 +0000 (01:40 -0700)] 
[3.12] gh-106973: Change non-integral to non-integer in "3.12 What's New" (GH-106984) (#106986)

Co-authored-by: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com>
2 years ago[3.12] gh-105699: Fix an Interned Strings Crasher (gh-106930) (#106963)
Miss Islington (bot) [Fri, 21 Jul 2023 20:28:22 +0000 (13:28 -0700)] 
[3.12] gh-105699: Fix an Interned Strings Crasher (gh-106930) (#106963)

gh-105699: Fix an Interned Strings Crasher (gh-106930)

A static (process-global) str object must only have its "interned" state cleared when no longer interned in any interpreters.  They are the only ones that can be shared by interpreters so we don't have to worry about any other str objects.

We trigger clearing the state with the main interpreter, since no other interpreters may exist at that point and _PyUnicode_ClearInterned() is only called during interpreter finalization.

We do not address here the fact that a string will only be interned in the first interpreter that interns it.  In any subsequent interpreters str.state.interned is already set so _PyUnicode_InternInPlace() will skip it.  That needs to be addressed separately from fixing the crasher.
(cherry picked from commit 87e7cb09e4258c4deb01a07dc52c1021907195d7)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2 years ago[3.12] gh-105699: Fix a Crasher Related to a Deprecated Global Variable (gh-106923...
Miss Islington (bot) [Fri, 21 Jul 2023 20:27:52 +0000 (13:27 -0700)] 
[3.12] gh-105699: Fix a Crasher Related to a Deprecated Global Variable (gh-106923) (#106964)

gh-105699: Fix a Crasher Related to a Deprecated Global Variable (gh-106923)

There was a slight race in _Py_ClearFileSystemEncoding() (when called from _Py_SetFileSystemEncoding()), between freeing the value and setting the variable to NULL, which occasionally caused crashes when multiple isolated interpreters were used.  (Notably, I saw at least 10 different, seemingly unrelated spooky-action-at-a-distance, ways this crashed. Yay, free threading!)  We avoid the problem by only setting the global variables with the main interpreter (i.e. runtime init).
(cherry picked from commit 0ba07b2108d4763273f3fb85544dde34c5acd40a)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2 years ago[3.12] gh-106892: Use roles :data: and :const: for referencing module variables ...
Serhiy Storchaka [Fri, 21 Jul 2023 11:51:00 +0000 (14:51 +0300)] 
[3.12] gh-106892: Use roles :data: and :const: for referencing module variables (GH-106894) (GH-106954)

(cherry picked from commit d036db728ea3d54509cbad06df74e2d9a31fbec8)

2 years ago[3.12] gh-106909: Use role :const: for referencing module constants (GH-106910) ...
Serhiy Storchaka [Fri, 21 Jul 2023 11:49:39 +0000 (14:49 +0300)] 
[3.12] gh-106909: Use role :const: for referencing module constants (GH-106910) (GH-106956)

(cherry picked from commit 4b9948617f91175783609769aa6160e5b49b9ccc)

2 years ago[3.12] gh-47146: Fix reference counting in _testcapi.structmember initializer (GH...
Miss Islington (bot) [Fri, 21 Jul 2023 11:48:50 +0000 (04:48 -0700)] 
[3.12] gh-47146: Fix reference counting in _testcapi.structmember initializer (GH-106862) (GH-106953)

(cherry picked from commit 8d397ee8259fa0f81598a452438fc335267ca260)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920...
Serhiy Storchaka [Fri, 21 Jul 2023 11:48:15 +0000 (14:48 +0300)] 
[3.12] gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920) (GH-106951)

(cherry picked from commit fcc816dbff7ca66c26f57a506e4d2330fe41d0ff)

2 years ago[3.12] gh-106368: Increase Argument Clinic test coverage for IndentStack (GH-106933...
Miss Islington (bot) [Fri, 21 Jul 2023 06:32:30 +0000 (23:32 -0700)] 
[3.12] gh-106368: Increase Argument Clinic test coverage for IndentStack (GH-106933) (#106943)

(cherry picked from commit 8d228cf66f316803e95685d6553084f3d60cd9c5)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] Docs: Argument Clinic: Add Background and Tutorial top-level sections (GH...
Miss Islington (bot) [Fri, 21 Jul 2023 06:18:18 +0000 (23:18 -0700)] 
[3.12] Docs: Argument Clinic: Add Background and Tutorial top-level sections (GH-106904) (#106945)

Docs: Argument Clinic: Add Background and Tutorial top-level sections (GH-106904)

Add Background as a toplevel section with the following subsections:

- Background
  - The goals of Argument Clinic
  - Basic concepts and usage

Rename "Converting your first function" to Tutorial.

Add anchors for Background, Tutorial, and How-to Guides:

- :ref:`clinic-background`
- :ref:`clinic-tutorial`
- :ref:`clinic-howtos`

Link to these from within the Abstract.

Break the compatibility paragraph out of Abstract and make it a note.
(cherry picked from commit 81861fd90b4ae981e7881cd03a3c370713063525)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2 years ago[3.12] gh-106669: Revert "gh-102988: Detect email address parsing errors ... (GH...
Gregory P. Smith [Fri, 21 Jul 2023 04:05:46 +0000 (21:05 -0700)] 
[3.12] gh-106669: Revert "gh-102988: Detect email address parsing errors ... (GH-105127)" (GH-106733) (#106941)

This reverts commit 18dfbd035775c15533d13a98e56b1d2bf5c65f00.
Adds a regression test from the issue.

See https://github.com/python/cpython/issues/106669..
(cherry picked from commit a31dea1feb61793e48fa9aa5014f358352205c1d)

2 years ago[3.12] Fix typo in tkinter docs (GH-106936) (#106937)
Miss Islington (bot) [Thu, 20 Jul 2023 23:11:52 +0000 (16:11 -0700)] 
[3.12] Fix typo in tkinter docs (GH-106936) (#106937)

Fix typo in tkinter docs (GH-106936)
(cherry picked from commit 60e83968d555d53b97de04a0a00b2cdeb3187d39)

Signed-off-by: Makonede <61922615+Makonede@users.noreply.github.com>
Co-authored-by: Makonede <61922615+Makonede@users.noreply.github.com>
2 years ago[3.12] Fix typo in 3.11.4 changelog: urllib.request.Requst -> Request (GH-106830...
Miss Islington (bot) [Thu, 20 Jul 2023 09:29:31 +0000 (02:29 -0700)] 
[3.12] Fix typo in 3.11.4 changelog: urllib.request.Requst -> Request (GH-106830) (#106912)

Fix typo in 3.11.4 changelog: urllib.request.Requst -> Request (GH-106830)
(cherry picked from commit 009e8f084c4cbb1f43d40b24b7f71fb189bbe36b)

Co-authored-by: Zach Brantmeier <brantmeierz@gmail.com>
2 years ago[3.12] gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH...
Miss Islington (bot) [Wed, 19 Jul 2023 20:03:56 +0000 (13:03 -0700)] 
[3.12] gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH-106901) (#106902)

gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH-106901)

And later versions of 3.10, 3.9
(cherry picked from commit 1e1f4e91a905bab3103250a3ceadac0693b926d9)

Co-authored-by: Jack Nelson <jack@jacknelson.xyz>
2 years ago[3.12] gh-104090: Fix unittest collectedDurations resources leak (GH-106795) (#106888)
Miss Islington (bot) [Wed, 19 Jul 2023 11:34:54 +0000 (04:34 -0700)] 
[3.12] gh-104090: Fix unittest collectedDurations resources leak (GH-106795) (#106888)

gh-104090: Fix unittest collectedDurations resources leak (GH-106795)
(cherry picked from commit 70b961ed93f67e34d0624e178f6029c886afaeee)

Co-authored-by: Yonatan Bitton <bityob@gmail.com>
2 years ago[3.12] Docs: Argument Clinic: Group guides about default values (GH-106872) (#106874)
Miss Islington (bot) [Tue, 18 Jul 2023 23:16:19 +0000 (16:16 -0700)] 
[3.12] Docs: Argument Clinic: Group guides about default values (GH-106872) (#106874)

Docs: Argument Clinic: Group guides about default values (GH-106872)

Previous ToC layout (excerpt):

    - How to use symbolic default values
    ...
    - How to assign default values to parameter
      - How to use the ``NULL`` default value
      - How to use expressions as default values

New layout:

    - How to assign default values to parameter
      - The ``NULL`` default value
      - Symbolic default values
      - Expressions as default values

(cherry picked from commit 505eede38d141d43e40e246319b157e3c77211d3)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] gh-86493: Fix possible leaks in some modules initialization (GH-106768) (GH...
Serhiy Storchaka [Tue, 18 Jul 2023 12:14:10 +0000 (15:14 +0300)] 
[3.12] gh-86493: Fix possible leaks in some modules initialization (GH-106768) (GH-106855)

Fix _ssl, _stat, _testinternalcapi, _threadmodule, cmath, math, posix, time.
(cherry picked from commit 3e65baee72131b49f4ce8ca2da568a6f2001ce93)

2 years ago[3.12] Docs: Normalise Argument Clinic advanced topics headings (GH-106842) (#106853)
Miss Islington (bot) [Tue, 18 Jul 2023 10:24:44 +0000 (03:24 -0700)] 
[3.12] Docs: Normalise Argument Clinic advanced topics headings (GH-106842) (#106853)

(cherry picked from commit 4cb0b9c0a9f6a4154238c98013d2679229b1f794)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2 years ago[3.12] gh-86493: Fix possible leaks in modules initialization: _curses_panel, _decima...
Serhiy Storchaka [Tue, 18 Jul 2023 07:03:59 +0000 (10:03 +0300)] 
[3.12] gh-86493: Fix possible leaks in modules initialization: _curses_panel, _decimal, posix, xxsubtype (GH-106767) (#106849)

(cherry picked from commit 745492355b94d109e47827e5865846f25ae42d26)

2 years ago[3.12] gh-106719: Fix __annotations__ getter and setter in the type and module types...
Miss Islington (bot) [Tue, 18 Jul 2023 07:01:22 +0000 (00:01 -0700)] 
[3.12] gh-106719: Fix __annotations__ getter and setter in the type and module types (GH-106720) (GH-106848)

gh-106719: Fix __annotations__ getter and setter in the type and module types (GH-106720)

No longer suppress arbitrary errors. Simplify the code.
(cherry picked from commit e1c295e3da9ff5a3eb6b009a1f821d80e564ac87)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-101538: Add experimental wasi-threads build (GH-101537) (#106834)
Miss Islington (bot) [Mon, 17 Jul 2023 22:31:17 +0000 (15:31 -0700)] 
[3.12] gh-101538: Add experimental wasi-threads build (GH-101537) (#106834)

(cherry picked from commit d8f87cdf94a6533c5cf2d25e09e6fa3eb06720b9)

Co-authored-by: YAMAMOTO Takashi <yamamoto@midokura.com>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.12] gh-106368: Increase Argument Clinic test coverage for cpp.Monitor (GH-106833...
Miss Islington (bot) [Mon, 17 Jul 2023 21:20:59 +0000 (14:20 -0700)] 
[3.12] gh-106368: Increase Argument Clinic test coverage for cpp.Monitor (GH-106833) (#106838)

(cherry picked from commit 22379c60ab8f8b49e75da9bd032a8722af50b409)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] gh-106831: Fix NULL check of d2i_SSL_SESSION() result in _ssl.c (GH-106832...
Miss Islington (bot) [Mon, 17 Jul 2023 20:40:15 +0000 (13:40 -0700)] 
[3.12] gh-106831: Fix NULL check of d2i_SSL_SESSION() result in _ssl.c (GH-106832) (#106835)

gh-106831: Fix NULL check of d2i_SSL_SESSION() result in _ssl.c (GH-106832)
(cherry picked from commit ebf2c56b33553a448da8f60fcd89a622f071b5f4)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-106687: _ssl: use uint64_t for SSL options (GH-106700) (#106827)
Miss Islington (bot) [Mon, 17 Jul 2023 16:32:17 +0000 (09:32 -0700)] 
[3.12] gh-106687: _ssl: use uint64_t for SSL options (GH-106700) (#106827)

gh-106687: _ssl: use uint64_t for SSL options (GH-106700)

SSL_CTX_get_options() uses uint64_t for options:
https://www.openssl.org/docs/man3.1/man3/SSL_CTX_get_options.html

Fix this compiler warning on Windows with MSC:

    conversion from 'uint64_t' to 'long', possible loss of data
(cherry picked from commit ad95c7253a70e559e7d3f25d53f4772f28bb8b44)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-106780: Add __match_args__ to tutorial example (GH-106784) (#106819)
Miss Islington (bot) [Mon, 17 Jul 2023 08:15:35 +0000 (01:15 -0700)] 
[3.12] gh-106780: Add __match_args__ to tutorial example (GH-106784) (#106819)

Add Point definition with this attribute before example
that needs it.
(cherry picked from commit 7aa89e505d893cd5e6f33b84d66e5fa769089931)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.12] Add more recipe tests. Make the factor recipe a bit faster and clearer. (GH...
Miss Islington (bot) [Mon, 17 Jul 2023 02:47:58 +0000 (19:47 -0700)] 
[3.12] Add more recipe tests. Make the factor recipe a bit faster and clearer. (GH-106817) (GH-106818)

2 years agoDoc: fix section levels of devmode doc (GH-106801)
Inada Naoki [Sun, 16 Jul 2023 12:25:35 +0000 (21:25 +0900)] 
Doc: fix section levels of devmode doc (GH-106801)

(cherry picked from commit e58960160fcb4fce63177fcd9ef605f887377767)

2 years ago[3.12] Docs search: Replace jQuery with vanilla JavaScript (GH-106743) (#106802)
Miss Islington (bot) [Sun, 16 Jul 2023 08:38:08 +0000 (01:38 -0700)] 
[3.12] Docs search: Replace jQuery with vanilla JavaScript (GH-106743) (#106802)

Docs search: Replace jQuery with vanilla JavaScript (GH-106743)

* Replace jQuery with vanilla JavaScript
* Switch 'var' to 'const' or 'let'
(cherry picked from commit c02ee4503151105dc892018ebc7f633e7f3f62f8)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years agoDoc: devmode: add -Xdev option to example (GH-106253)
Miss Islington (bot) [Sun, 16 Jul 2023 07:32:26 +0000 (00:32 -0700)] 
Doc: devmode: add -Xdev option to example (GH-106253)

Doc: devmode: add -Xdev option to example (GH-106253)
(cherry picked from commit 83bd568d2b57337a91ef046c1f52f9ebb03a7803)

Co-authored-by: Simone Rubino <daemo00@gmail.com>
2 years agowasm: do not use inline comment in .editorconfig (GH-106610)
Miss Islington (bot) [Sun, 16 Jul 2023 07:10:39 +0000 (00:10 -0700)] 
wasm: do not use inline comment in .editorconfig (GH-106610)

It is no longer valid since 0.15.0
https://github.com/editorconfig/specification/blob/v0.15/index.rstGH-no-inline-comments
(cherry picked from commit 64c0890b697783db9b3f67e3bb4dcee1165a0b9b)

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2 years ago[3.12] Docs: Normalize Argument Clinic How-To section capitalization (GH-106788)...
Miss Islington (bot) [Sat, 15 Jul 2023 22:43:46 +0000 (15:43 -0700)] 
[3.12] Docs: Normalize Argument Clinic How-To section capitalization (GH-106788) (#106791)

(cherry picked from commit 8c177294899b621fe04ae755abd41b4d319dd4b5)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] Add more examples to the recipe docs (GH-106782) (GH-106783)
Miss Islington (bot) [Sat, 15 Jul 2023 20:09:20 +0000 (13:09 -0700)] 
[3.12] Add more examples to the recipe docs (GH-106782) (GH-106783)

2 years ago[3.12] gh-106752: Sync with zipp 3.16.2 (GH-106757) (#106777)
Miss Islington (bot) [Sat, 15 Jul 2023 14:15:24 +0000 (07:15 -0700)] 
[3.12] gh-106752: Sync with zipp 3.16.2 (GH-106757) (#106777)

gh-106752: Sync with zipp 3.16.2 (GH-106757)

* gh-106752: Sync with zipp 3.16.2

* Add blurb
(cherry picked from commit 22980dc7c9dcec4b74fea815542601ef582c230e)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2 years ago[3.12] gh-106745: typing docs: Clarify that removal of PEP-585 aliases is not current...
Alex Waygood [Sat, 15 Jul 2023 10:31:12 +0000 (11:31 +0100)] 
[3.12] gh-106745: typing docs: Clarify that removal of PEP-585 aliases is not currently planned (#106748) (#106772)

2 years ago[3.12] gh-106368: Increase Argument Clinic BlockParser test coverage (GH-106759)...
Miss Islington (bot) [Sat, 15 Jul 2023 09:55:25 +0000 (02:55 -0700)] 
[3.12] gh-106368: Increase Argument Clinic BlockParser test coverage (GH-106759) (#106769)

(cherry picked from commit 2d7d1aa4bcd5da0177458b22b1b856db76aa20d4)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] gh-105235: Prevent reading outside buffer during mmap.find() (GH-105252) ...
Miss Islington (bot) [Sat, 15 Jul 2023 02:15:14 +0000 (19:15 -0700)] 
[3.12] gh-105235: Prevent reading outside buffer during mmap.find() (GH-105252) (#106708)

gh-105235: Prevent reading outside buffer during mmap.find() (GH-105252)

* Add a special case for s[-m:] == p in _PyBytes_Find

* Add tests for _PyBytes_Find

* Make sure that start <= end in mmap.find
(cherry picked from commit ab86426a3472ab68747815299d390b213793c3d1)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
2 years ago[3.12] gh-106752: Move zipfile._path into its own package (GH-106753) (#106755)
Jason R. Coombs [Fri, 14 Jul 2023 21:11:13 +0000 (17:11 -0400)] 
[3.12] gh-106752: Move zipfile._path into its own package (GH-106753) (#106755)

* gh-106752: Move zipfile._path into its own package so it may have supplementary behavior.

* Add blurb.
(cherry picked from commit 03185f0c150ebc52d41dd5ea6f369c7b5ba9fc16)

2 years ago[3.12] gh-106634: Corrected minor asyncio doc issues (GH-106671) (#106712)
Miss Islington (bot) [Fri, 14 Jul 2023 09:40:32 +0000 (02:40 -0700)] 
[3.12] gh-106634: Corrected minor asyncio doc issues (GH-106671) (#106712)

gh-106634: Corrected minor asyncio doc issues (GH-106671)
(cherry picked from commit 4b4a5b70aa8d47b1e2a0582b741c31b786da762a)

Co-authored-by: Chris Brett <chrisbrett665@gmail.com>
2 years ago[3.12] gh-106446: Fix failed doctest in stdtypes (GH-106447) (#106741)
Miss Islington (bot) [Fri, 14 Jul 2023 08:01:35 +0000 (01:01 -0700)] 
[3.12] gh-106446: Fix failed doctest in stdtypes (GH-106447) (#106741)

(cherry picked from commit 89867d2491c0c3ef77bc237899b2f0762f43c03c)

Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.12] gh-105626: Change the default return value of `HTTPConnection.get_proxy_respon...
Miss Islington (bot) [Fri, 14 Jul 2023 07:21:02 +0000 (00:21 -0700)] 
[3.12] gh-105626: Change the default return value of `HTTPConnection.get_proxy_response_headers` (GH-105628) (#106738)

gh-105626: Change the default return value of `HTTPConnection.get_proxy_response_headers` (GH-105628)
(cherry picked from commit 490295d651d04ec3b3eff2a2cda7501191bad78a)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-106368: Increase Argument Clinic test coverage (GH-106728) (#106730)
Miss Islington (bot) [Thu, 13 Jul 2023 22:52:21 +0000 (15:52 -0700)] 
[3.12] gh-106368: Increase Argument Clinic test coverage (GH-106728) (#106730)

- improve output_parameter() coverage
- improve coverage for Function.kind
(cherry picked from commit ec45c513d389510930a62631a21a1dbb3f3aabb7)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.12] gh-106602: [Enum] Add __copy__ and __deepcopy__ (GH-106695)
Miss Islington (bot) [Wed, 12 Jul 2023 22:47:53 +0000 (15:47 -0700)] 
[3.12] gh-106602: [Enum] Add __copy__ and __deepcopy__ (GH-106695)

gh-106602: [Enum] Add __copy__ and __deepcopy__ (GH-106666)
(cherry picked from commit 357e9e9da3929cb9d55ea31896e66f488e44e8f2)

Co-authored-by: Prince Roshan <princekrroshan01@gmail.com>
2 years ago[3.12] gh-96747: Mention the PyPI `passlib` package in the `crypt` deprecation doc...
Yonatan Bitton [Wed, 12 Jul 2023 21:58:51 +0000 (00:58 +0300)] 
[3.12] gh-96747: Mention the PyPI `passlib` package in the `crypt` deprecation doc (GH-106660) (#106660)

* Added mention to passlib package as alternative to the deprecated crypt module.

2 years ago[3.12] gh-99079: Update Windows build to use OpenSSL 3.0.9 (GH-106649) (#106680)
Miss Islington (bot) [Wed, 12 Jul 2023 14:30:52 +0000 (07:30 -0700)] 
[3.12] gh-99079: Update Windows build to use OpenSSL 3.0.9 (GH-106649) (#106680)

gh-99079: Update Windows build to use OpenSSL 3.0.9 (GH-106649)
(cherry picked from commit e2d7366fb3df44e7434132636d49f22d6d25cc9f)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 years ago[3.12] gh-103186: In test_tools.freeze, fetch CONFIG_ARGS from original source direct...
Miss Islington (bot) [Wed, 12 Jul 2023 07:32:51 +0000 (00:32 -0700)] 
[3.12] gh-103186: In test_tools.freeze, fetch CONFIG_ARGS from original source directory (GH-103213) (#106667)

gh-103186: In test_tools.freeze, fetch CONFIG_ARGS from original source directory (GH-103213)

Fetch CONFIG_ARGS from the original source directory, instead of from
the copied source tree. When "make clean" is executed in the copied
source tree, the build directory is cleared and the configure argument
lookup fails. However, the original source directory still contains this
information.
(cherry picked from commit de827322ca47e51d52ff44536a7c3fd44648383a)

Co-authored-by: Ijtaba Hussain <ijtabahussain@live.com>
2 years ago[3.12] Add Plausible for docs metrics (GH-106644) (#106661)
Miss Islington (bot) [Wed, 12 Jul 2023 02:46:12 +0000 (19:46 -0700)] 
[3.12] Add Plausible for docs metrics (GH-106644) (#106661)

Add Plausible for docs metrics (GH-106644)
(cherry picked from commit e8ab0096a583184fe24dfbc39eff70d270c8e6f4)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-96165: Clarify passing ":memory:" in sqlite3.connect() (GH-106451) (#106647)
Miss Islington (bot) [Tue, 11 Jul 2023 20:31:48 +0000 (13:31 -0700)] 
[3.12] gh-96165: Clarify passing ":memory:" in sqlite3.connect() (GH-106451) (#106647)

(cherry picked from commit f520804b039df0d87fb9df6f1fed2a9bc9df8d61)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2 years ago[3.12] gh-96165: Clarify omitting the FROM clause in SQLite queries (GH-106513) ...
Miss Islington (bot) [Tue, 11 Jul 2023 20:31:16 +0000 (13:31 -0700)] 
[3.12] gh-96165: Clarify omitting the FROM clause in SQLite queries (GH-106513) (#106645)

(cherry picked from commit fc7ff1af457e27b7d9752600b3436641be90f598)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2 years ago[3.12] gh-102541: Add test case for help() for non_existent_module (GH-106340) (...
Miss Islington (bot) [Tue, 11 Jul 2023 18:35:13 +0000 (11:35 -0700)] 
[3.12] gh-102541: Add test case for help() for non_existent_module (GH-106340) (#106639)

gh-102541: Add test case for help() for non_existent_module (GH-106340)

Test fix for when one enters, for instance, 'abd' at the 'help>' prompt.
---------

(cherry picked from commit 292ac4bfe92768140c2d383fd329cfa1949869b2)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.12] gh-106625 : Add missing code to tutorial 4.6 example (GH-106623) (#106636)
Miss Islington (bot) [Tue, 11 Jul 2023 17:40:59 +0000 (10:40 -0700)] 
[3.12] gh-106625 : Add missing code to tutorial 4.6 example (GH-106623) (#106636)

(cherry picked from commit d0b7e18262e69dd4b8252e804e4f98fc9533bcd6)

Co-authored-by: RustyNail <takonoyawarakaage@yahoo.co.jp>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.12] gh-106403: Restore weakref support for TypeVar and friends (GH-106418) (#106635)
Miss Islington (bot) [Tue, 11 Jul 2023 16:15:30 +0000 (09:15 -0700)] 
[3.12] gh-106403: Restore weakref support for TypeVar and friends (GH-106418) (#106635)

gh-106403: Restore weakref support for TypeVar and friends (GH-106418)
(cherry picked from commit 945d3cbf2e8e756ed16c3ec51106e6157abb2698)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years agoMerge branch '3.12' of https://github.com/python/cpython into 3.12
Thomas Wouters [Tue, 11 Jul 2023 16:05:57 +0000 (18:05 +0200)] 
Merge branch '3.12' of https://github.com/python/cpython into 3.12

2 years agoPost 3.12.0b4
Thomas Wouters [Tue, 11 Jul 2023 16:05:38 +0000 (18:05 +0200)] 
Post 3.12.0b4

2 years ago[3.12] gh-106498: Revert incorrect colorsys.rgb_to_hls change (GH-106627) (#106632)
Miss Islington (bot) [Tue, 11 Jul 2023 15:47:15 +0000 (08:47 -0700)] 
[3.12] gh-106498: Revert incorrect colorsys.rgb_to_hls change (GH-106627) (#106632)

gh-106498: Revert incorrect colorsys.rgb_to_hls change (GH-106627)

gh-86618 assumed a-b-c = a-(b+c) = a-d where d = b+d.
For floats 2.0, 1.0, and 0.9999999999999999, this assumption
is false.  The net change of 1.1102230246251565e-16 to 0.0
results in division by 0.  Revert the replacement.  Add test.
(cherry picked from commit a2d54d4e8ab12f967a220be88bde8ac8227c5ab3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years agoPython 3.12.0b4 v3.12.0b4
Thomas Wouters [Tue, 11 Jul 2023 12:22:17 +0000 (14:22 +0200)] 
Python 3.12.0b4

2 years ago[3.12] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468...
Miss Islington (bot) [Tue, 11 Jul 2023 12:09:41 +0000 (05:09 -0700)] 
[3.12] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468) (#106620)

gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468)

For example:

    class Flag(enum.Flag):
        A = 0x01
        B = 0x02
        MASK = 0xff

    ~Flag.MASK is Flag(0)
(cherry picked from commit 95b7426f45edb570869a5513c142f29ed9f851a1)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2 years ago[3.12] gh-103968: What's New: Add porting hints for PyType_From with metaclasses...
Miss Islington (bot) [Tue, 11 Jul 2023 11:53:40 +0000 (04:53 -0700)] 
[3.12] gh-103968: What's New: Add porting hints for PyType_From with metaclasses (GH-105698) (GH-106619)

gh-103968: What's New: Add porting hints for PyType_From with metaclasses (GH-105698)
(cherry picked from commit af5cf1e75136fcef967d4ebe1bc45f29e6dc1bcf)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years ago[3.12] gh-102988: Detect email address parsing errors and return empty tuple to indic...
Miss Islington (bot) [Mon, 10 Jul 2023 23:38:42 +0000 (16:38 -0700)] 
[3.12] gh-102988: Detect email address parsing errors and return empty tuple to indicate the parsing error (old API) (GH-105127) (#106612)

gh-102988: Detect email address parsing errors and return empty tuple to indicate the parsing error (old API) (GH-105127)

Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). This fixes or at least ameliorates CVE-2023-27043.

---------

(cherry picked from commit 18dfbd035775c15533d13a98e56b1d2bf5c65f00)

Co-authored-by: Thomas Dwyer <github@tomd.tel>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.12] gh-94777: Fix deadlock in ProcessPoolExecutor (GH-94784) (#106609)
Miss Islington (bot) [Mon, 10 Jul 2023 22:49:07 +0000 (15:49 -0700)] 
[3.12] gh-94777: Fix deadlock in ProcessPoolExecutor (GH-94784) (#106609)

gh-94777: Fix deadlock in ProcessPoolExecutor (GH-94784)

Fixes a hang in multiprocessing process pool executor when a child process crashes and code could otherwise block on writing to the pipe.  See GH-94777 for more details.
(cherry picked from commit 6782fc050281205734700a1c3e13b123961ed15b)

Co-authored-by: Louis Paulot <55740424+lpaulot@users.noreply.github.com>
2 years ago[3.12] gh-103186: Fix or catch 'extra' stderr output from unittests (GH-103196) ...
Miss Islington (bot) [Mon, 10 Jul 2023 21:03:32 +0000 (14:03 -0700)] 
[3.12] gh-103186: Fix or catch 'extra' stderr output from unittests (GH-103196) (#106605)

gh-103186: Fix or catch 'extra' stderr output from unittests (GH-103196)

Reduce test noise by fixing or catching and testing stderr messages from individual tests.

test_cmd_line_script.test_script_as_dev_fd calls spawn_python and hence subprocess.Popen with incompatible arguments. On POSIX, pass_fds forces close_fds to be True (subprocess.py line 848). Correct the call.

test_uuid.test_cli_namespace_required_for_uuid3: when the namespace is omitted, uuid.main calls argparse.Argument_Parser.error, which prints to stderr before calling sys.exit, which raises SystemExit. Unittest assertRaises catches the exception but not the previous output. Catch the output and test it.

test_warnings.test_catchwarnings_with_simplefilter_error similarly prints before raising. Catch the output and test it.
---------

(cherry picked from commit 9d582250d8fde240b8e7299b74ba888c574f74a3)

Co-authored-by: Ijtaba Hussain <ijtabahussain@live.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2 years ago[3.12] gh-99593: Add tests for Unicode C API (part 3) (GH-104728) (GH-106595)
Serhiy Storchaka [Mon, 10 Jul 2023 17:58:58 +0000 (20:58 +0300)] 
[3.12] gh-99593: Add tests for Unicode C API (part 3) (GH-104728) (GH-106595)

Add tests for codecs.
(cherry picked from commit 51ea664d18938645521bdd128a3c55f9c197644c)

2 years ago[3.12] gh-105227: Add PyType_GetDict() (GH-105747) (#106600)
Miss Islington (bot) [Mon, 10 Jul 2023 17:12:15 +0000 (10:12 -0700)] 
[3.12] gh-105227: Add PyType_GetDict() (GH-105747) (#106600)

gh-105227: Add PyType_GetDict() (GH-105747)

This compensates for static builtin types having `tp_dict` set to `NULL`.

(cherry picked from commit a840806d338805fe74a9de01081d30da7605a29f)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years ago[3.12] Clarify how topics.py gets created. (GH-106121) (#106579)
Miss Islington (bot) [Mon, 10 Jul 2023 03:42:22 +0000 (20:42 -0700)] 
[3.12] Clarify how topics.py gets created. (GH-106121) (#106579)

Clarify how topics.py gets created. (GH-106121)

When changing docs, it was easy to find text in topics.py, and I
wondered whether I was supposed to edit it.  Thankfully, the top of the
file says it's auto-generated, so I knew I didn't have to edit it. But I
didn't know what started the auto-generation process.

It's part of the release process, so I'll leave a note here for future
editors.
(cherry picked from commit dac1e364901d3668742e6eecc2ce63586330c11f)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 years ago[3.12] gh-106461: typing: Consolidate docs on `Callable` (GH-106462) (#106574)
Miss Islington (bot) [Sun, 9 Jul 2023 21:21:54 +0000 (14:21 -0700)] 
[3.12] gh-106461: typing: Consolidate docs on `Callable` (GH-106462) (#106574)

gh-106461: typing: Consolidate docs on `Callable` (GH-106462)
(cherry picked from commit ca8b55c7f54b38e264056148075a8061a7082013)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] Move implementation specific RE tests to separate class (GH-106563) (#106564)
Miss Islington (bot) [Sun, 9 Jul 2023 10:14:39 +0000 (03:14 -0700)] 
[3.12] Move implementation specific RE tests to separate class (GH-106563) (#106564)

Move implementation specific RE tests to separate class (GH-106563)
(cherry picked from commit 8cb6f9761e3c1cff3210697e3670b57591bf2e7a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-106510: Fix DEBUG output for atomic group (GH-106511) (GH-106548)
Miss Islington (bot) [Sat, 8 Jul 2023 12:15:54 +0000 (05:15 -0700)] 
[3.12] gh-106510: Fix DEBUG output for atomic group (GH-106511) (GH-106548)

(cherry picked from commit 74ec02e9490d8aa086aa9ad9d1d34d2ad999b5af)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-101880: add link to object.__hash__() in hash() builtin documentation ...
Miss Islington (bot) [Sat, 8 Jul 2023 08:52:50 +0000 (01:52 -0700)] 
[3.12] gh-101880: add link to object.__hash__() in hash() builtin documentation (GH-101883) (#106546)

gh-101880: add link to object.__hash__() in hash() builtin documentation (GH-101883)
(cherry picked from commit ec7180bd1b3c156d4484e8e6babc5ecb707420e3)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>