]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years agogh-87864: Use correct function definition syntax in the docs (GH-103312)
Miss Islington (bot) [Tue, 11 Apr 2023 14:19:33 +0000 (07:19 -0700)] 
gh-87864: Use correct function definition syntax in the docs (GH-103312)

(cherry picked from commit 50b4b1598411ed393f47ce7f4fffbe5b9063cd42)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years agogh-103373: `__mro_entries__` docs: improve cross references (GH-103398)
Miss Islington (bot) [Tue, 11 Apr 2023 10:34:46 +0000 (03:34 -0700)] 
gh-103373: `__mro_entries__` docs: improve cross references (GH-103398)

(cherry picked from commit e071f00aaefae9eccf787d5c50396c26c8616483)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agogh-99553: add tests for ExceptionGroup wrapping (GH-99615)
Miss Islington (bot) [Tue, 11 Apr 2023 07:07:25 +0000 (00:07 -0700)] 
gh-99553: add tests for ExceptionGroup wrapping (GH-99615)

(cherry picked from commit 4cd1cc843aa4ae77a543cdd882da687300762e9d)

Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
2 years agoDocs: don't render files in includes/, they're for embedding only (GH-103313)
Miss Islington (bot) [Tue, 11 Apr 2023 06:26:07 +0000 (23:26 -0700)] 
Docs: don't render files in includes/, they're for embedding only (GH-103313)

(cherry picked from commit 280bd536b58d3e844047cd132159cf9f6cb66708)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years agoDoc: Avoid error lexing multiprocessing docs code block on Pygments 2.15.0 (GH-103421)
Miss Islington (bot) [Tue, 11 Apr 2023 04:07:21 +0000 (21:07 -0700)] 
Doc: Avoid error lexing multiprocessing docs code block on Pygments 2.15.0 (GH-103421)

(cherry picked from commit 75b6ab80da95f7d731b0d69b8ee8adb095b24d27)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years ago[3.11] gh-103059: Clarify gc.freeze documentation (GH-103058) (#103416)
Miss Islington (bot) [Mon, 10 Apr 2023 17:17:48 +0000 (10:17 -0700)] 
[3.11] gh-103059: Clarify gc.freeze documentation (GH-103058) (#103416)

gh-103059: Clarify gc.freeze documentation (GH-103058)
(cherry picked from commit 8b1b17134e2241a8cdff9e0c869013a7ff3ca2fe)

Co-authored-by: raylu <lurayl@gmail.com>
2 years agogh-97797: Mention `__metadata__` in docstrings of `typing.{_AnnotatedAlias, Annotated...
Miss Islington (bot) [Mon, 10 Apr 2023 15:21:45 +0000 (08:21 -0700)] 
gh-97797: Mention `__metadata__` in docstrings of `typing.{_AnnotatedAlias, Annotated}` (GH-103405)

(cherry picked from commit dc604a8c58af748ce25aee1af36b6521a3592fa5)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com>
2 years agogh-103395: Improve `typing._GenericAlias.__dir__` coverage (GH-103396)
Miss Islington (bot) [Mon, 10 Apr 2023 11:37:40 +0000 (04:37 -0700)] 
gh-103395: Improve `typing._GenericAlias.__dir__` coverage (GH-103396)

(cherry picked from commit a28e2ce3fbcc852959324879e0bbf5ba8ecf0105)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years agoCI: Do not allow merge if labelled DO-NOT-MERGE (GH-103337)
Miss Islington (bot) [Sun, 9 Apr 2023 07:01:49 +0000 (00:01 -0700)] 
CI: Do not allow merge if labelled DO-NOT-MERGE (GH-103337)

(cherry picked from commit 090e26ea807aa414d6a6a01d9365b0288c10a5db)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agogh-103242: Migrate SSLContext.set_ecdh_curve not to use deprecated APIs (GH-103378)
Miss Islington (bot) [Sat, 8 Apr 2023 18:21:27 +0000 (11:21 -0700)] 
gh-103242: Migrate SSLContext.set_ecdh_curve not to use deprecated APIs (GH-103378)

Migrate `SSLContext.set_ecdh_curve()` not to use deprecated OpenSSL APIs.
(cherry picked from commit 35167043e3a21055a94cf3de6ceccd1585554cb8)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2 years agogh-103373: Improve documentation for `__mro_entries__` (GH-103374)
Miss Islington (bot) [Sat, 8 Apr 2023 14:16:43 +0000 (07:16 -0700)] 
gh-103373: Improve documentation for `__mro_entries__` (GH-103374)

(cherry picked from commit 0ba0ca05d2b56afa0b055db02233e703fe138918)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-100574: add examples/links to the `strptime`/`strftime` docs (GH-100575)
Miss Islington (bot) [Sat, 8 Apr 2023 08:56:31 +0000 (01:56 -0700)] 
gh-100574: add examples/links to the `strptime`/`strftime` docs (GH-100575)

(cherry picked from commit 3310b94d3db2f477cf2b8789c30ac0f22f82d2dd)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2 years agoDocs: use Node.findall to avoid a deprecation warning (GH-99403)
Miss Islington (bot) [Sat, 8 Apr 2023 08:24:27 +0000 (01:24 -0700)] 
Docs: use Node.findall to avoid a deprecation warning (GH-99403)

(cherry picked from commit 1e9dfdacefa2c8c27762ba6491b0f570147ee355)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agogh-75729: Fix os.spawn tests not handling spaces on Windows (GH-99150)
Miss Islington (bot) [Sat, 8 Apr 2023 08:03:58 +0000 (01:03 -0700)] 
gh-75729: Fix os.spawn tests not handling spaces on Windows (GH-99150)

* Quote paths in os.spawn tests on Windows so they work with spaces

* Add NEWS entry for os spawn test fix

* Fix code style to avoid double negative in os.spawn tests

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
---------

(cherry picked from commit a34c79623877a7ed0c86a6d48ddccffa0de76836)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years agogh-103329: Add regression test for PropertyMock with side effect (GH-103358)
Miss Islington (bot) [Sat, 8 Apr 2023 07:01:20 +0000 (00:01 -0700)] 
gh-103329: Add regression test for PropertyMock with side effect (GH-103358)

(cherry picked from commit 26c65980dc6d842879d133165bb7c461d98cc6c7)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2 years ago[3.11] GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813...
Miss Islington (bot) [Fri, 7 Apr 2023 20:38:56 +0000 (13:38 -0700)] 
[3.11] GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813, GH-103343)

(cherry picked from commit 4dc339b4d69195448207e1faecc3e258700daf33)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2 years agogh-103272: regression test for getattr exception in property (GH-103336)
Miss Islington (bot) [Fri, 7 Apr 2023 19:36:10 +0000 (12:36 -0700)] 
gh-103272: regression test for getattr exception in property (GH-103336)

(cherry picked from commit 5d7d86f2fdbbfc23325e7256ee289bf20ce7124e)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
2 years agogh-74690: Add more tests for runtime-checkable protocols (GH-103347)
Miss Islington (bot) [Fri, 7 Apr 2023 17:47:49 +0000 (10:47 -0700)] 
gh-74690: Add more tests for runtime-checkable protocols (GH-103347)

(cherry picked from commit 800382a2b0980c21dfb2a8ac02aaf1e881f987b9)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.11] bpo-46523: fix tests rerun when `setUp[Class|Module]` fails (GH-30895) (GH...
Łukasz Langa [Fri, 7 Apr 2023 17:35:16 +0000 (19:35 +0200)] 
[3.11] bpo-46523: fix tests rerun when `setUp[Class|Module]` fails (GH-30895) (GH-103342)

(cherry picked from commit 995386071f96e4cfebfa027a71ca9134e4651d2a)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years agogh-103256: Fix hmac algorithm to support fallback implementation (gh-103286)
Miss Islington (bot) [Fri, 7 Apr 2023 02:27:46 +0000 (19:27 -0700)] 
gh-103256: Fix hmac algorithm to support fallback implementation (gh-103286)

(cherry picked from commit efb0a2cf3adf4629cf4669cb558758fb78107319)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years agogh-103266: Fix a typo in example code for bisect() function (GH-103267)
Miss Islington (bot) [Fri, 7 Apr 2023 00:45:07 +0000 (17:45 -0700)] 
gh-103266: Fix a typo in example code for bisect() function (GH-103267)

(cherry picked from commit f0424ba4b6663d2a4240239266bea08aff46bb6c)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2 years ago[3.11] GH-102700: allow built-in modules to be submodules (GH-103162) (GH-103322)
Miss Islington (bot) [Thu, 6 Apr 2023 23:06:02 +0000 (16:06 -0700)] 
[3.11] GH-102700: allow built-in modules to be submodules (GH-103162) (GH-103322)

GH-102700: allow built-in modules to be submodules (GH-103162)
(cherry picked from commit 5d08c3ff7d89ca11556f18663a372f6c12435504)

Co-authored-by: Brett Cannon <brett@python.org>
2 years ago[3.11] gh-93910: [Enum] remove member.member deprecation (GH-103236) (GH-103299)
Ethan Furman [Thu, 6 Apr 2023 04:29:14 +0000 (21:29 -0700)] 
[3.11] gh-93910: [Enum] remove member.member deprecation (GH-103236) (GH-103299)

i.e. Color.RED.BLUE is now officially supported..
(cherry picked from commit 4ec8dd10bd4682793559c4eccbcf6ae00688c4c3)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2 years ago[3.11] gh-103207: Fix Welcome formatting issues when macOS Installer is run in dark...
Ned Deily [Thu, 6 Apr 2023 03:43:19 +0000 (23:43 -0400)] 
[3.11] gh-103207: Fix Welcome formatting issues when macOS Installer is run in dark mode. (GH-103302)

2 years agogh-99069: Consolidate checks for static_assert (GH-94766)
Miss Islington (bot) [Wed, 5 Apr 2023 15:44:13 +0000 (08:44 -0700)] 
gh-99069: Consolidate checks for static_assert (GH-94766)

Several platforms don't define the static_assert macro despite having
compiler support for the _Static_assert keyword. The macro needs to be
defined since it is used unconditionally in the Python code. So it
should always be safe to define it if undefined and not in C++11 (or
later) mode.

Hence, remove the checks for particular platforms or libc versions,
and just define static_assert anytime it needs to be defined but isn't.
That way, all platforms that need the fix will get it, regardless of
whether someone specifically thought of them.

Also document that certain macOS versions are among the platforms that
need this.

The C2x draft (currently expected to become C23) makes static_assert
a keyword to match C++. So only define the macro for up to C17.

(cherry picked from commit 96e1901a59ed3bb6188743d60395666969a3ba42)

Co-authored-by: Joshua Root <jmr@macports.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 years agogh-102899: Fix doc link for getting filesystem error handler (GH-102901)
Miss Islington (bot) [Wed, 5 Apr 2023 15:03:47 +0000 (08:03 -0700)] 
gh-102899: Fix doc link for getting filesystem error handler (GH-102901)

(cherry picked from commit fdd0fff277a55c010a4da0a7af0e986e38560545)

Co-authored-by: Olivier Gayot <olivier.gayot@sigexec.com>
2 years agogh-81762: Clarify and simplify description of print's flush param (GH-103264)
Miss Islington (bot) [Wed, 5 Apr 2023 11:49:08 +0000 (04:49 -0700)] 
gh-81762: Clarify and simplify description of print's flush param (GH-103264)

(cherry picked from commit c396b6ddf3da784349bac9ebf7f28c55bde016ea)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoMerge remote-tracking branch 'upstream/3.11' into 3.11
Pablo Galindo [Wed, 5 Apr 2023 11:16:29 +0000 (12:16 +0100)] 
Merge remote-tracking branch 'upstream/3.11' into 3.11

2 years agoPost 3.11.3
Pablo Galindo [Wed, 5 Apr 2023 11:16:08 +0000 (12:16 +0100)] 
Post 3.11.3

2 years agoImprove some grammar in the socket docs (GH-103254)
Miss Islington (bot) [Tue, 4 Apr 2023 22:54:37 +0000 (15:54 -0700)] 
Improve some grammar in the socket docs (GH-103254)

(cherry picked from commit bceb9e00ad2998e5193ad5b477e92a114dd31024)

Co-authored-by: Tim Burke <tim.burke@gmail.com>
2 years agoPython 3.11.3 v3.11.3
Pablo Galindo [Tue, 4 Apr 2023 22:21:41 +0000 (23:21 +0100)] 
Python 3.11.3

2 years ago[3.11] gh-103207: Add instructions to the macOS installer welcome display on how...
Ned Deily [Tue, 4 Apr 2023 20:43:54 +0000 (16:43 -0400)] 
[3.11] gh-103207: Add instructions to the macOS installer welcome display on how to workaround the macOS 13 Ventura “The installer encountered an error” failure. GH-103252)

2 years agogh-102549: [Enum] fail enum creation when data type raises in __init__ (GH-103149)
Miss Islington (bot) [Mon, 3 Apr 2023 23:01:31 +0000 (16:01 -0700)] 
gh-102549: [Enum] fail enum creation when data type raises in __init__ (GH-103149)

(cherry picked from commit 2a4d8c0a9e88f45047da640ce5a92b304d2d39b1)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2 years agogh-98298, gh-74730: [Enum] update docs (GH-103163)
Miss Islington (bot) [Mon, 3 Apr 2023 22:27:33 +0000 (15:27 -0700)] 
gh-98298, gh-74730: [Enum] update docs (GH-103163)

fix FlagBoundary statements
add warning about reloading modules and enum identity
(cherry picked from commit 5ffc1e5a21de9a30566095386236db44695d184a)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2 years agogh-102994: Profile docs has typo in example (GH-103074)
Miss Islington (bot) [Sun, 2 Apr 2023 22:52:11 +0000 (15:52 -0700)] 
gh-102994: Profile docs has typo in example (GH-103074)

(cherry picked from commit 55decb72c4d2e4ea00ed13da5dd0fd22cecb9083)

Co-authored-by: Nouran Ali <nouranalimohammed@gmail.com>
2 years agogh-103109: Document ignore_warnings() test support helper (GH-103110)
Miss Islington (bot) [Sun, 2 Apr 2023 22:42:43 +0000 (15:42 -0700)] 
gh-103109: Document ignore_warnings() test support helper (GH-103110)

(cherry picked from commit 32937d6aa414ec7db5c63ef277f21db1880b3af4)

Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoQuote literal tokens in standard format specifier grammar (GH-102902)
Miss Islington (bot) [Fri, 31 Mar 2023 12:52:52 +0000 (05:52 -0700)] 
Quote literal tokens in standard format specifier grammar (GH-102902)

Reported by Damian Dureck: https://mail.python.org/archives/list/docs@python.org/thread/UZTWBJIXC3MBKTHXVTIBPGDPKBNWZ5LN/
(cherry picked from commit f6405a46627e1f74c279f712c8776a165b0ba9fd)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years agoMinor docs improvements fix for `codeop` (GH-103123)
Miss Islington (bot) [Thu, 30 Mar 2023 22:58:54 +0000 (15:58 -0700)] 
Minor docs improvements fix for `codeop` (GH-103123)

(cherry picked from commit c1e71ce56fdb3eab62ad3190d09130f800e54610)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years agogh-103099: Link mypy docs from typing.rst (GH-103100)
Miss Islington (bot) [Thu, 30 Mar 2023 08:39:49 +0000 (01:39 -0700)] 
gh-103099: Link mypy docs from typing.rst (GH-103100)

(cherry picked from commit fda95aa19447fe444ac2670afbf98ec42aca0c6f)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years ago[3.11] gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc output...
Miss Islington (bot) [Wed, 29 Mar 2023 22:30:03 +0000 (15:30 -0700)] 
[3.11] gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc output (GH-103113) (#103119)

(cherry picked from commit d052a383f1a0c599c176a12c73a761ca00436d8b)

Co-authored-by: Bernhard Wagner <github.comNotification20120125@xmlizer.net>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Éric <merwok@netwok.org>
2 years agogh-103097: Add workaround for Windows ARM64 compiler bug (GH-103098)
Steve Dower [Wed, 29 Mar 2023 14:33:29 +0000 (15:33 +0100)] 
gh-103097: Add workaround for Windows ARM64 compiler bug (GH-103098)

See https://developercommunity.visualstudio.com/t/Regression-in-MSVC-1433-1434-ARM64-co/10224361 for details of the issue. It only applies to version 14.34.

2 years ago[3.11] gh-102582: Fix invalid JSON in Doc/howto/logging-cookbook.rst (GH-102635)...
Miss Islington (bot) [Wed, 29 Mar 2023 09:04:53 +0000 (02:04 -0700)] 
[3.11] gh-102582: Fix invalid JSON in Doc/howto/logging-cookbook.rst (GH-102635) (GH-103106)

(cherry picked from commit d835b3f05de7e2d800138e5969eeb9656b0ed860)

Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
2 years agogh-103054: typing: Improve `Callable` type substitution tests (GH-103055)
Miss Islington (bot) [Wed, 29 Mar 2023 03:28:34 +0000 (20:28 -0700)] 
gh-103054: typing: Improve `Callable` type substitution tests (GH-103055)

(cherry picked from commit 60bdc16b459cf8f7b359c7f87d8ae6c5928147a4)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
2 years ago[3.11] GH-102711: Fix warnings found by clang (GH-102712) (#103075)
Miss Islington (bot) [Tue, 28 Mar 2023 09:27:30 +0000 (02:27 -0700)] 
[3.11] GH-102711: Fix warnings found by clang (GH-102712) (#103075)

There are some warnings if build python via clang:

Parser/pegen.c:812:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
_PyPegen_clear_memo_statistics()
                              ^
                               void

Parser/pegen.c:820:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
_PyPegen_get_memo_statistics()
                            ^
                             void

Fix it to make clang happy.

(cherry picked from commit 7703def37e4fa7d25c3d23756de8f527daa4e165)

Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
Co-authored-by: Chenxi Mao <chenxi.mao@suse.com>
2 years agogh-102558: [Enum] better handling of non-Enum EnumType classes (GH-103060)
Miss Islington (bot) [Mon, 27 Mar 2023 23:49:15 +0000 (16:49 -0700)] 
gh-102558: [Enum] better handling of non-Enum EnumType classes (GH-103060)

(cherry picked from commit f4ed2c6ae5915329e49b9f94033ef182400e29fa)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2 years ago[3.11] GH-95494: Fix transport EOF handling in OpenSSL 3.0 (GH-95495) (#103006)
Miss Islington (bot) [Mon, 27 Mar 2023 14:14:01 +0000 (07:14 -0700)] 
[3.11] GH-95494: Fix transport EOF handling in OpenSSL 3.0 (GH-95495) (#103006)

GH-25309 enabled SSL_OP_IGNORE_UNEXPECTED_EOF by default, with a comment
that it restores OpenSSL 1.1.1 behavior, but this wasn't quite right.
That option causes OpenSSL to treat transport EOF as the same as
close_notify (i.e. SSL_ERROR_ZERO_RETURN), whereas Python actually has
distinct SSLEOFError and SSLZeroReturnError exceptions. (The latter is
usually mapped to a zero return from read.) In OpenSSL 1.1.1, the ssl
module would raise them for transport EOF and close_notify,
respectively. In OpenSSL 3.0, both act like close_notify.

Fix this by, instead, just detecting SSL_R_UNEXPECTED_EOF_WHILE_READING
and mapping that to the other exception type.

There doesn't seem to have been any unit test of this error, so fill in
the missing one. This had to be done with the BIO path because it's
actually slightly tricky to simulate a transport EOF with Python's fd
based APIs. (If you instruct the server to close the socket, it gets
confused, probably because the server's SSL object is still referencing
the now dead fd?)
(cherry picked from commit 420bbb783b43216cc897dc8914851899db37a31d)

Co-authored-by: David Benjamin <davidben@google.com>
2 years ago[3.11] gh-102281: Fix potential nullptr dereference + use of uninitia… (#103040)
Max Bachmann [Sat, 25 Mar 2023 23:35:00 +0000 (00:35 +0100)] 
[3.11] gh-102281: Fix potential nullptr dereference + use of uninitia… (#103040)

[3.11] gh-102281: Fix potential nullptr dereference + use of uninitialized memory (gh-102282)
(cherry picked from commit afa6092ee4260bacf7bc11905466e4c3f8556cbb)

2 years agoUpdate pdb docs for arguments (GH-102965)
Miss Islington (bot) [Sat, 25 Mar 2023 21:42:28 +0000 (14:42 -0700)] 
Update pdb docs for arguments (GH-102965)

(cherry picked from commit 027223db96b0464c49a74513f82a1bf25aa510bd)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years ago[3.11] gh-103025: fix a ctypes doc typo (GH-103026) (#103029)
Miss Islington (bot) [Sat, 25 Mar 2023 10:00:44 +0000 (03:00 -0700)] 
[3.11] gh-103025: fix a ctypes doc typo  (GH-103026) (#103029)

* gh-103025: fix two ctypes doc issues  (GH-103026)
(cherry picked from commit 0708437ad043657f992cb985fd5c37e1ac052f93)

Co-authored-by: Peter Jiping Xie <peter.jp.xie@gmail.com>
2 years ago[3.11] gh-101100: Document PyObject_ClearWeakRefs, gzip's name, and asyncio.iscorouti...
Hugo van Kemenade [Sat, 25 Mar 2023 07:43:52 +0000 (09:43 +0200)] 
[3.11] gh-101100: Document PyObject_ClearWeakRefs, gzip's name, and asyncio.iscoroutine (#103001)

2 years agogh-102980: Add tests for pdf's display, alias and where commands (GH-102981)
Miss Islington (bot) [Fri, 24 Mar 2023 21:17:20 +0000 (14:17 -0700)] 
gh-102980: Add tests for pdf's display, alias and where commands (GH-102981)

(cherry picked from commit ded9a7fc194a1d5c0e38f475a45f8f77dbe9c6bc)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years agogh-102873: logging.LogRecord docs: improve description of `msg` parameter (GH-102875)
Miss Islington (bot) [Fri, 24 Mar 2023 15:08:48 +0000 (08:08 -0700)] 
gh-102873: logging.LogRecord docs: improve description of `msg` parameter (GH-102875)

(cherry picked from commit f2e5a6ee628502d307a97f587788d7022a200229)

Co-authored-by: Amin Alaee <mohammadamin.alaee@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.11] gh-102027: Fix macro name (GH-102124) (#102916)
Miss Islington (bot) [Fri, 24 Mar 2023 12:40:22 +0000 (05:40 -0700)] 
[3.11] gh-102027: Fix macro name (GH-102124) (#102916)

gh-102027: Fix macro name (GH-102124)

This fixes the ssse3 / sse2 detection when sse4 is available.

(cherry picked from commit ea93bde4ece139d4152a59f2c38aa6568559447c)

Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2 years ago[3.11] gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (GH-96932...
Miss Islington (bot) [Fri, 24 Mar 2023 12:33:24 +0000 (05:33 -0700)] 
[3.11] gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (GH-96932) (#102918)

gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (GH-96932)
(cherry picked from commit af9c34f6ef8dceb21871206eb3e4d350f6e3d3dc)

Co-authored-by: Benjamin Fogle <benfogle@gmail.com>
2 years agoGH-100989: remove annotation from docstring (GH-102991)
Miss Islington (bot) [Fri, 24 Mar 2023 06:04:06 +0000 (23:04 -0700)] 
GH-100989: remove annotation from docstring (GH-102991)

(cherry picked from commit d49409196e0c73c38e3f96cf860cbffda40607ec)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years agoGH-100989: Revert Improve the accuracy of collections.deque docstrings (GH-102979)
Miss Islington (bot) [Fri, 24 Mar 2023 01:17:43 +0000 (18:17 -0700)] 
GH-100989: Revert Improve the accuracy of collections.deque docstrings (GH-102979)

(cherry picked from commit 7f01a11199864bcf230b243b99e8a51e9044675d)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years agogh-102558: [Enum] fix AttributeError during member repr() (GH-102601)
Miss Islington (bot) [Thu, 23 Mar 2023 20:56:38 +0000 (13:56 -0700)] 
gh-102558: [Enum] fix AttributeError during member repr() (GH-102601)

(cherry picked from commit bd063756b34003c1bc7cacf5b1bd90a409180fb6)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2 years ago[3.11] Minor readability improvement to the factor() recipe (GH-102971) (GH-102972)
Miss Islington (bot) [Thu, 23 Mar 2023 19:56:35 +0000 (12:56 -0700)] 
[3.11] Minor readability improvement to the factor() recipe (GH-102971) (GH-102972)

2 years agogh-98239: Document that `inspect.getsource()` can raise `TypeError` (GH-101689)
Miss Islington (bot) [Thu, 23 Mar 2023 19:42:54 +0000 (12:42 -0700)] 
gh-98239: Document that `inspect.getsource()` can raise `TypeError` (GH-101689)

(cherry picked from commit b6132085ca5418f714eff6e31d1d03369d3fd1d9)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years agogh-102936: typing: document performance pitfalls of protocols decorated with `@runtim...
Miss Islington (bot) [Thu, 23 Mar 2023 18:27:28 +0000 (11:27 -0700)] 
gh-102936: typing: document performance pitfalls of protocols decorated with `@runtime_checkable` (GH-102937)

(cherry picked from commit 58d2b30c012c3a9fe5ab747ae47c96af09e0fd15)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-88965: typing: fix type substitution of a list of types after initial `ParamSpec...
Miss Islington (bot) [Thu, 23 Mar 2023 16:54:07 +0000 (09:54 -0700)] 
gh-88965: typing: fix type substitution of a list of types  after initial `ParamSpec` substitution (GH-102808)

Previously, this used to fail:

```py
from typing import *
T = TypeVar("T")
P = ParamSpec("P")

class X(Generic[P]):
    f: Callable[P, int]

Y = X[[int, T]]
Z = Y[str]
```

(cherry picked from commit adb0621652f489033b9db8d3949564c9fe545c1d)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-102810 Improve the sphinx docs for `asyncio.Timeout` (GH-102934)
Miss Islington (bot) [Thu, 23 Mar 2023 16:52:43 +0000 (09:52 -0700)] 
gh-102810 Improve the sphinx docs for `asyncio.Timeout` (GH-102934)

(cherry picked from commit f13fdacadfca87c71130057b6f03c89ae640c9b2)

Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-102947: Improve traceback when calling `fields()` on a non-dataclass (GH-102948)
Miss Islington (bot) [Thu, 23 Mar 2023 14:45:59 +0000 (07:45 -0700)] 
gh-102947: Improve traceback when calling `fields()` on a non-dataclass (GH-102948)

(cherry picked from commit baf4eb083c09b323cc12b8636c28c14089b87de8)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[doc] Fix error in tutorial example: type(exc) is the type rather than the instance...
Miss Islington (bot) [Wed, 22 Mar 2023 18:51:48 +0000 (11:51 -0700)] 
[doc] Fix error in tutorial example: type(exc) is the type rather than the instance (GH-102751)

(cherry picked from commit 8709697292c67254ba836d7e88d1eba08c4a351a)

Co-authored-by: Jens-Hilmar Bradt <17177271+jenshb@users.noreply.github.com>
2 years agogh-102780: Fix uncancel() call in asyncio timeouts (GH-102815)
Miss Islington (bot) [Wed, 22 Mar 2023 18:23:47 +0000 (11:23 -0700)] 
gh-102780: Fix uncancel() call in asyncio timeouts (GH-102815)

Also use `raise TimeOut from <CancelledError instance>` so that the CancelledError is set
in the `__cause__` field rather than in the `__context__` field.

(cherry picked from commit 04adf2df395ded81922c71360a5d66b597471e49)

Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-102921: [doc] Clarify `exc` argument name in `BaseExceptionGroup` is plural (GH...
Miss Islington (bot) [Wed, 22 Mar 2023 18:21:59 +0000 (11:21 -0700)] 
gh-102921: [doc] Clarify `exc` argument name in `BaseExceptionGroup` is plural (GH-102922)

(cherry picked from commit 9b19d3936d7cabef67698636d2faf6fa23a95059)

Co-authored-by: Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
2 years agogh-95913: Consolidate build requirements changes in 3.11 WhatsNew (GH-98781)
Miss Islington (bot) [Wed, 22 Mar 2023 13:53:22 +0000 (06:53 -0700)] 
gh-95913: Consolidate build requirements changes in 3.11 WhatsNew (GH-98781)

Apply suggestion to combine build requirements changes in 3.11 WhatsNew

(cherry picked from commit 4a3ea1fdd890e5e2ec26540dc3c958a52fba6556)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years agogh-101947: Remove size check from sqlite3 serialize test (GH-102914)
Miss Islington (bot) [Wed, 22 Mar 2023 13:45:28 +0000 (06:45 -0700)] 
gh-101947: Remove size check from sqlite3 serialize test (GH-102914)

The size of the returned data is too implementation specific.
(cherry picked from commit 61405da9a5689f554aa53929a2a9c168cab6056b)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years agogh-100989: Improve the accuracy of collections.deque docstrings (GH-100990)
Miss Islington (bot) [Wed, 22 Mar 2023 12:25:03 +0000 (05:25 -0700)] 
gh-100989: Improve the accuracy of collections.deque docstrings (GH-100990)

(cherry picked from commit c74073657e32b8872f91b3bbe1efa9af20adbea9)

Co-authored-by: Timo Ludwig <ti.ludwig@web.de>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoDocs: improve accuracy of sqlite3.Connection.interrupt() (GH-102904)
Miss Islington (bot) [Wed, 22 Mar 2023 12:00:25 +0000 (05:00 -0700)] 
Docs: improve accuracy of sqlite3.Connection.interrupt() (GH-102904)

(cherry picked from commit 7b2d53daccf5a6479e179535068fd9a841db44fc)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoDocs: improve the accuracy of the sqlite3.connect() timeout param (GH-102900)
Miss Islington (bot) [Wed, 22 Mar 2023 11:49:46 +0000 (04:49 -0700)] 
Docs: improve the accuracy of the sqlite3.connect() timeout param (GH-102900)

(cherry picked from commit c24f1f1e874c283bb11d8b9fbd661536ade19fe9)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoDocs: improve accuracy of pdb alias example (GH-102892)
Miss Islington (bot) [Wed, 22 Mar 2023 11:44:21 +0000 (04:44 -0700)] 
Docs: improve accuracy of pdb alias example (GH-102892)

(cherry picked from commit e0c63b72671bf816d3073f1a6a9107f6c171cae7)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years ago[3.11] gh-102595: Document `PyObject_Format` c-api function (GH-102596) (GH-102879)
Miss Islington (bot) [Wed, 22 Mar 2023 09:32:02 +0000 (02:32 -0700)] 
[3.11] gh-102595: Document `PyObject_Format` c-api function (GH-102596) (GH-102879)

(cherry picked from commit 910a64e3013bce821bfac75377cbe88bedf265de)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Def: https://github.com/python/cpython/blame/5ffdaf748d98da6065158534720f1996a45a0072/Include/abstract.hGH-L389

Automerge-Triggered-By: GH:encukou
2 years agoAdd link to `sys.exit` function documentation (GH-102805)
Miss Islington (bot) [Tue, 21 Mar 2023 22:06:10 +0000 (15:06 -0700)] 
Add link to `sys.exit` function documentation (GH-102805)

* Add link to `sys.exit` function documentation

* Update Doc/library/os.rst

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* Update Doc/library/os.rst

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
---------

(cherry picked from commit 41ef502d740b96ca6333a2d0202df7cce4a84e7d)

Co-authored-by: David Poirier <1152277+david-poirier@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agogh-98608: Fix Failure-handling in new_interpreter() (gh-102658)
Miss Islington (bot) [Tue, 21 Mar 2023 19:13:31 +0000 (12:13 -0700)] 
gh-98608: Fix Failure-handling in new_interpreter() (gh-102658)

The error-handling code in new_interpreter() has been broken for a while.  We hadn't noticed because those code mostly doesn't fail.  (I noticed while working on gh-101660.)  The problem is that we try to clear/delete the newly-created thread/interpreter using itself, which just failed.  The solution is to switch back to the calling thread state first.

(cherry picked from commit d1b883b52a99427d234c20e4a92ddfa6a1da8880)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
https: //github.com/python/cpython/issues/98608

2 years ago[3.11] Backport itertool recipe updates (GH-102881)
Raymond Hettinger [Tue, 21 Mar 2023 18:44:32 +0000 (13:44 -0500)] 
[3.11] Backport itertool recipe updates (GH-102881)

2 years ago[3.11] gh-101975: Fixed a potential SegFault on garbage collection (GH-102803) (GH...
Mark Shannon [Mon, 20 Mar 2023 14:42:15 +0000 (14:42 +0000)] 
[3.11] gh-101975: Fixed a potential SegFault on garbage collection (GH-102803) (GH-102807)

Authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years agogh-102810: Add docstrings to the public-facing methods of `asyncio.Timeout` (GH-102811)
Miss Islington (bot) [Sun, 19 Mar 2023 20:31:22 +0000 (13:31 -0700)] 
gh-102810: Add docstrings to the public-facing methods of `asyncio.Timeout` (GH-102811)

(cherry picked from commit 699cb20ae6fdef8b0f13d633cf4858465ef3469f)

Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.11] gh-102721: Improve coverage of `_collections_abc._CallableGenericAlias` (GH...
Nikita Sobolev [Fri, 17 Mar 2023 19:48:06 +0000 (22:48 +0300)] 
[3.11] gh-102721: Improve coverage of `_collections_abc._CallableGenericAlias` (GH-102788)

This is a backport of https://github.com/python/cpython/pull/102722 without the `typing.py` changes.

Automerge-Triggered-By: GH:AlexWaygood
2 years agogh-102701: Fix overflow in dictobject.c (GH-102750)
Miss Islington (bot) [Fri, 17 Mar 2023 14:54:18 +0000 (07:54 -0700)] 
gh-102701: Fix overflow in dictobject.c (GH-102750)

(cherry picked from commit 65fb7c4055f280caaa970939d16dd947e6df8a8d)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2 years agoIncrease stack reserve size for Windows debug builds to avoid test crashes (GH-102764)
Miss Islington (bot) [Fri, 17 Mar 2023 01:34:49 +0000 (18:34 -0700)] 
Increase stack reserve size for Windows debug builds to avoid test crashes (GH-102764)

(cherry picked from commit f33b33eb31c11a32b2955eb1f002f02267bd7d61)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 years ago[3.11] Fix outdated note about 'int' rounding or truncating (GH-102736) (#102766)
Miss Islington (bot) [Thu, 16 Mar 2023 20:42:54 +0000 (13:42 -0700)] 
[3.11] Fix outdated note about 'int' rounding or truncating (GH-102736) (#102766)

Fix outdated note about 'int' rounding or truncating (GH-102736)
(cherry picked from commit 405739f9166592104a5b0b945de92e28415ae972)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2 years agoGH-102653: Make recipe docstring show the correct distribution (GH-102742)
Miss Islington (bot) [Thu, 16 Mar 2023 14:42:23 +0000 (07:42 -0700)] 
GH-102653: Make recipe docstring show the correct distribution (GH-102742)

(cherry picked from commit b0ec6253c9cf1b22b87cd99f317dbaeb31263b20)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years agogh-94440: Fix issue of ProcessPoolExecutor shutdown hanging (GH-94468)
Miss Islington (bot) [Thu, 16 Mar 2023 05:09:20 +0000 (22:09 -0700)] 
gh-94440: Fix issue of ProcessPoolExecutor shutdown hanging (GH-94468)

Fix an issue of concurrent.futures ProcessPoolExecutor shutdown hanging.

(cherry picked from commit 2dc94634b50f0e5e207787e5ac1d56c68b22c3ae)

Co-authored-by: yonatanp <yonatan.perry@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-101100: Documenting --prefix and --exec-prefix. (GH-102695)
Miss Islington (bot) [Wed, 15 Mar 2023 22:13:48 +0000 (15:13 -0700)] 
gh-101100: Documenting --prefix and --exec-prefix. (GH-102695)

(cherry picked from commit 61b9ff35cbda0cc59816951a17de073968fc25c6)

Co-authored-by: Julien Palard <julien@palard.fr>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years agogh-102560 Add docstrings to asyncio.TaskGroup (GH-102565)
Miss Islington (bot) [Wed, 15 Mar 2023 07:27:33 +0000 (00:27 -0700)] 
gh-102560 Add docstrings to asyncio.TaskGroup (GH-102565)

(cherry picked from commit e94edab727d07bef851e0e1a345e18a453be863d)

Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
2 years ago[3.11] Remove misformatted exclamation marks in docs (GH-102694) (#102716)
Hugo van Kemenade [Wed, 15 Mar 2023 07:25:55 +0000 (09:25 +0200)] 
[3.11] Remove misformatted exclamation marks in docs (GH-102694) (#102716)

Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in #98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
[2]: https://github.com/python/cpython/pull/98350#issuecomment-1285965759
[3]: https://github.com/python/cpython/pull/98350#issuecomment-1286394047

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Tom Levy <tomlevy93@gmail.com>
2 years agogh-101377: improving test_locale_calendar_formatweekday of calendar (GH-101378)
Miss Islington (bot) [Wed, 15 Mar 2023 03:00:28 +0000 (20:00 -0700)] 
gh-101377: improving test_locale_calendar_formatweekday of calendar (GH-101378)

---------

(cherry picked from commit 5e0865f22eed9f3f3f0e912c4ada196effbd8ce0)

Co-authored-by: Andre Hora <andrehora@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years agogh-102703: Fix typo in modules tutorial documentation (GH-102707)
Miss Islington (bot) [Wed, 15 Mar 2023 00:11:56 +0000 (17:11 -0700)] 
gh-102703: Fix typo in modules tutorial documentation (GH-102707)

**Before**
This prevents directories with a common name, such as ``string``, unintentionally hiding ...
**After**
This prevents directories with a common name, such as ``string``, from unintentionally hiding ...
(cherry picked from commit 0a539b5db312d126ff45dd4aa6a53d40a292c512)

Co-authored-by: Robert Prater (B. Eng) <robcprater@gmail.com>
2 years agoRename redundant enum tests so that they run (GH-102535)
Miss Islington (bot) [Tue, 14 Mar 2023 22:46:01 +0000 (15:46 -0700)] 
Rename redundant enum tests so that they run (GH-102535)

(cherry picked from commit a028778d4c813914ae1e6ef3a04bb96dbf92ace6)

Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
2 years ago[3.11] gh-102354: change python3 to python in docs examples (GH-102696) (#102697)
Miss Islington (bot) [Tue, 14 Mar 2023 18:52:33 +0000 (11:52 -0700)] 
[3.11] gh-102354: change python3 to python in docs examples (GH-102696) (#102697)

gh-102354: change python3 to python in docs examples (GH-102696)
(cherry picked from commit 80abd62647b2a36947a11a6a8e395061be6f0c61)

Co-authored-by: Paul Watson <paul.hermeneutic@gmail.com>
2 years agogh-100315: clarification to `__slots__` docs. (GH-102621)
Miss Islington (bot) [Tue, 14 Mar 2023 09:32:09 +0000 (02:32 -0700)] 
gh-100315: clarification to `__slots__` docs. (GH-102621)

refer to tp_itemsize in discussion on "variable-length" built-in types
(cherry picked from commit 88c262c086077377b40dfae5e46f597e28ffe3c9)

Co-authored-by: T <tnie@tuta.io>
2 years agodoc: Remove a duplicate 'versionchanged' in library/asyncio-task (gh-102677)
Miss Islington (bot) [Tue, 14 Mar 2023 02:26:11 +0000 (19:26 -0700)] 
doc: Remove a duplicate 'versionchanged' in library/asyncio-task (gh-102677)

(cherry picked from commit 7bdb331b67c4aee513e01794ba7dd2c3be43d3ca)

Co-authored-by: Joongi Kim <me@daybreaker.info>
2 years agogh-102627: Replace address pointing toward malicious web page (GH-102630)
Miss Islington (bot) [Mon, 13 Mar 2023 22:43:16 +0000 (15:43 -0700)] 
gh-102627: Replace address pointing toward malicious web page (GH-102630)

* Replace known bad address pointing toward a malicious web page.

(cherry picked from commit 61479d46848bc7a7f9b571b0b09c4a4b4436d839)

Co-authored-by: Blind4Basics <32236948+Blind4Basics@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-102069: Fix `__weakref__` descriptor generation for custom dataclasses...
Miss Islington (bot) [Mon, 13 Mar 2023 22:17:46 +0000 (15:17 -0700)] 
[3.11] gh-102069: Fix `__weakref__` descriptor generation for custom dataclasses (GH-102075) (#102662)

gh-102069: Fix `__weakref__` descriptor generation for custom dataclasses (GH-102075)
(cherry picked from commit d97757f793ea53dda3cc6882b4a92d3e921b17c9)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.11] Fix duplicated words in the docs (#102644)
Alex Waygood [Mon, 13 Mar 2023 14:31:50 +0000 (14:31 +0000)] 
[3.11] Fix duplicated words in the docs (#102644)

(cherry-picked from commit f6ca71a422)

With grep utility found some duplicated words

Co-authored-by: Виталий Дмитриев <vitaldmit@bk.ru>
2 years agoFix broken link to MSDN (GH-102355)
Miss Islington (bot) [Mon, 13 Mar 2023 13:42:30 +0000 (06:42 -0700)] 
Fix broken link to MSDN (GH-102355)

(cherry picked from commit 9a8b66b58c74236959a01d579e2c156d9c2e7cb3)

Co-authored-by: 谭九鼎 <109224573@qq.com>
2 years agogh-101100: Fix Sphinx warnings in `turtle` module (GH-102340)
Miss Islington (bot) [Mon, 13 Mar 2023 11:33:38 +0000 (04:33 -0700)] 
gh-101100: Fix Sphinx warnings in `turtle` module (GH-102340)

(cherry picked from commit 78e4e6c3d71980d4e6687f07afa6ddfc83e29b04)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoGH-101673: Fix pdb bug where local variable changes are lost after longlist (GH-101674)
Miss Islington (bot) [Sun, 12 Mar 2023 23:40:56 +0000 (16:40 -0700)] 
GH-101673: Fix pdb bug where local variable changes are lost after longlist (GH-101674)

(cherry picked from commit 5d677c556f03a34d1c2d86e4cc96025870c20c12)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years ago[3.11] Fixes duplicated word (GH-102623) (#102624)
Miss Islington (bot) [Sun, 12 Mar 2023 17:00:04 +0000 (10:00 -0700)] 
[3.11] Fixes duplicated word (GH-102623) (#102624)

Fixes duplicated word (GH-102623)

In line 1627, the end of the sentence reads "only that that it may be." but it should read "only that it may be" (or alternatively "only that that may be").

(cherry picked from commit e6210621bee4ac10e18b4adc11229b8cc1ee788d)

Co-authored-by: Guido van Rossum <guido@python.org>
Co-authored-by: Hugo Gabriel Eyherabide <hugogabriel.eyherabide@gmail.com>