]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.10] gh-101021: Document binary parameters as bytes (GH-101024). (#101052)
Barry Warsaw [Sun, 15 Jan 2023 05:31:59 +0000 (21:31 -0800)] 
[3.10] gh-101021: Document binary parameters as bytes (GH-101024). (#101052)

(cherry picked from commit 49cae39ef020eaf242607bb2d2d193760b9855a6)

Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
2 years agogh-100668: Clarify how sqlite3 maps parameters onto placeholders (GH-100960)
Miss Islington (bot) [Sat, 14 Jan 2023 23:08:32 +0000 (15:08 -0800)] 
gh-100668: Clarify how sqlite3 maps parameters onto placeholders (GH-100960)

(cherry picked from commit 206f05a46b426eb374f724f8e7cd42f2f9643bb8)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years ago[3.10] GH-100573: Fix server hang caused by os.stat() on named pipe (Windows) (GH...
Miss Islington (bot) [Fri, 13 Jan 2023 21:57:52 +0000 (13:57 -0800)] 
[3.10] GH-100573: Fix server hang caused by os.stat() on named pipe (Windows) (GH-100959) (#101020)

(cherry picked from commit 1bc7a736837272b15ad3a7aa472977bc720d1033)

2 years ago[3.10] gh-100160: Remove any deprecation warnings in asyncio.get_event_loop() (GH...
Serhiy Storchaka [Fri, 13 Jan 2023 07:34:55 +0000 (09:34 +0200)] 
[3.10] gh-100160: Remove any deprecation warnings in asyncio.get_event_loop() (GH-100412) (GH-100970)

Some deprecation warnings will reappear (in a slightly different form) in 3.12.

Co-authored-by: Guido van Rossum <guido@python.org>.
(cherry picked from commit 1b2459dc64b1c3eea89312ea9bf422f8d7c75bb2)

2 years ago[3.10] gh-100931: Test all `pickle` protocols in `test_slice` (GH-100932). (GH-100978)
Nikita Sobolev [Thu, 12 Jan 2023 11:14:27 +0000 (14:14 +0300)] 
[3.10] gh-100931: Test all `pickle` protocols in `test_slice` (GH-100932). (GH-100978)

(cherry picked from commit 8795ad1bd0d6ee031543fcaf5a86a60b37950714)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Automerge-Triggered-By: GH:AlexWaygood
2 years ago[3.10] gh-100871: Improve `copy` module tests (GH-100872) (#100975)
Nikita Sobolev [Thu, 12 Jan 2023 11:12:39 +0000 (14:12 +0300)] 
[3.10] gh-100871: Improve `copy` module tests (GH-100872) (#100975)

(cherry picked from commit 729ab9b622957fef0e9b494af9a71ab02986c741)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years agoGH-100894: Updated the doc for `sys.winver` to clarify its usual contents (GH-100913)
Miss Islington (bot) [Thu, 12 Jan 2023 00:20:24 +0000 (16:20 -0800)] 
GH-100894: Updated the doc for `sys.winver` to clarify its usual contents (GH-100913)

(cherry picked from commit d9dff4c8b5ab41c47af002ad7fb083c953e75f31)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2 years ago[3.10] GH-100892: Fix race in clearing `threading.local` (GH-100922). (#100938)
Kumar Aditya [Wed, 11 Jan 2023 15:32:02 +0000 (21:02 +0530)] 
[3.10] GH-100892: Fix race in clearing `threading.local` (GH-100922). (#100938)

(cherry picked from commit 762745a124cbc297cf2fe6f3ec9ca1840bb2e873)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2 years ago[3.10] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100919)
Miss Islington (bot) [Tue, 10 Jan 2023 10:39:11 +0000 (02:39 -0800)] 
[3.10] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100919)

Co-authored-by: Yao-Ching Huang <tom4996131207@gmail.com>
2 years ago[3.10] Fix typos in Doc folder (GH-100880). (#100915)
Hugo van Kemenade [Tue, 10 Jan 2023 09:42:14 +0000 (11:42 +0200)] 
[3.10] Fix typos in Doc folder (GH-100880). (#100915)

Co-authored-by: Semen Zhydenko <semen.zhydenko@gmail.com>
2 years agogh-100180: Update macOS installer to OpenSSL 1.1.1s (GH-100908)
Miss Islington (bot) [Tue, 10 Jan 2023 05:37:50 +0000 (21:37 -0800)] 
gh-100180: Update macOS installer to OpenSSL 1.1.1s (GH-100908)

(cherry picked from commit 57a5259a438c717755fc667fcbedb515ef8e0c85)

Co-authored-by: Ned Deily <nad@python.org>
2 years agogh-100893: update bpo reference in Mac README (GH-100905)
Miss Islington (bot) [Tue, 10 Jan 2023 03:42:38 +0000 (19:42 -0800)] 
gh-100893: update bpo reference in Mac README (GH-100905)

(cherry picked from commit be23a202426385ad99dcb2611152783780c7bc42)

Co-authored-by: Ned Deily <nad@python.org>
2 years agogh-100180: Update Windows installer to OpenSSL 1.1.1s (GH-100903)
Steve Dower [Tue, 10 Jan 2023 00:15:31 +0000 (00:15 +0000)] 
gh-100180: Update Windows installer to OpenSSL 1.1.1s (GH-100903)

2 years agobpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)
Miss Islington (bot) [Mon, 9 Jan 2023 21:52:22 +0000 (13:52 -0800)] 
bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)

(cherry picked from commit e098137cd3250af05f19380590b8dec79dc5942f)

Co-authored-by: Ryan Ozawa <ryan.ozawa21@gmail.com>
2 years agoGH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` callback...
Miss Islington (bot) [Mon, 9 Jan 2023 15:54:00 +0000 (07:54 -0800)] 
GH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` callback (GH-13364)

(cherry picked from commit 837ba052672d1a5f85a46c1b6d4b6e7d192af6f3)

Co-authored-by: dgelessus <dgelessus@users.noreply.github.com>
2 years ago[3.10] Update copyright year in README (GH-100863) (GH-100865)
Ned Deily [Mon, 9 Jan 2023 03:08:08 +0000 (22:08 -0500)] 
[3.10] Update copyright year in README (GH-100863) (GH-100865)

Co-authored-by: HARSHA VARDHAN <75431678+Thunder-007@users.noreply.github.com>
2 years ago[3.10] Update copyright years to 2023. (gh-100850)
Benjamin Peterson [Sun, 8 Jan 2023 23:00:24 +0000 (17:00 -0600)] 
[3.10] Update copyright years to 2023. (gh-100850)

* [3.10] Update copyright years to 2023. (gh-100848).
(cherry picked from commit 11f99323c2ae0ec428c370a335695e3d8d4afc1d)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Update additional copyright years to 2023.

Co-authored-by: Ned Deily <nad@python.org>
2 years ago[3.10] gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap...
Miss Islington (bot) [Sun, 8 Jan 2023 13:35:40 +0000 (05:35 -0800)] 
[3.10] gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" (GH-100745) (#100847)

gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" (GH-100745)

* gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)"

This reverts commit 7c83eaa536d2f436ae46211ca48692f576c732f0.
(cherry picked from commit b034fd3e5926c63a681a211087b4c666834c7525)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.10] gh-100776: Fix misleading default value in help(input) (GH-100788) (#100842)
Shantanu [Sun, 8 Jan 2023 09:23:34 +0000 (01:23 -0800)] 
[3.10] gh-100776: Fix misleading default value in help(input) (GH-100788) (#100842)

(cherry picked from commit a2141882f259e21bb09fa0b7cba8142147b9e3d7)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-100783: fix os.path.join documentation (GH-100811)
Miss Islington (bot) [Sun, 8 Jan 2023 09:22:53 +0000 (01:22 -0800)] 
gh-100783: fix os.path.join documentation (GH-100811)

- Use "drive", not "drive letter", because of UNC paths
- Previous components are not thrown away from relative drive letters
- Use "segment" instead of "component" for consistency with pathlib
- Other miscellaneous improvements
(cherry picked from commit 53455a319f3f2e5609fca2a313ea356fba318665)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns...
Miss Islington (bot) [Sun, 8 Jan 2023 08:16:59 +0000 (00:16 -0800)] 
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (GH-100825)

(cherry picked from commit 6d3bc4a795e7a60f665e41b2d4b6803f3844fc48)

Co-authored-by: busywhitespace <busywhitespace@tuta.io>
2 years ago[3.10] gh-100673: Removed erroneous note in the get_type_hints docs (#100701) (GH...
Alex Waygood [Sat, 7 Jan 2023 20:55:41 +0000 (20:55 +0000)] 
[3.10] gh-100673: Removed erroneous note in the get_type_hints docs (#100701) (GH-100826)

Removed erroneous note in the get_type_hints docs

typing.get_type_hints still includes base class type hints.

(cherry picked from commit deaf090699a7312cccb0637409f44de3f382389b)

Automerge-Triggered-By: GH:AlexWaygood
2 years agogh-99026 update dataclasses docs for when annotations are inspected (gh-100798)
Miss Islington (bot) [Fri, 6 Jan 2023 14:34:12 +0000 (06:34 -0800)] 
gh-99026 update dataclasses docs for when annotations are inspected (gh-100798)

update dataclasses docs for when annotations are inspected
(cherry picked from commit 659c2607f5b44a8a18a0840d1ac39df8a3219dd5)

Co-authored-by: Akshit Tyagi <37214399+exitflynn@users.noreply.github.com>
2 years ago[3.10] gh-90104: avoid RecursionError on recursive dataclass field repr (gh-100756...
Carl Meyer [Fri, 6 Jan 2023 02:15:27 +0000 (19:15 -0700)] 
[3.10] gh-90104: avoid RecursionError on recursive dataclass field repr (gh-100756) (GH-100785)

Avoid RecursionError on recursive dataclass field repr

(cherry picked from commit 0a7936a38f0bab1619ee9fe257880a51c9d839d5)

Automerge-Triggered-By: GH:ericvsmith
2 years agogh-87691: clarify use of anchor in pathlib docs (GH-100782)
Miss Islington (bot) [Fri, 6 Jan 2023 01:56:34 +0000 (17:56 -0800)] 
gh-87691: clarify use of anchor in pathlib docs (GH-100782)

This is feedback from https://github.com/python/cpython/pull/100737GH-discussion_r1062968696

This matches the wording from the `os.path.join` docs better:
https://docs.python.org/3/library/os.path.htmlGH-os.path.join

In particular, the previous use of "anchor" was incorrect given the
pathlib definition of "anchor".

(cherry picked from commit 2f2fa03ff3d566b675020787e23de8fb4ca78e99)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2 years agogh-87691: add an absolute path pathlib example in / operator docs (GH-100737)
Miss Islington (bot) [Thu, 5 Jan 2023 23:04:57 +0000 (15:04 -0800)] 
gh-87691: add an absolute path pathlib example in / operator docs (GH-100737)

The behaviour is fully explained a couple paragraphs above, but it may be useful to have a brief example to cover the behaviour.
(cherry picked from commit 1ae619c911ec8e096f83eeb7cc57fcd966950a3d)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Automerge-Triggered-By: GH:hauntsaninja
2 years agoGH-100766: Note that locale.LC_MESSAGES is not universal (GH-100768)
Miss Islington (bot) [Thu, 5 Jan 2023 03:46:29 +0000 (19:46 -0800)] 
GH-100766: Note that locale.LC_MESSAGES is not universal (GH-100768)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2 years agogh-100739: Respect mock spec when checking for unsafe prefixes (GH-100740)
Miss Islington (bot) [Wed, 4 Jan 2023 23:11:46 +0000 (15:11 -0800)] 
gh-100739: Respect mock spec when checking for unsafe prefixes (GH-100740)

(cherry picked from commit 7f1eefc6f4843f0fca60308f557a71af11d18a53)

Co-authored-by: Christian Klein <167265+cklein@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.10] gh-81611: Improve `range` paragraph in 8.3 of language reference (GH-98353...
Miss Islington (bot) [Wed, 4 Jan 2023 21:00:27 +0000 (13:00 -0800)] 
[3.10] gh-81611: Improve `range` paragraph in 8.3 of language reference (GH-98353) (#100705)

gh-81611: Improve `range` paragraph in 8.3 of language reference (GH-98353)
(cherry picked from commit 8b1f1251215651c4ef988622345c5cb134e54d69)

Co-authored-by: 4l4k4z4m <alakazamjoined@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years agodocs: fix `ssizeobjargproc` parameters (GH-100736)
Miss Islington (bot) [Wed, 4 Jan 2023 15:36:44 +0000 (07:36 -0800)] 
docs: fix `ssizeobjargproc` parameters (GH-100736)

(cherry picked from commit 5fb1c08e15b864d8ea9353a0e013166e2e0e2160)

Co-authored-by: David Lechner <david@lechnology.com>
2 years agoGH-86508: skip binding to local addresses of different family in `asyncio.open_connec...
Miss Islington (bot) [Wed, 4 Jan 2023 08:24:36 +0000 (00:24 -0800)] 
GH-86508: skip binding to local addresses of different family in `asyncio.open_connection` (GH-100615)

(cherry picked from commit ba8dcdbcab5fd9989be6c9a51002394e782c463c)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2 years ago[3.10] gh-95882: Add tests for traceback from contextlib context managers (GH-95883...
Irit Katriel [Tue, 3 Jan 2023 22:24:19 +0000 (22:24 +0000)] 
[3.10] gh-95882: Add tests for traceback from contextlib context managers (GH-95883) (#100715)

2 years agogh-100700: Remove Date and Release fields in whatsnew/3.9 (GH-100730)
Zachary Ware [Tue, 3 Jan 2023 22:11:18 +0000 (16:11 -0600)] 
gh-100700: Remove Date and Release fields in whatsnew/3.9 (GH-100730)

2 years agofix `grammer` -> `grammar` typo in expressions.rst (GH-100683)
Miss Islington (bot) [Mon, 2 Jan 2023 11:57:22 +0000 (03:57 -0800)] 
fix `grammer` -> `grammar` typo in expressions.rst (GH-100683)

(cherry picked from commit 7feb6d2f85d69fbabfc0598d8947124883167f12)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Automerge-Triggered-By: GH:AlexWaygood
2 years agogh-100428: Make int documentation more accurate (GH-100436)
Miss Islington (bot) [Mon, 2 Jan 2023 03:21:50 +0000 (19:21 -0800)] 
gh-100428: Make int documentation more accurate (GH-100436)

- Remove first link to lexical definition of integer literal, since it
  doesn't apply (differs in handling of leading zeros, base needs to be
  explicitly specified, unicode digits are allowed)
- Better describe handling of leading zeros, unicode digits, underscores
- Base 0 does not work exactly as like a code literal, since it allows
  Unicode digits. Link code literal to lexical definition of integer
  literal.
(cherry picked from commit edfbf56f4ca6588dfd20b53f534a4465e43c82bd)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-99953: Purge mention of numeric param style from sqlite3 docs (GH-100630)
Miss Islington (bot) [Sun, 1 Jan 2023 22:35:46 +0000 (14:35 -0800)] 
gh-99953: Purge mention of numeric param style from sqlite3 docs (GH-100630)

The PEP-249 numeric style has never been supported by sqlite3.
(cherry picked from commit b7a68ab824249ebf053b8149ebb83cd8578781c9)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years agogh-100201: Document behavior with a bare `yield` statement (GH-100416)
Miss Islington (bot) [Sun, 1 Jan 2023 15:42:31 +0000 (07:42 -0800)] 
gh-100201: Document behavior with a bare `yield` statement (GH-100416)

(cherry picked from commit 1aab269d4acbf0b29573ad0a21c54fddee233243)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agogh-96773 Fix documentation of socket backlog (GH-96778)
Miss Islington (bot) [Sun, 1 Jan 2023 15:16:25 +0000 (07:16 -0800)] 
gh-96773 Fix documentation of socket backlog (GH-96778)

(cherry picked from commit 1d1480fefc6ae77d14d6eff007b180ff5d1cd5d4)

Co-authored-by: Mehrdad Moradizadeh <mhrddmoradii@gmail.com>
2 years agoIDLE - fix module browser test (GH-100647)
Miss Islington (bot) [Sun, 1 Jan 2023 00:20:53 +0000 (16:20 -0800)] 
IDLE - fix module browser test (GH-100647)

(cherry picked from commit 1f6c87ca7b9351b2e5c5363504796fce0554c9b8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years agogh-100633 Tutorial: Fix dataclasses import (GH-100638)
Miss Islington (bot) [Sat, 31 Dec 2022 12:28:36 +0000 (04:28 -0800)] 
gh-100633 Tutorial: Fix dataclasses import (GH-100638)

import dataclass not dataclasses from dataclasses
(cherry picked from commit 98308dbeb110198ebe28bdb7720d3671b3e7f57b)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
2 years agoGH-85979: Clarify specification of `object.__await__` (GH-22320)
Miss Islington (bot) [Sat, 31 Dec 2022 06:31:41 +0000 (22:31 -0800)] 
GH-85979: Clarify specification of `object.__await__` (GH-22320)

(cherry picked from commit f59c7f8edd5ba5f6c1954383542a2292bcf51d91)

Co-authored-by: Paolo Lammens <lammenspaolo@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2 years agogh-100616: Document 'attr' parameter for window.vline() in curses module (GH-24961)
Miss Islington (bot) [Fri, 30 Dec 2022 17:05:40 +0000 (09:05 -0800)] 
gh-100616: Document 'attr' parameter for window.vline() in curses module (GH-24961)

(cherry picked from commit f4fcfdf8c593611f98b9358cc0c5604c15306465)

Co-authored-by: mathieui <mathieui@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2 years ago[3.10] gh-100583: Improve the `pydoc` documentation (GH-100590) (#100607)
Miss Islington (bot) [Thu, 29 Dec 2022 16:15:13 +0000 (08:15 -0800)] 
[3.10] gh-100583: Improve the `pydoc` documentation  (GH-100590) (#100607)

gh-100583: Improve the `pydoc` documentation  (GH-100590)
(cherry picked from commit 7223d50b9785bc7b0cd76dcc68d97dabcbade4b6)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2 years agoGH-100101: Clarify documentation of zip's strict option (GH-100103)
Miss Islington (bot) [Wed, 28 Dec 2022 21:32:44 +0000 (13:32 -0800)] 
GH-100101: Clarify documentation of zip's strict option (GH-100103)

(cherry picked from commit cf1c09818032df3080c2cd9e7edb5f657213dc83)

Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
2 years agogh-55688: Add note about ending backslashes for raw strings (GH-94768)
Miss Islington (bot) [Wed, 28 Dec 2022 05:39:53 +0000 (21:39 -0800)] 
gh-55688: Add note about ending backslashes for raw strings (GH-94768)

(cherry picked from commit b95b1b3b25b0a93a22c7d58ac5bd5870e62070a8)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
2 years agogh-100553: Improve accuracy of sqlite3.Row iter test (GH-100555)
Miss Islington (bot) [Wed, 28 Dec 2022 01:16:53 +0000 (17:16 -0800)] 
gh-100553: Improve accuracy of sqlite3.Row iter test (GH-100555)

(cherry picked from commit 3dc48dabd48864039951715816e07986a4828d80)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.10] gh-99535: Add test for inheritance of annotations and update documentation...
Jelle Zijlstra [Tue, 27 Dec 2022 04:44:53 +0000 (20:44 -0800)] 
[3.10] gh-99535: Add test for inheritance of annotations and update documentation (GH-99990) (#100509)

(cherry picked from commit f5b7b19bf10724d831285fb04e00f763838bd555)

Co-authored-by: MonadChains <monadchains@gmail.com>
2 years ago[3.10] gh-100520: Fix `rst` markup in `configparser` docstrings (GH-100524) (#100534)
Miss Islington (bot) [Mon, 26 Dec 2022 15:42:56 +0000 (07:42 -0800)] 
[3.10] gh-100520: Fix `rst` markup in `configparser`  docstrings (GH-100524) (#100534)

gh-100520: Fix `rst` markup in `configparser`  docstrings (GH-100524)
(cherry picked from commit 199507b81a302ea19f93593965b1e5088195a6c5)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.10] gh-92446: Improve argparse choices docs (GH-94627) (#100529)
Shantanu [Mon, 26 Dec 2022 07:10:48 +0000 (01:10 -0600)] 
[3.10] gh-92446: Improve argparse choices docs (GH-94627)  (#100529)

Based on the definition of the collections.abc classes, it is more accurate to use "sequence" instead of "container" when describing argparse choices.

(cherry picked from commit ad3c99e521)

Co-authored-by: Guy Yagev <yourlefthandman8@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years ago[3.10] gh-100287: Fix unittest.mock.seal with AsyncMock (GH-100496) (#100508)
Shantanu [Sat, 24 Dec 2022 20:39:27 +0000 (14:39 -0600)] 
[3.10] gh-100287: Fix unittest.mock.seal with AsyncMock (GH-100496) (#100508)

(cherry picked from commit e4b43ebb3afbd231a4e5630e7e358aa3093f8677)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-100472: Fix docs claim that compileall parameters could be bytes (GH-100473)
Miss Islington (bot) [Sat, 24 Dec 2022 20:29:41 +0000 (12:29 -0800)] 
gh-100472: Fix docs claim that compileall parameters could be bytes (GH-100473)

(cherry picked from commit 046cbc2080360b0b0bbe6ea7554045a6bbbd94bd)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years ago[3.10] gh-100474: Fix handling of dirs named index.html in http.server (GH-100504)
Miss Islington (bot) [Sat, 24 Dec 2022 20:29:21 +0000 (12:29 -0800)] 
[3.10] gh-100474: Fix handling of dirs named index.html in http.server (GH-100504)

Co-authored-by: James Frost <git@frost.cx>
2 years agogh-100428: Make float documentation more accurate (GH-100437)
Miss Islington (bot) [Sat, 24 Dec 2022 20:15:46 +0000 (12:15 -0800)] 
gh-100428: Make float documentation more accurate (GH-100437)

Previously, the grammar did not accept `float("10")`.
Also implement mdickinson's suggestion of removing the indirection.
(cherry picked from commit 2e1a9ce9890aba748a518a39d01d1ea6d623d0d9)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-99908: Tutorial: Modernize the 'data-record class' example (GH-100499)
Miss Islington (bot) [Sat, 24 Dec 2022 15:32:29 +0000 (07:32 -0800)] 
gh-99908: Tutorial: Modernize the 'data-record class' example (GH-100499)

(cherry picked from commit 00afa5066bd45348ed82a38d3442763b2ed1a068)

Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-77771: Add enterabs example in sched (GH-92716)
Miss Islington (bot) [Sat, 24 Dec 2022 05:30:06 +0000 (21:30 -0800)] 
gh-77771: Add enterabs example in sched (GH-92716)

(cherry picked from commit 0f6420640c0f3462e6b76b01a392844676de1fb9)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-94808: improve test coverage of number formatting (GH-99472)
Miss Islington (bot) [Sat, 24 Dec 2022 02:14:14 +0000 (18:14 -0800)] 
gh-94808: improve test coverage of number formatting (GH-99472)

(cherry picked from commit 7ca45e5ddd493411e61706d07679ea54b954e41b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.10] Correct CVE-2020-10735 documentation (GH-100306). (#100477)
Gregory P. Smith [Sat, 24 Dec 2022 02:08:27 +0000 (18:08 -0800)] 
[3.10] Correct CVE-2020-10735 documentation (GH-100306). (#100477)

(cherry picked from commit 1cf3d78c92eb07dc09d15cc2e773b0b1b9436825)

Co-authored-by: Jeremy Paige <ucodery@gmail.com>
2 years agobpo-40447: accept all path-like objects in compileall.compile_file (GH-19883)
Miss Islington (bot) [Fri, 23 Dec 2022 20:39:55 +0000 (12:39 -0800)] 
bpo-40447: accept all path-like objects in compileall.compile_file (GH-19883)

(cherry picked from commit 1ecfd1ebf1f53ef6ac82085b25ed09952b470d4e)

Co-authored-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-98712: Clarify "readonly bytes-like object" semantics in C arg-parsing docs (GH...
Miss Islington (bot) [Fri, 23 Dec 2022 15:09:34 +0000 (07:09 -0800)] 
gh-98712: Clarify "readonly bytes-like object" semantics in C arg-parsing docs (GH-98710)

(cherry picked from commit 49f6ff719c4e0beeafd6c42edd696601acf72764)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years ago[3.10] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576...
Miss Islington (bot) [Fri, 23 Dec 2022 08:55:55 +0000 (00:55 -0800)] 
[3.10] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) (#100451)

gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576)

The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero.
(cherry picked from commit 84bc6a4f25fcf467813ee12b74118f7b1b54e285)

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
2 years agogh-48496: Added example and link to faq for UnboundLocalError in reference (GH-93068)
Miss Islington (bot) [Thu, 22 Dec 2022 23:30:09 +0000 (15:30 -0800)] 
gh-48496: Added example and link to faq for UnboundLocalError in reference (GH-93068)

(cherry picked from commit f3db68e6e66ebb36e1b9cb30daba913ecc736169)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2 years agogh-57762: fix misleading tkinter.Tk docstring (GH-98837)
Miss Islington (bot) [Thu, 22 Dec 2022 23:03:38 +0000 (15:03 -0800)] 
gh-57762: fix misleading tkinter.Tk docstring (GH-98837)

Mentioned as a desired change by terryjreedy on the corresponding issue,
since Tk is not a subclass of Toplevel.
(cherry picked from commit ad23da0e77c4c4a3185df64d1c199b8c17e08188)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agoCorrect typo in typing.py (GH-100423)
Miss Islington (bot) [Thu, 22 Dec 2022 11:43:55 +0000 (03:43 -0800)] 
Correct typo in typing.py (GH-100423)

In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was
mistakenly written as `'T'`.
(cherry picked from commit 68981578eceee763da4163e93cf653cc6b1b6d35)

Co-authored-by: david-why <david_why@outlook.com>
2 years agogh-100129: Add tests for pickling all builtin types and functions (GH-100142)
Miss Islington (bot) [Wed, 21 Dec 2022 14:58:31 +0000 (06:58 -0800)] 
gh-100129: Add tests for pickling all builtin types and functions (GH-100142)

(cherry picked from commit b98d2d31bffcaeb0c4c8848a8d1b35419c70b2da)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years agogh-100374: Fixed a bug in socket.getfqdn() (gh-100375)
Miss Islington (bot) [Wed, 21 Dec 2022 14:06:27 +0000 (06:06 -0800)] 
gh-100374: Fixed a bug in socket.getfqdn() (gh-100375)

(cherry picked from commit 12be23cf3c1301be2c6b8fd4cb2cd35a567d2ea2)

Co-authored-by: Dominic Socular <BBH@awsl.rip>
2 years ago[3.10] gh-99240: Reset pointer to NULL when the pointed memory is freed in argument...
colorfulappl [Wed, 21 Dec 2022 10:03:21 +0000 (18:03 +0800)] 
[3.10] gh-99240: Reset pointer to NULL when the pointed memory is freed in argument parsing (GH-99890) (#100386)

(cherry picked from commit efbb1eb9f54cad4f7bf5df03eed3a6aba02d99f4)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.10] gh-85267: Improvements to inspect.signature __text_signature__ handling (GH...
Shantanu [Wed, 21 Dec 2022 05:25:18 +0000 (23:25 -0600)] 
[3.10] gh-85267: Improvements to inspect.signature __text_signature__ handling (GH-98796) (#100393)

This makes a couple related changes to inspect.signature's behaviour
when parsing a signature from `__text_signature__`.

First, `inspect.signature` is documented as only raising ValueError or
TypeError. However, in some cases, we could raise RuntimeError.  This PR
changes that, thereby fixing GH-83685.

(Note that the new ValueErrors in RewriteSymbolics are caught and then
reraised with a message)

Second, `inspect.signature` could randomly drop parameters that it
didn't understand (corresponding to `return None` in the `p` function).
This is the core issue in GH-85267. I think this is very surprising
behaviour and it seems better to fail outright.

Third, adding this new failure broke a couple tests. To fix them (and to
e.g. allow `inspect.signature(select.epoll.register)` as in GH-85267), I
add constant folding of a couple binary operations to RewriteSymbolics.

(There's some discussion of making signature expression evaluation
arbitrary powerful in GH-68155. I think that's out of scope. The
additional constant folding here is pretty straightforward, useful, and
not much of a slippery slope)

Fourth, while GH-85267 is incorrect about the cause of the issue, it turns
out if you had consecutive newlines in __text_signature__, you'd get
`tokenize.TokenError`.

Finally, the `if name is invalid:` code path was dead, since
`parse_name` never returned `invalid`..
(cherry picked from commit 79311cbfe718f17c89bab67d7f89da3931bfa2ac)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-91081: Add note on WeakKeyDictionary behavior when deleting a replaced entry ...
Miss Islington (bot) [Wed, 21 Dec 2022 03:34:24 +0000 (19:34 -0800)] 
gh-91081: Add note on WeakKeyDictionary behavior when deleting a replaced entry (GH-91499)

(cherry picked from commit c615286e8576f2555d4380f38a966c300805b1a5)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Pieter Eendebak <P.T.eendebak@tudelft.nl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years agogh-99991: improve docs on str.encode and bytes.decode (GH-100198)
Miss Islington (bot) [Wed, 21 Dec 2022 02:11:20 +0000 (18:11 -0800)] 
gh-99991: improve docs on str.encode and bytes.decode (GH-100198)

(cherry picked from commit a2bb3b7f9d8d15c81b724726454d68357fb31d1c)

Co-authored-by: Bisola Olasehinde <horlasehinde@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoClarify that every thread has its own default context in contextvars (GH-99246)
Miss Islington (bot) [Tue, 20 Dec 2022 11:45:48 +0000 (03:45 -0800)] 
Clarify that every thread has its own default context in contextvars (GH-99246)

(cherry picked from commit cb60b6131bc2bb11c48a15f808914d8b242b9fc5)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 years ago[3.10] gh-99240: Fix double-free bug in Argument Clinic str_converter generated code...
colorfulappl [Tue, 20 Dec 2022 10:20:42 +0000 (18:20 +0800)] 
[3.10] gh-99240: Fix double-free bug in Argument Clinic str_converter generated code (GH-99241) (#100353)

(cherry picked from commit 8dbe08eb7c807f484fe9870f5b7f5ae2881fd966)

Fix double-free bug mentioned at GH-99240, by moving memory clean up out of "exit" label.

2 years agogh-69929: re docs: Add more specific definition of \w (GH-92015)
Miss Islington (bot) [Tue, 20 Dec 2022 03:14:48 +0000 (19:14 -0800)] 
gh-69929: re docs: Add more specific definition of \w (GH-92015)

(cherry picked from commit 36a0b1d0dddbdf324d98071ea31e7e9151eea6d5)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years agogh-97909: Fix markup for `PyMethodDef` members (GH-100089)
Miss Islington (bot) [Sat, 17 Dec 2022 07:19:54 +0000 (23:19 -0800)] 
gh-97909: Fix markup for `PyMethodDef` members (GH-100089)

(cherry picked from commit 8edcb30c3f8bdd8099a093146fedbd9b63a3f667)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2 years agoDocument that zipfile's pwd parameter is a `bytes` object (GH-100209)
Miss Islington (bot) [Sat, 17 Dec 2022 06:53:20 +0000 (22:53 -0800)] 
Document that zipfile's pwd parameter is a `bytes` object (GH-100209)

(cherry picked from commit 5ee7eb9debb12914f36c5ccee92460a681516fd6)

Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
2 years ago[3.10] gh-96002: Add functional test for Argument Clinic (GH-96178) (#100232)
colorfulappl [Sat, 17 Dec 2022 06:36:06 +0000 (14:36 +0800)] 
[3.10] gh-96002: Add functional test for Argument Clinic (GH-96178) (#100232)

(cherry picked from commit c450c8c9ed6e420025f39d0e4850a79f8160cdcd)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years agogh-99830: asyncio: Document returns of remove_{reader,writer} (GH-100302)
Miss Islington (bot) [Fri, 16 Dec 2022 19:15:12 +0000 (11:15 -0800)] 
gh-99830: asyncio: Document returns of remove_{reader,writer} (GH-100302)

(cherry picked from commit 5234e1cbea686e38392f113707db322ad8405048)

Co-authored-by: Ben Darnell <ben@bendarnell.com>
2 years ago"Compound statement" docs: Fix with-statement step indexing (GH-100286)
Miss Islington (bot) [Fri, 16 Dec 2022 19:02:41 +0000 (11:02 -0800)] 
"Compound statement" docs: Fix with-statement step indexing (GH-100286)

Back in commit 226e6e7d4326cf91ef37e13528eb1f62de1bb832
an item was added to the list, renumbering all the rest of the
items, but the forward-reference wasn't updated to match.
(cherry picked from commit f23236a92d8796ae91772adaf27c3485fda963e8)

Co-authored-by: Frank Dana <ferdnyc@gmail.com>
2 years agoGH-100206: use versionadded for the addition of sysconfig.get_default_scheme (GH...
Miss Islington (bot) [Tue, 13 Dec 2022 11:03:22 +0000 (03:03 -0800)] 
GH-100206: use versionadded for the addition of sysconfig.get_default_scheme (GH-100207)

(cherry picked from commit d3ea82aaf940167482df1e08d6482de8f2dd8526)

Co-authored-by: Filipe Laíns <lains@riseup.net>
2 years agoFix: typo (Indention) (GH-99904)
Miss Islington (bot) [Mon, 12 Dec 2022 12:40:09 +0000 (04:40 -0800)] 
Fix: typo (Indention) (GH-99904)

Example needed to be indented. Was trying to call a context manger `pr` (from ` with cProfile.Profile() as pr:`) wot perform ` pr.print_stats()` once it had already exited.
(cherry picked from commit 8711b59f7ac1803307d340e357e025043fbe2f39)

Co-authored-by: jarrodcolburn <jcourtlandcolburn@gmail.com>
Automerge-Triggered-By: GH:AlexWaygood
2 years agogh-70393: Clarify mention of "middle" scope (GH-98839)
Miss Islington (bot) [Mon, 12 Dec 2022 04:26:30 +0000 (20:26 -0800)] 
gh-70393: Clarify mention of "middle" scope (GH-98839)

(cherry picked from commit 70be5e42f6e288de32e0df3c77ac22a9ddf1a74b)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-99728: correct typo in `datetime` format codes documentation (GH-99750)
Miss Islington (bot) [Sat, 10 Dec 2022 10:28:51 +0000 (02:28 -0800)] 
gh-99728: correct typo in `datetime` format codes documentation (GH-99750)

(cherry picked from commit d5f8a2b6ad408368e728a389da918cead3ef7ee9)

Co-authored-by: Brad Wolfe <brad.wolfe@gmail.com>
2 years agogh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (GH-100052)
Miss Islington (bot) [Sat, 10 Dec 2022 09:24:46 +0000 (01:24 -0800)] 
gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (GH-100052)

(cherry picked from commit 7c0fb71fbfa8682f56c15832e2c793a6180f2ec0)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2 years agobpo-43984: Allow winreg.SetValueEx to set -1 without treating it as an error (GH...
Miss Islington (bot) [Fri, 9 Dec 2022 13:17:25 +0000 (05:17 -0800)] 
bpo-43984: Allow winreg.SetValueEx to set -1 without treating it as an error (GH-25775)

(cherry picked from commit a29a7b9b786d6b928c4bb4e6e683a3788e3ab1c1)

Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com>
2 years agogh-96250: Improve sqlite3 injection attack example (GH-99270)
Miss Islington (bot) [Thu, 8 Dec 2022 20:45:32 +0000 (12:45 -0800)] 
gh-96250: Improve sqlite3 injection attack example (GH-99270)

(cherry picked from commit 41d4ac9da348ca33056e271d71588b2dc3a6d48d)

Co-authored-by: Jia Junjie <62194633+jiajunjie@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.10] bpo-44817: Ignore additional errors in ntpath.realpath (GH-27574) (GH-100023)
Miss Islington (bot) [Thu, 8 Dec 2022 09:02:28 +0000 (01:02 -0800)] 
[3.10] bpo-44817: Ignore additional errors in ntpath.realpath (GH-27574) (GH-100023)

(cherry picked from commit 124ecd657646f808d1d3282c37ee19aae6bcb47f)

Co-authored-by: Michael Förderer <michael.foerderer@gmx.de>
2 years agogh-98778: Update HTTPError to initialize properly even if fp is None (gh-99966)
Miss Islington (bot) [Thu, 8 Dec 2022 04:17:35 +0000 (20:17 -0800)] 
gh-98778: Update HTTPError to initialize properly even if fp is None (gh-99966)

(cherry picked from commit dc8a86893df37e137cfe992e95e7d66cd68e9eaf)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2 years agogh-83035: handle decorator with nested parens in inspect.getsource (GH-99654)
Miss Islington (bot) [Wed, 7 Dec 2022 17:24:41 +0000 (09:24 -0800)] 
gh-83035: handle decorator with nested parens in inspect.getsource (GH-99654)

(cherry picked from commit 68e41295b8611a990de68f15c89f1eb3dea51867)

Co-authored-by: Carl Meyer <carl@oddbird.net>
2 years ago[3.10] gh-100050: Fix an assertion error when raising unclosed parenthesis errors...
Pablo Galindo Salgado [Wed, 7 Dec 2022 13:52:05 +0000 (13:52 +0000)] 
[3.10] gh-100050: Fix an assertion error when raising unclosed parenthesis errors in the tokenizer (GH-100065) (#100073)

Automerge-Triggered-By: GH:pablogsal.
(cherry picked from commit 97e7004cfe48305bcd642c653b406dc7470e196d)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 years agoPost 3.10.9
Pablo Galindo [Tue, 6 Dec 2022 21:18:42 +0000 (21:18 +0000)] 
Post 3.10.9

2 years agoPython 3.10.9 v3.10.9
Pablo Galindo [Tue, 6 Dec 2022 18:30:42 +0000 (18:30 +0000)] 
Python 3.10.9

2 years ago[3.10] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new...
Łukasz Langa [Tue, 6 Dec 2022 17:40:30 +0000 (18:40 +0100)] 
[3.10] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created (#100059)

It no longer emits a deprecation warning if the current event loop was set.

(cherry picked from commit 3fae04b10e2655a20a3aadb5e0d63e87206d0c67)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2 years ago[3.10] gh-100001: Remove doc typo, add versionadded (GH-100042) (#100044)
Miss Islington (bot) [Tue, 6 Dec 2022 10:34:49 +0000 (02:34 -0800)] 
[3.10] gh-100001: Remove doc typo, add versionadded (GH-100042) (#100044)

(cherry picked from commit bed15f87eadc726122185cf41efcdda289f4a7b1)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years agogh-100001: Also escape \s in http.server log messages. (GH-100038)
Miss Islington (bot) [Mon, 5 Dec 2022 22:47:57 +0000 (14:47 -0800)] 
gh-100001: Also escape \s in http.server log messages. (GH-100038)

Also \ escape \s in the http.server BaseHTTPRequestHandler.log_message so
that it is technically possible to parse the line and reconstruct what the
original data was.  Without this a \xHH is ambiguious as to if it is a hex
replacement we put in or the characters r"\x" came through in the original
request line.
(cherry picked from commit 7e29398407dbd53b714702abb89aa2fd7baca48a)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years agogh-100001: Omit control characters in http.server stderr logs. (GH-100002)
Miss Islington (bot) [Mon, 5 Dec 2022 21:16:14 +0000 (13:16 -0800)] 
gh-100001: Omit control characters in http.server stderr logs. (GH-100002)

Replace control characters in http.server.BaseHTTPRequestHandler.log_message with an escaped \xHH sequence to avoid causing problems for the terminal the output is printed to.
(cherry picked from commit d8ab0a4dfa48f881b4ac9ab857d2e9de42f72828)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.10] dataclasses.rst: Prevent horizontal scrolling (gh-100025). (gh-100029)
Eric V. Smith [Mon, 5 Dec 2022 19:19:09 +0000 (14:19 -0500)] 
[3.10] dataclasses.rst: Prevent horizontal scrolling (gh-100025). (gh-100029)

(cherry picked from commit 51ee0a29e9b20c3e4a94a675e73a894ee2fe447b)

Co-authored-by: Ram Rachum <ram@rachum.com>
Co-authored-by: Ram Rachum <ram@rachum.com>
2 years ago[3.10] gh-60203: Revert changes in cycle.__setstate__ (GH-99982) (#100017)
Łukasz Langa [Mon, 5 Dec 2022 16:58:30 +0000 (17:58 +0100)] 
[3.10] gh-60203: Revert changes in cycle.__setstate__ (GH-99982) (#100017)

In case if only True/False be supported as boolean arguments in future,
we should continue to support 1/0 here.
(cherry picked from commit 922a6cf6c265e2763a003291885ff74d46203fc3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years agogh-99892: test_unicodedata: skip test on download failure (GH-100011)
Miss Islington (bot) [Mon, 5 Dec 2022 16:05:17 +0000 (08:05 -0800)] 
gh-99892: test_unicodedata: skip test on download failure (GH-100011)

Skip test_normalization() of test_unicodedata if it fails to download
NormalizationTest.txt file from pythontest.net.
(cherry picked from commit 2488c1e1b66366a3a933ff248eff080fabd2351c)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years agogh-98458: unittest: bugfix for infinite loop while handling chained exceptions that...
Miss Islington (bot) [Sun, 4 Dec 2022 19:58:31 +0000 (11:58 -0800)] 
gh-98458: unittest: bugfix for infinite loop while handling chained exceptions that contain cycles (GH-98459)

* Bugfix addressing infinite loop while handling self-referencing chained exception in TestResult._clean_tracebacks()
* Bugfix extended to properly handle exception cycles in _clean_tracebacks. The "seen" set follows the approach used in the TracebackException class (thank you @iritkatriel for pointing it out)
* adds a test for a single chained exception that holds a self-loop in its __cause__ and __context__ attributes
(cherry picked from commit 72ec518203c3f3577a5e888b12f10bb49060e6c2)

Co-authored-by: AlexTate <0xalextate@gmail.com>
2 years ago[3.10] gh-60203: Always pass True/False as boolean arguments in tests (GH-99983)...
Serhiy Storchaka [Sun, 4 Dec 2022 13:08:24 +0000 (15:08 +0200)] 
[3.10] gh-60203: Always pass True/False as boolean arguments in tests (GH-99983) (GH-99989)

Unless we explicitly test non-bool values.
(cherry picked from commit 76f43fc09af29401cc0cec7710b03e4dbf8a4578)

2 years agogh-85747: "Preface" section of asyncio-eventloop.rst: Switch to active voice and...
Miss Islington (bot) [Sun, 4 Dec 2022 00:59:47 +0000 (16:59 -0800)] 
gh-85747: "Preface" section of asyncio-eventloop.rst: Switch to active voice and suggest other edits (GH-99784)

(cherry picked from commit bf26bdf6ac04878fc720e78422991aaedb9808a1)

Co-authored-by: Brian Skinn <brian.skinn@gmail.com>