]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.11] gh-103142: Update macOS installer to use OpenSSL 1.1.1u. (GH-105131)
Miss Islington (bot) [Wed, 31 May 2023 06:15:45 +0000 (23:15 -0700)] 
[3.11] gh-103142: Update macOS installer to use OpenSSL 1.1.1u. (GH-105131)

(cherry picked from commit f90d3f68db720bd6d0deda8cc0030339ccd43858)

Co-authored-by: Ned Deily <nad@python.org>
2 years agoEnable the ABI check job to publish the updated ABI data file (GH-105103)
Steve Dower [Tue, 30 May 2023 19:33:42 +0000 (20:33 +0100)] 
Enable the ABI check job to publish the updated ABI data file (GH-105103)

2 years ago[3.11] GH-89455: Add missing attributes (added in 3.11) to traceback module docs...
Miss Islington (bot) [Mon, 29 May 2023 19:37:49 +0000 (12:37 -0700)] 
[3.11] GH-89455: Add missing attributes (added in 3.11) to traceback module docs (GH-105044) (#105067)

GH-89455: Add missing attributes (added in 3.11) to traceback module docs (GH-105044)
(cherry picked from commit 39f6a0489fcc815a578d27dfee2feea003c896f8)

Co-authored-by: Jakub Kuczys <me@jacken.men>
2 years ago[3.11] gh-103921: Improve typing documentation (GH-104642) (#105007)
Jelle Zijlstra [Sat, 27 May 2023 23:30:41 +0000 (16:30 -0700)] 
[3.11] gh-103921: Improve typing documentation (GH-104642) (#105007)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.11] gh-104497: Make tkinter test pass with tk 8.7 (GH-104789) (#105029)
Miss Islington (bot) [Sat, 27 May 2023 21:52:14 +0000 (14:52 -0700)] 
[3.11] gh-104497: Make tkinter test pass with tk 8.7 (GH-104789) (#105029)

For test_widgets.MenuTest.test_configure_type, the options
in the error message change to alphabetical order.
---------

(cherry picked from commit 897e716d03d559a10dd5015ecb501ceb98955f3a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] CI: Precompute hash for config cache key in check_source job (GH-105008) ...
Itamar Ostricher [Sat, 27 May 2023 18:40:43 +0000 (11:40 -0700)] 
[3.11] CI: Precompute hash for config cache key in check_source job (GH-105008) (#105024)

2 years ago[3.11] gh-104992: [What's New in 3.11] Document unittest.TestProgram.usageExit's...
Miss Islington (bot) [Sat, 27 May 2023 02:43:04 +0000 (19:43 -0700)] 
[3.11] gh-104992: [What's New in 3.11] Document unittest.TestProgram.usageExit's deprecation (GH-104994) (#105010)

gh-104992: [What's New in 3.11] Document unittest.TestProgram.usageExit's deprecation (GH-104994)

Document unittest.TestProgram.usageExit's pending removal in 3.13
(cherry picked from commit 7df861c23cd61e7c55943d4036ea5c6b1df5cb49)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-104984: remove kwargs and starargs from Call & ClassDef (GH-104986) (#104988)
Miss Islington (bot) [Fri, 26 May 2023 17:14:03 +0000 (10:14 -0700)] 
[3.11] gh-104984: remove kwargs and starargs from Call & ClassDef (GH-104986) (#104988)

gh-104984: remove kwargs and starargs from Call & ClassDef (GH-104986)

These fields are removed in https://github.com/python/cpython/commit/025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1
(cherry picked from commit 61c1d6760facbc172a58512cad46148f587b4da1)

Co-authored-by: Shaygan Hooshyari <sh.hooshyari@gmail.com>
2 years ago[3.11] CI: Cache config.cache across runs to speed up build (GH-104800) (#104968)
Hugo van Kemenade [Fri, 26 May 2023 16:09:09 +0000 (19:09 +0300)] 
[3.11] CI: Cache config.cache across runs to speed up build (GH-104800) (#104968)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] Remove raw asserts in test_typing.py (GH-104951) (#104979)
Miss Islington (bot) [Fri, 26 May 2023 14:34:37 +0000 (07:34 -0700)] 
[3.11] Remove raw asserts in test_typing.py (GH-104951) (#104979)

Remove raw asserts in test_typing.py (GH-104951)
(cherry picked from commit 2cb445635e99d4401949cabebd373288cfdd0138)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] gh-104924: Fix `read()able` in `http.client` log messages (gh-104926) (gh...
Miss Islington (bot) [Fri, 26 May 2023 12:02:13 +0000 (05:02 -0700)] 
[3.11] gh-104924: Fix `read()able` in `http.client` log messages (gh-104926) (gh-104971)

gh-104924: Fix `read()able` in `http.client` log messages (gh-104926)
(cherry picked from commit 6c81d7572edbe3a5800b1128e55a2dcef03cc13c)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2 years ago[3.11] gh-104943: Remove mentions of old Python versions (GH-104945) (#104962)
Miss Islington (bot) [Fri, 26 May 2023 07:13:45 +0000 (00:13 -0700)] 
[3.11] gh-104943: Remove mentions of old Python versions (GH-104945) (#104962)

(cherry picked from commit 46857d0b2a2ac6aeb6dcce2bf2c92ddf4abe7496)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
2 years ago[3.11] Fix typo in the tokenizer (GH-104950) (#104952)
Miss Islington (bot) [Fri, 26 May 2023 06:32:04 +0000 (23:32 -0700)] 
[3.11] Fix typo in the tokenizer (GH-104950) (#104952)

(cherry picked from commit 705e387dd81b971cb1ee5727da54adfb565f61d0)

Co-authored-by: Stepfen Shawn <m18824909883@163.com>
2 years ago[3.11] gh-104479: Update outdated tutorial floating-point reference (GH-104681) ...
Shantanu [Fri, 26 May 2023 06:30:03 +0000 (23:30 -0700)] 
[3.11] gh-104479: Update outdated tutorial floating-point reference (GH-104681) (#104961)

(cherry picked from commit 2cf04e455d8f087bd08cd1d43751007b5e41b3c5)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2 years ago[3.11] Fix test_importlib.test_side_effect_import() (GH-104840) (#104843)
Miss Islington (bot) [Thu, 25 May 2023 00:35:34 +0000 (17:35 -0700)] 
[3.11] Fix test_importlib.test_side_effect_import() (GH-104840) (#104843)

Fix test_importlib.test_side_effect_import() (GH-104840)

Wait until the thread spawn by the import completes to avoid dangling
threads. With this fix, the following command no longer fails:

./python -m test --fail-env-changed test_importlib -m test_side_effect_import -F -j20
(cherry picked from commit 426950993f6a39cdf3f6a3333ac8b518833c7e61)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.11] gh-104874: Document NewType.__supertype__ (GH-104875) (#104907)
Miss Islington (bot) [Wed, 24 May 2023 23:35:58 +0000 (16:35 -0700)] 
[3.11] gh-104874: Document NewType.__supertype__ (GH-104875) (#104907)

gh-104874: Document NewType.__supertype__ (GH-104875)
(cherry picked from commit 41768a2bd3a8f57e6ce4e4ae9cab083b69817ec1)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] Improve test coverage for is_typeddict (GH-104884) (#104888)
Miss Islington (bot) [Wed, 24 May 2023 19:23:35 +0000 (12:23 -0700)] 
[3.11] Improve test coverage for is_typeddict (GH-104884) (#104888)

In particular, it's important to test that is_typeddict(TypedDict)
returns False.
(cherry picked from commit 1497607a8e99f1103c40368dd5f9057f0146a520)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] gh-103207: The macOS 13 Ventura Installer.app permission problem is fixed...
Ned Deily [Wed, 24 May 2023 18:34:25 +0000 (14:34 -0400)] 
[3.11] gh-103207: The macOS 13 Ventura Installer.app permission problem is fixed by Apple in macOS 13.4. (GH-104885)

2 years ago[3.11] gh-104719: IDLE - test existence of all tokenize references. (GH-104767) ...
Miss Islington (bot) [Wed, 24 May 2023 12:46:33 +0000 (05:46 -0700)] 
[3.11] gh-104719: IDLE - test existence of all tokenize references. (GH-104767) (#104845)

gh-104719: IDLE - test existence of all tokenize references. (GH-104767)

Class editor.IndentSearcher contains all editor references to tokenize module.
Module io tokenize reference cover those other modules.

(cherry picked from commit e561c09975bf67ad8bb67c56a81e30a9165bcc84)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] gh-104372: Cleanup _posixsubprocess make_inheritable for async signal safety...
Gregory P. Smith [Wed, 24 May 2023 03:42:25 +0000 (20:42 -0700)] 
[3.11] gh-104372: Cleanup _posixsubprocess make_inheritable for async signal safety gh-104518 (#104785)

Move all of the Python C API calls into the parent process up front
instead of doing PyLong_AsLong and PyErr_Occurred and PyTuple_GET from
the post-fork/vfork child process.

Much of this was long overdue. We shouldn't have been using PyTuple and
PyLong APIs within all of these low level functions anyways.

This is a backport of c649df6 for #104518 and the tiny adjustment in d1732fe #104697.

Backporting this allows backporting of the real bug fix that requires it.

Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
2 years ago[3.11] gh-104271: Fix auto() fallback in case of mixed type Enum (GH-104809)
Miss Islington (bot) [Tue, 23 May 2023 19:48:20 +0000 (12:48 -0700)] 
[3.11] gh-104271: Fix auto() fallback in case of mixed type Enum (GH-104809)

[3.12] gh-104271: Fix auto() fallback in case of mixed type Enum (GH-104279)
(cherry picked from commit f4e2049f14d40c1b893c68530eec5e341cf3d929)

Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
2 years ago[3.11] gh-103726: Set up gcc-10 for ASAN (gh-103728) (#104794)
Miss Islington (bot) [Tue, 23 May 2023 08:10:44 +0000 (01:10 -0700)] 
[3.11] gh-103726: Set up gcc-10 for ASAN (gh-103728) (#104794)

Set up gcc-10 for ASAN CI as the existing config's default 9.x does not
play well with `vfork()`.

<!--
Thanks for your contribution!
Please read this comment in its entirety. It's quite important.

GH- Pull Request title

It should be in the following format:

```
gh-NNNNN: Summary of the changes made
```

Where: gh-NNNNN refers to the GitHub issue number.

Most PRs will require an issue number. Trivial changes, like fixing a
typo, do not need an issue.

GH- Backport Pull Request title

If this is a backport PR (PR made against branches other than `main`),
please ensure that the PR title is in the following format:

```
[X.Y] <title from the original PR> (GH-NNNN)
```

Where: [X.Y] is the branch name, e.g. [3.6].

GH-NNNN refers to the PR number from `main`.

-->

<!-- gh-issue-number: gh-103726 -->
* Issue: gh-103726
<!-- /gh-issue-number -->
(cherry picked from commit 83305808000e03cbad31ac3e9ef65454fb409282)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2 years ago[3.11] howto/urllib2: remove link to an outdated french translation (GH-104193) ...
Miss Islington (bot) [Mon, 22 May 2023 17:57:05 +0000 (10:57 -0700)] 
[3.11] howto/urllib2: remove link to an outdated french translation (GH-104193) (GH-104746)

howto/urllib2: remove link to an outdated french translation (GH-104193)

We now have our own translation and it's not outdated
(cherry picked from commit 151b6bfb5d9a15b6e2682e5a3008a3f9ec3086ae)

Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
2 years ago[3.11] gh-104536: Improve `multiprocessing.process._cleanup` logic (GH-104537) (...
Miss Islington (bot) [Mon, 22 May 2023 10:49:33 +0000 (03:49 -0700)] 
[3.11] gh-104536: Improve `multiprocessing.process._cleanup` logic (GH-104537) (#104737)

Fix a race condition in the internal `multiprocessing.process` cleanup
logic that could manifest as an unintended `AttributeError` when calling
`BaseProcess.close()`.

(cherry picked from commit ef5d00a59207a63c6d5ae0d5d44054847d1bf3b5)

Co-authored-by: Luccccifer <lukezhang764@gmail.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.11] gh-102978: Fix mock.patch function signatures for class and staticmethod decor...
Miss Islington (bot) [Mon, 22 May 2023 10:47:12 +0000 (03:47 -0700)] 
[3.11] gh-102978: Fix mock.patch function signatures for class and staticmethod decorators (GH-103228) (#103499)

Fixes unittest.mock.patch not enforcing function signatures for methods
decorated with @classmethod or @staticmethod when patch is called with
autospec=True.

(cherry picked from commit 59e0de4903c02e72b329e505fddf1ad9794928bc)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
2 years ago[3.11] Add IPv6 into to the docstring for socket.getsockname (GH-102961) (#103137)
Miss Islington (bot) [Mon, 22 May 2023 10:46:45 +0000 (03:46 -0700)] 
[3.11] Add IPv6 into to the docstring for socket.getsockname (GH-102961) (#103137)

Add IPv6 into to the docstring for socket.getsockname (GH-102961)
(cherry picked from commit ecc5441505cd7cb54f3d38409c732e2e9f102137)

Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
Co-authored-by: Brian Haley <brianphaley@gmail.com>
2 years ago[3.11] gh-104683: `clinic.py`: Improve coverage for the `parse_converter` method...
Alex Waygood [Sun, 21 May 2023 23:48:25 +0000 (00:48 +0100)] 
[3.11] gh-104683: `clinic.py`: Improve coverage for the `parse_converter` method (#104729) (#104730)

2 years ago[3.11] gh-103606: Improve error message from logging.config.FileConfig (GH-103628...
Prince Roshan [Sun, 21 May 2023 19:17:18 +0000 (00:47 +0530)] 
[3.11] gh-103606: Improve error message from logging.config.FileConfig (GH-103628) (#104687)

* gh-103606: Improve error message from logging.config.FileConfig (GH-103628)

(cherry picked from commit 152227b569c3a9b87fe0483706f704762ced6d75)

plus backport the followup exception change fix to that in #104701

2 years ago[3.11] gh-104719: IDLE - delete useless monkeypatch of tokenize (GH-104726) (#104727)
Miss Islington (bot) [Sun, 21 May 2023 19:16:12 +0000 (12:16 -0700)] 
[3.11] gh-104719: IDLE - delete useless monkeypatch of tokenize (GH-104726) (#104727)

gh-104719: IDLE - delete useless monkeypatch of tokenize (GH-104726)
(cherry picked from commit 0c5e79bcdf99a6a07c65b0ea6d7701b6e041481c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.11] typing docs: Move some classes out of the "Generics" section (GH-104707) ...
Jelle Zijlstra [Sun, 21 May 2023 13:31:26 +0000 (06:31 -0700)] 
[3.11] typing docs: Move some classes out of the "Generics" section (GH-104707) (#104721)

- AnyStr can be used in type annotations, contrary to the section header
- Unpack can also be used in annotations, and its use is not restricted
  to generics. It makes more sense with other building blocks like Required.
- Protocol is not necessarily generic.

Also fix the indentation for two notes associated with Concatenate.

(cherry picked from commit ab71acd67b5b09926498b8c7f855bdb28ac0ec2f)

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.11] Corrected identifier (GH-104713) (#104714)
Miss Islington (bot) [Sun, 21 May 2023 06:06:17 +0000 (23:06 -0700)] 
[3.11] Corrected identifier (GH-104713) (#104714)

Corrected identifier (GH-104713)
(cherry picked from commit 60993ba8b4a04dfcf2d3067d919bcce160f01bd5)

Co-authored-by: William Sawyer <wmsawyer2609@gmail.com>
2 years ago[3.11] gh-104698: Fix reference leak in mmapmodule.c (GH-104700) (#104710)
Miss Islington (bot) [Sun, 21 May 2023 01:43:18 +0000 (18:43 -0700)] 
[3.11] gh-104698: Fix reference leak in mmapmodule.c (GH-104700) (#104710)

(cherry picked from commit 99b641886a09252bbcf99a1d322fa8734f1ca30d)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] gh-101857: Allow xattr detection on musl libc (GH-101858) (#101894)
Miss Islington (bot) [Sun, 21 May 2023 00:17:27 +0000 (17:17 -0700)] 
[3.11] gh-101857: Allow xattr detection on musl libc (GH-101858) (#101894)

gh-101857: Allow xattr detection on musl libc (GH-101858)

Previously, we checked exclusively for `__GLIBC__` (AND'd with some other
conditions). Checking for `__linux__` instead should be fine.

This fixes using e.g. `os.listxattr()` on systems using musl libc.

Bug: https://bugs.gentoo.org/894130

(cherry picked from commit 8be8101bca34b60481ec3d7ecaea4a3379fb7dbb)

Co-authored-by: Sam James <sam@gentoo.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.11] gh-49174: document that the effect of calling gc.collect() during a collection...
Miss Islington (bot) [Sat, 20 May 2023 20:12:52 +0000 (13:12 -0700)] 
[3.11] gh-49174: document that the effect of calling gc.collect() during a collection is undefined (GH-104699) (#104703)

gh-49174: document that the effect of calling gc.collect() during a collection is undefined (GH-104699)
(cherry picked from commit 30488fa22a8f63753192ae7f1d01665857764e45)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2 years ago[3.11] gh-104679 Fixed syntax highlighting in turtle docs (GH-104682). (#104695)
han-solo [Sat, 20 May 2023 16:36:43 +0000 (22:06 +0530)] 
[3.11] gh-104679 Fixed syntax highlighting in turtle docs (GH-104682). (#104695)

(cherry picked from commit 2c97878bb8a09f5aba8bf413bb794f6efd5065df)

2 years ago[3.11] gh-56276: Add tests to test_compare (GH-3199) (#104694)
Miss Islington (bot) [Sat, 20 May 2023 16:31:42 +0000 (09:31 -0700)] 
[3.11] gh-56276: Add tests to test_compare (GH-3199) (#104694)

gh-56276: Add tests to test_compare (GH-3199)
(cherry picked from commit 68ee8b3f15b744339c156bfeb583a414061ab22d)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2 years ago[3.11] gh-103987: fix several crashes in mmap module (GH-103990) (#104677)
Miss Islington (bot) [Sat, 20 May 2023 03:59:54 +0000 (20:59 -0700)] 
[3.11] gh-103987: fix several crashes in mmap module (GH-103990) (#104677)

gh-103987: fix several crashes in mmap module (GH-103990)
(cherry picked from commit ceaa4c3476ac49b5b31954fec53796c7a3b40349)

Co-authored-by: Prince Roshan <princekrroshan01@gmail.com>
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] gh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env` if ASAN is...
Miss Islington (bot) [Fri, 19 May 2023 21:48:07 +0000 (14:48 -0700)] 
[3.11] gh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env` if ASAN is enabled (GH-104667) (#104673)

gh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env` if ASAN is enabled (GH-104667)

Skip test_subprocess.ProcessTestCase.test_empty_env if ASAN is enabled.
(cherry picked from commit c3f43bfb4bec39ff8f2c36d861a3c3a243bcb3af)

Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
2 years ago[3.11] docs: fix wrong indentation causing rendering error in dis page (GH-104661...
Miss Islington (bot) [Fri, 19 May 2023 20:25:43 +0000 (13:25 -0700)] 
[3.11] docs: fix wrong indentation causing rendering error in dis page (GH-104661) (#104670)

docs: fix wrong indentation causing rendering error in dis page (GH-104661)
(cherry picked from commit 3bc94e678f2961eafc9d665898d73afc6204d314)

Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>
2 years ago[3.11] gh-104659: Consolidate python examples in enum documentation (#104665) (#104666)
Hugo van Kemenade [Fri, 19 May 2023 20:12:57 +0000 (23:12 +0300)] 
[3.11] gh-104659: Consolidate python examples in enum documentation (#104665) (#104666)

gh-104659: Consolidate python examples in enum documentation (#104665)

(cherry picked from commit 3ac856e69734491ff8423020c700c9ae86ac9a08)

Co-authored-by: Thomas Hisch <t.hisch@gmail.com>
2 years ago[3.11] GH-102818: Do not call PyTraceBack_Here in sys.settrace trampoline (GH-104650)
Mark Shannon [Fri, 19 May 2023 18:08:43 +0000 (19:08 +0100)] 
[3.11] GH-102818: Do not call PyTraceBack_Here in sys.settrace trampoline (GH-104650)

Backport of GH-104579

2 years ago[3.11] gh-104615: don't make unsafe swaps in apply_static_swaps (GH-104620). (#104636)
Carl Meyer [Fri, 19 May 2023 18:04:04 +0000 (12:04 -0600)] 
[3.11] gh-104615: don't make unsafe swaps in apply_static_swaps (GH-104620). (#104636)

(cherry picked from commit 0589c6a4d3d822cace42050198cb9a5e99c879ad)

2 years ago[3.11] gh-104645: fix error handling in marshal tests (GH-104646) (#104663)
Miss Islington (bot) [Fri, 19 May 2023 16:46:37 +0000 (09:46 -0700)] 
[3.11] gh-104645: fix error handling in marshal tests (GH-104646) (#104663)

gh-104645: fix error handling in marshal tests (GH-104646)
(cherry picked from commit ac56a854b418d35ad3838f3072604227dc718fca)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2 years ago[3.11] gh-96522: Fix deadlock in pty.spawn (GH-96639) (#104655)
Łukasz Langa [Fri, 19 May 2023 14:54:50 +0000 (16:54 +0200)] 
[3.11] gh-96522: Fix deadlock in pty.spawn (GH-96639) (#104655)

(cherry picked from commit 9c5aa8967bd7c1b02fb1da055c6b3afcccbbb251)

Co-authored-by: Youfu Zhang <1315097+zhangyoufu@users.noreply.github.com>
2 years ago[3.11] gh-85984: Utilize new "winsize" functions from termios in pty tests. (GH-10183...
Miss Islington (bot) [Fri, 19 May 2023 13:57:52 +0000 (06:57 -0700)] 
[3.11] gh-85984: Utilize new "winsize" functions from termios in pty tests. (GH-101831) (#104652)

Utilize new functions termios.tcgetwinsize() and termios.tcsetwinsize in test_pty.py.

(cherry picked from commit da2fb9264315dc30ac3012b4dbf5ba76d3f34433)

Co-authored-by: Soumendra Ganguly <67527439+8vasu@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.11] gh-104623: Update macOS installer to SQLite 3.42.0 (GH-104643)
Miss Islington (bot) [Fri, 19 May 2023 07:16:43 +0000 (00:16 -0700)] 
[3.11] gh-104623: Update macOS installer to SQLite 3.42.0 (GH-104643)

(cherry picked from commit fd04bfeaf7a4531120ad450dbd1afc121a2523ee)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.11] gh-104623: Update Windows installer to use SQLite 3.42.0 (#104625) (#104633)
Erlend E. Aasland [Thu, 18 May 2023 23:33:58 +0000 (01:33 +0200)] 
[3.11] gh-104623: Update Windows installer to use SQLite 3.42.0 (#104625) (#104633)

2 years ago[3.11] gh-104629: Don't skip test_clinic if _testclinic is missing (GH-104630) (...
Miss Islington (bot) [Thu, 18 May 2023 23:20:35 +0000 (16:20 -0700)] 
[3.11] gh-104629: Don't skip test_clinic if _testclinic is missing (GH-104630) (#104632)

gh-104629: Don't skip test_clinic if _testclinic is missing (GH-104630)

Just skip the tests that depend on the _testclinic extension module;
we can still run the Python tests.
(cherry picked from commit 86ee49f469b84e4b746526a00d8191d0e374a268)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.11] gh-104499: Fix typo. (GH-104598) (#104599)
Miss Islington (bot) [Thu, 18 May 2023 17:54:45 +0000 (10:54 -0700)] 
[3.11] gh-104499: Fix typo. (GH-104598) (#104599)

gh-104499: Fix typo. (GH-104598)
(cherry picked from commit c5b670efd1e6dabc94b6308734d63f762480b80f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.11] gh-104499: IDLE - fix completions for tk aqua 8.7 (GH-104591) (#104596)
Miss Islington (bot) [Thu, 18 May 2023 02:02:53 +0000 (19:02 -0700)] 
[3.11] gh-104499: IDLE - fix completions for tk aqua 8.7 (GH-104591) (#104596)

gh-104499: IDLE - fix completions for tk aqua 8.7 (GH-104591)
(cherry picked from commit 678bf57ed04b8c250f0bc031ebd264bece76e731)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.11] gh-104340: Suppress warning about unawaited exception for closed pipe stdin...
Miss Islington (bot) [Thu, 18 May 2023 00:09:12 +0000 (17:09 -0700)] 
[3.11] gh-104340: Suppress warning about unawaited exception for closed pipe stdin (GH-104586) (#104594)

(cherry picked from commit 7fc8e2d4627cdba5cb0075c9052ed6f4b6ecd36d)

Co-authored-by: Guido van Rossum <guido@python.org>
2 years ago[3.11] gh-102153: Start stripping C0 control and space chars in `urlsplit` (GH-102508...
Miss Islington (bot) [Wed, 17 May 2023 21:41:25 +0000 (14:41 -0700)] 
[3.11] gh-102153: Start stripping C0 control and space chars in `urlsplit` (GH-102508) (#104575)

* gh-102153: Start stripping C0 control and space chars in `urlsplit` (GH-102508)

`urllib.parse.urlsplit` has already been respecting the WHATWG spec a bit GH-25595.

This adds more sanitizing to respect the "Remove any leading C0 control or space from input" [rule](https://url.spec.whatwg.org/GH-url-parsing:~:text=Remove%20any%20leading%20and%20trailing%20C0%20control%20or%20space%20from%20input.) in response to [CVE-2023-24329](https://nvd.nist.gov/vuln/detail/CVE-2023-24329).

---------

(cherry picked from commit 2f630e1ce18ad2e07428296532a68b11dc66ad10)

Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
2 years ago[3.11] gh-104496: IDLE - fix About for mixed tcl/tk versions (GH-104585) (#104587)
Miss Islington (bot) [Wed, 17 May 2023 20:31:22 +0000 (13:31 -0700)] 
[3.11] gh-104496: IDLE - fix About for mixed tcl/tk versions (GH-104585) (#104587)

gh-104496: IDLE - fix About for mixed tcl/tk versions (GH-104585)

Print both if they are different, as may happen in the future.
(cherry picked from commit aed643baa968b4959b830d37750080cac546fba7)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.11] typing: Add more tests for TypeVar (GH-104571) (#104577)
Jelle Zijlstra [Wed, 17 May 2023 13:40:34 +0000 (06:40 -0700)] 
[3.11] typing: Add more tests for TypeVar (GH-104571) (#104577)

During the PEP 695 implementation at one point I made
TypeVar.__name__ return garbage, and all of test_typing passed.
So I decided to add a few more tests.
(cherry picked from commit 26931944dd8abd6554249239344fa62b789b9028)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] gh-103861: Fix Zip64 extensions not being properly applied in some cases ...
Gregory P. Smith [Wed, 17 May 2023 08:07:10 +0000 (01:07 -0700)] 
[3.11] gh-103861: Fix Zip64 extensions not being properly applied in some cases (GH-103863) (#104534)

Fix Zip64 extensions not being properly applied in some cases:

Fixes an issue where adding a small file to a `ZipFile`
object while forcing zip64 extensions causes an extra Zip64 record to be
added to the zip, but doesn't update the `min_version` or file sizes in
the primary central directory header.

Also fixed an edge case in checking if zip64 extensions are required:

This fixes an issue where if data requiring zip64 extensions was added
to an unseekable stream without specifying `force_zip64=True`, zip64
extensions would not be used and a RuntimeError would not be raised when
closing the file (even though the size would be known at that point).
This would result in successfully writing corrupt zip files.

Deciding if zip64 extensions are required outside of the `FileHeader`
function means that both `FileHeader` and `_ZipWriteFile` will always be
in sync. Previously, the `FileHeader` function could enable zip64
extensions without propagating that decision to the `_ZipWriteFile`
class, which would then not correctly write the data descriptor record
or check for errors on close.

If anyone is actually using `ZipInfo.FileHeader` as a public API without
explicitly passing True or False in for zip64, their own code may still be
susceptible to that kind of bug unless they make a similar change to
where the zip64 decision happens.

Fixes GH-103861

---------

.
(cherry picked from commit 798bcaa1eb01de7db9ff1881a3088603ad09b096)

Co-authored-by: Carey Metcalfe <carey@cmetcalfe.ca>
2 years ago[3.11] gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351) (#104563)
Miss Islington (bot) [Wed, 17 May 2023 07:48:10 +0000 (00:48 -0700)] 
[3.11] gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351) (#104563)

gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351)

This fixes several ways file descriptors could be leaked from `subprocess.Popen` constructor during error conditions by opening them later and using a context manager "fds to close" registration scheme to ensure they get closed before returning.

---------

(cherry picked from commit 3a4c44bb1e92802db64deec59cf8a68ad3973219)

Co-authored-by: cptpcrd <31829097+cptpcrd@users.noreply.github.com>
Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
2 years ago[3.11] gh-104494: Update certain Tkinter pack/place tests for Tk 8.7 errors (GH-10449...
Miss Islington (bot) [Wed, 17 May 2023 00:03:51 +0000 (17:03 -0700)] 
[3.11] gh-104494: Update certain Tkinter pack/place tests for Tk 8.7 errors (GH-104495) (#104569)

gh-104494: Update certain Tkinter pack/place tests for Tk 8.7 errors (GH-104495)
(cherry picked from commit 3cba61f111db9b5e8ef35632915309f81fff8c6c)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.11] gh-75367: Fix data descriptor detection in inspect.getattr_static (GH-104517...
Miss Islington (bot) [Tue, 16 May 2023 17:57:34 +0000 (10:57 -0700)] 
[3.11] gh-75367: Fix data descriptor detection in inspect.getattr_static (GH-104517) (#104557)

gh-75367: Fix data descriptor detection in inspect.getattr_static (GH-104517)
(cherry picked from commit 5e9f471e7db30893fb3f42681f17fdcdb70069ee)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: Carl Meyer <carl@oddbird.net>
2 years ago[3.11] gh-104539: Fix indentation error in logging.config.rst (GH-104545) (#104546)
Miss Islington (bot) [Tue, 16 May 2023 12:53:18 +0000 (05:53 -0700)] 
[3.11] gh-104539: Fix indentation error in logging.config.rst (GH-104545) (#104546)

gh-104539: Fix indentation error in logging.config.rst (GH-104545)

Fix indentation error in logging.config.rst
(cherry picked from commit 0bb61dd5b0ffc248e18f1b33cddd18788f28e60a)

Co-authored-by: Jesper Noordsij <45041769+jnoordsij@users.noreply.github.com>
2 years ago[3.11] gh-104482: Fix error handling bugs in ast.c (#104514)
Irit Katriel [Tue, 16 May 2023 09:14:36 +0000 (10:14 +0100)] 
[3.11] gh-104482: Fix error handling bugs in ast.c (#104514)

2 years ago[3.11] gh-104461: Run tkinter test_configure_screen on X11 only (GH-104526)
Miss Islington (bot) [Tue, 16 May 2023 02:47:51 +0000 (19:47 -0700)] 
[3.11] gh-104461: Run tkinter test_configure_screen on X11 only (GH-104526)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
2 years ago[3.11] gh-67056: document that registering/unregistering an atexit func from within...
Miss Islington (bot) [Mon, 15 May 2023 09:15:07 +0000 (02:15 -0700)] 
[3.11] gh-67056: document that registering/unregistering an atexit func from within an atexit func is undefined (GH-104473) (#104500)

2 years ago[3.11] gh-98539: Make _SSLTransportProtocol.abort() safe to call when closed (GH...
Miss Islington (bot) [Sun, 14 May 2023 21:24:07 +0000 (14:24 -0700)] 
[3.11] gh-98539: Make _SSLTransportProtocol.abort() safe to call when closed (GH-104474) (#104485)

(cherry picked from commit fb8739f0b6291fb048a94d6312f59ba4d10a20ca)

Co-authored-by: Sam Bull <git@sambull.org>
2 years ago[3.11] gh-104337: Clarify random.gammavariate doc entry (GH-104410) (#104481)
Miss Islington (bot) [Sun, 14 May 2023 20:25:25 +0000 (13:25 -0700)] 
[3.11] gh-104337: Clarify random.gammavariate doc entry  (GH-104410) (#104481)

(cherry picked from commit 88c5c586708dcff369c49edae947d487a80f0346)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.11] Minor improvements to typing docs (GH-104465) (#104475)
Miss Islington (bot) [Sun, 14 May 2023 12:00:57 +0000 (05:00 -0700)] 
[3.11] Minor improvements to typing docs (GH-104465) (#104475)

Minor improvements to typing docs (GH-104465)
(cherry picked from commit 2f7b5e458e9189fa1ffd44339848aa1e52add3fa)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] GH-71383: IDLE - Document testing subsets of modules (GH-104463) (#104464)
Miss Islington (bot) [Sun, 14 May 2023 04:18:30 +0000 (21:18 -0700)] 
[3.11] GH-71383: IDLE - Document testing subsets of modules (GH-104463) (#104464)

GH-71383: IDLE - Document testing subsets of modules (GH-104463)
(cherry picked from commit 080a5961527473af182b025bb29e0c52d43fd49e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.11] gh-75710: IDLE - add docstrings and comments to editor module (GH-104446)...
Miss Islington (bot) [Sat, 13 May 2023 16:04:37 +0000 (09:04 -0700)] 
[3.11] gh-75710: IDLE - add docstrings and comments to editor module (GH-104446) (#104450)

gh-75710: IDLE - add docstrings and comments to editor module (GH-104446)

Commit extracted from PR GH-3669.  Will edit more later.

(cherry picked from commit 46f1c78eebe08e96ed29d364b1804dd37364831d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2 years ago[3.11] Add a mention of PYTHONBREAKPOINT to breakpoint() docs (GH-104430) (#104447)
Miss Islington (bot) [Sat, 13 May 2023 07:16:28 +0000 (00:16 -0700)] 
[3.11] Add a mention of PYTHONBREAKPOINT to breakpoint() docs (GH-104430) (#104447)

Add a mention of PYTHONBREAKPOINT to breakpoint() docs (GH-104430)
(cherry picked from commit 1be80ed107deb15b926f2794b8e6a7a527b8b84c)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 years ago[3.11] gh-99836: IDLE - update news.txt for 3.11+ (#104445)
Terry Jan Reedy [Sat, 13 May 2023 04:47:21 +0000 (00:47 -0400)] 
[3.11]  gh-99836: IDLE - update news.txt for 3.11+ (#104445)

* gh-99836: IDLE 3.11 News.txt

* gh-99836: IDLE - update news.txt for 3.11+

2 years ago[3.11] GH-104405: Add missing PEP 523 checks (GH-104441)
Brandt Bucher [Fri, 12 May 2023 23:03:47 +0000 (16:03 -0700)] 
[3.11] GH-104405: Add missing PEP 523 checks (GH-104441)

2 years ago[3.11] Fix refleak in super_descr_get (GH-104440)
Brandt Bucher [Fri, 12 May 2023 22:29:02 +0000 (15:29 -0700)] 
[3.11] Fix refleak in super_descr_get (GH-104440)

(cherry picked from commit a781484c8e9834538e5ee7b9e2e6bec7b679e033)

2 years ago[3.11] GH-94841: Fix usage of Py_ALWAYS_INLINE (GH-104439)
Brandt Bucher [Fri, 12 May 2023 22:06:29 +0000 (15:06 -0700)] 
[3.11] GH-94841: Fix usage of Py_ALWAYS_INLINE (GH-104439)

2 years ago[3.11] gh-103204: `http.server` - Enforce that HTTP version numbers must consist...
Miss Islington (bot) [Fri, 12 May 2023 20:54:12 +0000 (13:54 -0700)] 
[3.11] gh-103204: `http.server` - Enforce that HTTP version numbers must consist only of digits (GH-103205) (#104438)

gh-103204: `http.server` - Enforce that HTTP version numbers must consist only of digits (GH-103205)

Reject HTTP requests with invalid http/x.y version numbers: x or y being non-digits or too-long.

---------

(cherry picked from commit cf720acfcbd8c9c25a706a4b6df136465a803992)

Co-authored-by: Ben Kallus <49924171+kenballus@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.11] gh-101117: Improve accuracy of sqlite3.Cursor.rowcount docs (#104287) (#104381)
Erlend E. Aasland [Thu, 11 May 2023 09:09:46 +0000 (11:09 +0200)] 
[3.11] gh-101117: Improve accuracy of sqlite3.Cursor.rowcount docs (#104287) (#104381)

The SQLite C API sqlite3_changes() can only be relied upon when the
current active statement has been run to completion.

2 years ago[3.11] GH-87695: Fix OSError from `pathlib.Path.glob()` (GH-104292) (GH-104362)
Miss Islington (bot) [Wed, 10 May 2023 23:19:49 +0000 (16:19 -0700)] 
[3.11] GH-87695: Fix OSError from `pathlib.Path.glob()` (GH-104292) (GH-104362)

Fix issue where `pathlib.Path.glob()` raised `OSError` when it encountered
a symlink to an overly long path.
(cherry picked from commit a33ce66dca57d4c36b1022fdf3b7e322f3203468)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
2 years ago[3.11] gh-103247: clear the module cache in a test in test_importlib/extensions/test_...
Miss Islington (bot) [Wed, 10 May 2023 14:53:19 +0000 (07:53 -0700)] 
[3.11] gh-103247: clear the module cache in a test in test_importlib/extensions/test_loader.py (GH-104226) (#104345)

gh-103247: clear the module cache in a test in test_importlib/extensions/test_loader.py (GH-104226)
(cherry picked from commit 22f3425c3d3d896be0917d80d55e8abb08d99b18)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
2 years ago[3.11] gh-104010: Separate and improve docs for `typing.get_origin` and `typing.get_a...
Miss Islington (bot) [Wed, 10 May 2023 14:49:49 +0000 (07:49 -0700)] 
[3.11] gh-104010: Separate and improve docs for `typing.get_origin` and `typing.get_args` (GH-104013) (#104359)

* separate documentation and examples for both functions
* add examples demonstrating behaviour with unsupported types
* document return value of `get_origin` for `ParamSpecArgs` and `ParamSpecKwargs` instances

(cherry picked from commit a7a2dbbf72aceef61bfb50901bfa39bfb8d6d229)

Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] gh-103960: Dark mode: invert image brightness (GH-103983) (#104358)
Miss Islington (bot) [Wed, 10 May 2023 14:19:38 +0000 (07:19 -0700)] 
[3.11] gh-103960: Dark mode: invert image brightness (GH-103983) (#104358)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-103848: Adds checks to ensure that bracketed hosts found by urlsplit are...
Miss Islington (bot) [Wed, 10 May 2023 06:35:24 +0000 (23:35 -0700)] 
[3.11] gh-103848: Adds checks to ensure that bracketed hosts found by urlsplit are of IPv6 or IPvFuture format (GH-103849) (#104349)

gh-103848: Adds checks to ensure that bracketed hosts found by urlsplit are of IPv6 or IPvFuture format (GH-103849)

* Adds checks to ensure that bracketed hosts found by urlsplit are of IPv6 or IPvFuture format

---------

(cherry picked from commit 29f348e232e82938ba2165843c448c2b291504c5)

Co-authored-by: JohnJamesUtley <81572567+JohnJamesUtley@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.11] gh-48241: Clarify URL needs to be encoded when provided to urlopen and Request...
Miss Islington (bot) [Tue, 9 May 2023 22:22:06 +0000 (15:22 -0700)] 
[3.11] gh-48241: Clarify URL needs to be encoded when provided to urlopen and Request (GH-103855) (#103891)

(cherry picked from commit 44010d0f1203134cd8f885ca574caaef373e80f6)

Co-authored-by: Michael Blahay <mblahay@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2 years ago[3.11] gh-102327: Extend docs for "url" and "headers" parameters to HTTPConnection...
Miss Islington (bot) [Tue, 9 May 2023 20:00:58 +0000 (13:00 -0700)] 
[3.11] gh-102327: Extend docs for "url" and "headers" parameters to HTTPConnection.request()

gh-102327: Extend docs for "url" and "headers" parameters to HTTPConnection.request()

Added example on how to use the HTTPConnection object for making GET request.

Original issue: https://github.com/python/cpython/issues/102327

---------

(cherry picked from commit 7ba6288feb961fcd60a29415c6371d2d3eb80bec)

Co-authored-by: David Foster <david@dafoster.net>
Co-authored-by: Éric <earaujo@caravan.coop>
2 years ago[3.11] gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message...
Miss Islington (bot) [Tue, 9 May 2023 19:42:57 +0000 (12:42 -0700)] 
[3.11] gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message (GH-104335) (#104338)

gh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message (GH-104335)
(cherry picked from commit 01c321ca34d99f35f174768c6f8c500801d4ef4c)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2 years ago[3.11] gh-99889: Fix directory traversal security flaw in uu.decode() (GH-104096...
Miss Islington (bot) [Tue, 9 May 2023 16:46:25 +0000 (09:46 -0700)] 
[3.11] gh-99889: Fix directory traversal security flaw in uu.decode() (GH-104096) (#104329)

gh-99889: Fix directory traversal security flaw in uu.decode() (GH-104096)

* Fix directory traversal security flaw in uu.decode()
* also check absolute paths and os.altsep
* Add a regression test.

---------

(cherry picked from commit 0aeda297931820436a50b78f4f7f0597274b5df4)

 [Google]

Co-authored-by: Sam Carroll <70000253+samcarroll42@users.noreply.github.com>
2 years ago[3.11] [doc] logging.rst - Change link to point directly to the Google Group. (GH...
Miss Islington (bot) [Tue, 9 May 2023 14:31:00 +0000 (07:31 -0700)] 
[3.11] [doc] logging.rst - Change link to point directly to the Google Group. (GH-93390) (GH-104318)

(cherry picked from commit e6e81602f49a9bff51e2049c7bad60d1acb18d3f)

2 years ago[3.11] gh-102500: collections.abc.Buffer doesn't exist in 3.11 (#104317)
Shantanu [Tue, 9 May 2023 09:27:15 +0000 (02:27 -0700)] 
[3.11] gh-102500: collections.abc.Buffer doesn't exist in 3.11 (#104317)

2 years ago[3.11] GH-104308: socket.getnameinfo should release the GIL (GH-104307) (#104313)
Miss Islington (bot) [Mon, 8 May 2023 23:49:45 +0000 (16:49 -0700)] 
[3.11] GH-104308: socket.getnameinfo should release the GIL (GH-104307) (#104313)

GH-104308: socket.getnameinfo should release the GIL (GH-104307)

* socket.getnameinfo should release the GIL

* 📜🤖 Added by blurb_it.

---------

(cherry picked from commit faf196213e60d8a90773e9e5680d3252bd294643)

Co-authored-by: Nathaniel J. Smith <njs@pobox.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2 years ago[3.11] GH-104284: Fix documentation gettext build (GH-104296) (#104299)
Miss Islington (bot) [Mon, 8 May 2023 19:17:42 +0000 (12:17 -0700)] 
[3.11] GH-104284: Fix documentation gettext build (GH-104296) (#104299)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] GH-104145: Use fully-qualified cross reference types for the bisect module...
Miss Islington (bot) [Mon, 8 May 2023 16:41:20 +0000 (09:41 -0700)] 
[3.11] GH-104145: Use fully-qualified cross reference types for the bisect module (GH-104172) (#104295)

GH-104145: Use fully-qualified cross reference types for the bisect module (GH-104172)
(cherry picked from commit 76eef552f3653179782afcc5063f10560a6e1a80)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] gh-103193: Improve `getattr_static` test coverage (GH-104286) (#104290)
Miss Islington (bot) [Mon, 8 May 2023 14:44:10 +0000 (07:44 -0700)] 
[3.11] gh-103193: Improve `getattr_static` test coverage (GH-104286) (#104290)

gh-103193: Improve `getattr_static` test coverage (GH-104286)
(cherry picked from commit 921185ed050efbca2f0adeab79f676b7f8cc3660)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.11] gh-102500: Remove mention of bytes shorthand (#104281) (#104288)
Alex Waygood [Mon, 8 May 2023 14:23:10 +0000 (15:23 +0100)] 
[3.11] gh-102500: Remove mention of bytes shorthand (#104281) (#104288)

gh-102500: Remove mention of bytes shorthand (#104281)

The bytes shorthand was removed in PEP 688:
https://peps.python.org/pep-0688/#no-special-meaning-for-bytes

The reference to collections.abc.ByteString is also removed, since that object is deprecated (#91896) and has different semantics (#102092)

Although PEP 688 is new in Python 3.12, type checkers are expected to implement the new semantics for type annotations even if users are using an older version of Python, so this docs PR is backported to Python 3.11.

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years ago[3.11] gh-104265 Disallow instantiation of `_csv.Reader` and `_csv.Writer` (GH-104266...
Miss Islington (bot) [Mon, 8 May 2023 12:04:43 +0000 (05:04 -0700)] 
[3.11] gh-104265 Disallow instantiation of `_csv.Reader` and `_csv.Writer` (GH-104266) (#104278)

gh-104265 Disallow instantiation of `_csv.Reader` and `_csv.Writer` (GH-104266)
(cherry picked from commit 06c2a4858b8806abc700a0471434067910db54ec)

Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
2 years ago[3.11] gh-100370: fix OverflowError in sqlite3.Connection.blobopen for 32-bit builds...
Erlend E. Aasland [Mon, 8 May 2023 08:41:34 +0000 (10:41 +0200)] 
[3.11] gh-100370: fix OverflowError in sqlite3.Connection.blobopen for 32-bit builds (#103902) (#104285)

2 years ago[3.11] gh-103225: Fixed zero lineno issue for pdb (#103265) (#104262)
Tian Gao [Sun, 7 May 2023 11:21:57 +0000 (04:21 -0700)] 
[3.11] gh-103225: Fixed zero lineno issue for pdb (#103265) (#104262)

gh-103225: Fixed zero lineno issue for pdb (#103265)

Co-authored-by: Artem Mukhin <ortem00@gmail.com>
2 years ago[3.11] gh-96670: Raise SyntaxError when parsing NULL bytes (GH-97594) (#104195)
Lysandros Nikolaou [Sun, 7 May 2023 10:12:04 +0000 (12:12 +0200)] 
[3.11] gh-96670: Raise SyntaxError when parsing NULL bytes (GH-97594) (#104195)

2 years ago[3.11] Re-enable commented-out test in test_generators.py (GH-104130) (#104261)
Miss Islington (bot) [Sun, 7 May 2023 05:11:00 +0000 (22:11 -0700)] 
[3.11] Re-enable commented-out test in test_generators.py (GH-104130) (#104261)

Re-enable commented-out test in test_generators.py (GH-104130)
(cherry picked from commit 472938316a85c706c06ad1b3727a205d5bffcb1f)

Co-authored-by: ymki4360 <132453923+ymki4360@users.noreply.github.com>
2 years ago[3.11] gh-104018: remove unused format "z" handling in string formatfloat() (GH-10410...
Miss Islington (bot) [Sun, 7 May 2023 05:06:06 +0000 (22:06 -0700)] 
[3.11] gh-104018: remove unused format "z" handling in string formatfloat() (GH-104107) (#104260)

gh-104018: remove unused format "z" handling in string formatfloat() (GH-104107)

This is a cleanup overlooked in PR GH-104033.
(cherry picked from commit 69621d1b09c996e43a1e13d2fa4c317d3dd4d738)

Co-authored-by: John Belmonte <john@neggie.net>
2 years ago[3.11] gh-104254: Document the optional keyword-only "context" argument to Task const...
Miss Islington (bot) [Sun, 7 May 2023 04:22:23 +0000 (21:22 -0700)] 
[3.11] gh-104254: Document the optional keyword-only "context" argument to Task constructor (GH-104251) (#104258)

gh-104254: Document the optional keyword-only "context" argument to Task constructor (GH-104251)

(This was added in 3.11. It was already documented for `create_task()`, but not for `Task()`.)
(cherry picked from commit 4ee2068c34bd45eddba7f6a8ee83f62d5b6932fc)

Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
2 years ago[3.11] gh-103886: Improve `builtins.__doc__` (GH-104179) (#104257)
Miss Islington (bot) [Sun, 7 May 2023 02:28:04 +0000 (19:28 -0700)] 
[3.11] gh-103886: Improve `builtins.__doc__` (GH-104179) (#104257)

gh-103886: Improve `builtins.__doc__` (GH-104179)
(cherry picked from commit b35711d17a90251bdd57d255090e07daafe89f6c)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] gh-101640: Make argparse _print_message catch any write error (GH-101802)...
Miss Islington (bot) [Sat, 6 May 2023 23:17:27 +0000 (16:17 -0700)] 
[3.11] gh-101640: Make argparse _print_message catch any write error (GH-101802) (#104250)

gh-101640: Make argparse _print_message catch any write error (GH-101802)

* In particular, don't exit when trying to print to stderr = None.
* Add tests

(cherry picked from commit 42f54d1f9244784fec99e0610aa05a5051e594bb)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.11] Rewrite the turtledemo makeGraphFrame method (GH-104224) (#104238)
Miss Islington (bot) [Sat, 6 May 2023 15:31:28 +0000 (08:31 -0700)] 
[3.11] Rewrite the turtledemo makeGraphFrame method (GH-104224) (#104238)

Rewrite the turtledemo makeGraphFrame method (GH-104224)

Replace `self._canvas` and `self.scanvas`, both bound to `canvas`,
with `self.canvas, which is accessed in other methods.
Replace `_s_` with `screen` and `_s_._canvas` with `canvas`.
Add a comment explaining the unorthodox use of
function turtle.Screen and singleton class turtle._Screen.
(cherry picked from commit 96f95df48e41ccf984de1ee1312c81809fd9e876)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>