]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 11 Jan 2022 03:29:31 +0000 (19:29 -0800)]
bpo-46205: exit if no workers are alive in runtest_mp (GH-30470)
(cherry picked from commit
e13cdca0f5224ec4e23bdd04bb3120506964bc8b )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Mon, 10 Jan 2022 02:31:51 +0000 (18:31 -0800)]
bpo-46270: Describe the `in` and `not in` operators as membership tests. (GH-30504) (GH-30509)
Miss Islington (bot) [Sun, 9 Jan 2022 01:08:20 +0000 (17:08 -0800)]
bpo-34602: Fix unportable test(1) operator in configure script (GH-30490) (GH-30491)
(cherry picked from commit
3d11c1b8b49800c5c4c295953cc3abf577f6065a )
Co-authored-by: Thomas Klausner <tk@giga.or.at>
Miss Islington (bot) [Sat, 8 Jan 2022 20:05:43 +0000 (12:05 -0800)]
bpo-46261: Update `sqlite3.Cursor.lastrowid` docs (GH-30407)
Miss Islington (bot) [Sat, 8 Jan 2022 15:09:40 +0000 (07:09 -0800)]
bpo-46290: Fix parameter names in dataclasses docs (GH-30450)
(cherry picked from commit
ef5376e69e72fa922d7f1b3df47b99d3576f9df1 )
Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
Miss Islington (bot) [Sat, 8 Jan 2022 05:26:01 +0000 (21:26 -0800)]
bpo-46299: improve `test_descr.py` with stricter error handling (GH-30471)
(cherry picked from commit
e63066cfed27511c9b786d61761f87f7a532571a )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 7 Jan 2022 22:30:18 +0000 (14:30 -0800)]
bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH-30467)
Automerge-Triggered-By: GH:isidentical
(cherry picked from commit
d382f7ee0b98e4ab6ade9384268f25c06be462ad )
Co-authored-by: Batuhan Taskaya <batuhan@python.org>
Miss Islington (bot) [Fri, 7 Jan 2022 22:15:25 +0000 (14:15 -0800)]
[3.10] bpo-42378: fixed log truncation on logging shutdown (GH-27310) (GH-30468)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Fri, 7 Jan 2022 20:03:36 +0000 (12:03 -0800)]
bpo-28546: [doc] Clarify setting pdb breakpoints (GH-30360)
Co-authored-by: Ian Kelling <ian@iankelling.org>
(cherry picked from commit
6d07a9fb7cb31433c376a1aa20ea32001da0a418 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Jan 2022 19:01:33 +0000 (11:01 -0800)]
[3.10] bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663) (GH-30461)
(cherry picked from commit
273cb8e7577d143830404f6779946a0bedb58758 )
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Automerge-Triggered-By: GH:iritkatriel
Miss Islington (bot) [Fri, 7 Jan 2022 18:50:09 +0000 (10:50 -0800)]
bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326)
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit
9b7aa6a9d678ba798c57fa5bbc800014dfe4fb91 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Jan 2022 14:35:15 +0000 (06:35 -0800)]
bpo-46070: Fix asyncio initialisation guard (GH-30423)
If init flag is set, exit successfully immediately.
If not, only set the flag after successful initialization.
(cherry picked from commit
b127e70a8a682fe869c22ce04c379bd85a00db67 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Thu, 6 Jan 2022 23:18:41 +0000 (15:18 -0800)]
[3.10] bpo-46251: Add 'Security Considerations' section to logging configura… (GH-30411) (GH-30447)
Miss Islington (bot) [Thu, 6 Jan 2022 20:12:04 +0000 (12:12 -0800)]
bpo-46263: Fix second location that needs MALLOC_CONF on FreeBSD (GH-30440)
Automerge-Triggered-By: GH:tiran
(cherry picked from commit
c9137d4b638c0699b904011cafe68895d28dd80b )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Thu, 6 Jan 2022 15:36:47 +0000 (07:36 -0800)]
bpo-46263: FreeBSD 14.0 jemalloc workaround for junk bytes of freed memory (GH-30434)
Automerge-Triggered-By: GH:tiran
(cherry picked from commit
a4aa52dc2801d25b6343fe2ef8de7f40ea3bc883 )
Co-authored-by: Christian Heimes <christian@python.org>
Victor Stinner [Thu, 6 Jan 2022 15:12:28 +0000 (16:12 +0100)]
[3.10] bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" (GH-30422) (GH-30425)
This reverts commit
ea251806b8dffff11b30d2182af1e589caf88acf .
Keep "assert(interned == NULL);" in _PyUnicode_Fini(), but only for
the main interpreter.
Keep _PyUnicode_ClearInterned() changes avoiding the creation of a
temporary Python list object.
Leave the PyInterpreterState structure unchanged to keep the ABI
backward compatibility with Python 3.10.0: rename the "interned"
member to "unused_interned".
(cherry picked from commit
35d6540c904ef07b8602ff014e520603f84b5886 )
Miss Islington (bot) [Thu, 6 Jan 2022 14:44:22 +0000 (06:44 -0800)]
bpo-46278: fix typo introduced in GH-30427 (GH-30430) (GH-30431)
Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit
b50e5e916a05df65ab6a255af7624b751e0fe9d1 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Thu, 6 Jan 2022 13:04:05 +0000 (05:04 -0800)]
Reflect 'context' arg in 'AbstractEventLoop.call_*()' methods (GH-30427) (GH-30428)
(cherry picked from commit
3e43fac2503afe219336742b150b3ef6e470686f )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Wed, 5 Jan 2022 13:12:21 +0000 (05:12 -0800)]
bpo-46236: Fix PyFunction_GetAnnotations() returned tuple. (GH-30409)
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
46e4c257e7c26c813620232135781e6c53fe8d4d )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Wed, 5 Jan 2022 10:17:39 +0000 (02:17 -0800)]
bpo-46263: Don't use MULTIARCH on FreeBSD (GH-30410)
(cherry picked from commit
cae55542d23e606dde9819d5dadd7430085fcc77 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Tue, 4 Jan 2022 19:17:16 +0000 (11:17 -0800)]
Fix missing "," in the documentation of Executor Objects (GH-30404)
(cherry picked from commit
f404e26d749c85eef7b5be836375260855050ee3 )
Co-authored-by: Philipp Claßen <philipp.classen@posteo.de>
Co-authored-by: Philipp Claßen <philipp.classen@posteo.de>
Miss Islington (bot) [Tue, 4 Jan 2022 14:27:13 +0000 (06:27 -0800)]
bpo-20369: concurrent.futures.wait() now deduplicates futures given a… (GH-30168)
* bpo-20369: concurrent.futures.wait() now deduplicates futures given as arg.
* 📜🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit
7d7817cf0f826e566d8370a0e974bbfed6611d91 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 Jan 2022 12:03:38 +0000 (04:03 -0800)]
bpo-33252: Document that ResourceWarning is ignored by default (GH-30358) (GH-30395)
`ResourceWarning` is ignored by default.
Document this behaviour, for consistency with others in this table such as `DeprecationWarning`.
Documentation PR can skip NEWS file.
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit
b949845b36b999185ed2bdf8a04dca1da39f3002 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 Jan 2022 11:03:46 +0000 (03:03 -0800)]
bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341)
(cherry picked from commit
e09d94a140a5f6903017da9b6ac752ba041d69da )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 4 Jan 2022 09:22:26 +0000 (01:22 -0800)]
bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353) (#30388)
(cherry picked from commit
5a2a65096c3ec2d37f33615f2a420d2ffcabecf2 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 4 Jan 2022 05:55:38 +0000 (21:55 -0800)]
Add doctest and improve readability for move_to_end() example. (GH-30370) (GH-30373)
Miss Islington (bot) [Mon, 3 Jan 2022 23:10:20 +0000 (15:10 -0800)]
bpo-34538: Remove Exception subclassing from tutorial (GH-30361)
Remove the bit about subclassing exceptions.
Documentation PR can skip the NEWS label.
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit
2db56130631255ca2eb504519430fb2f1fe789e9 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 3 Jan 2022 20:36:41 +0000 (12:36 -0800)]
bpo-34931: [doc] clarify behavior of os.path.splitext() on paths with multiple leading periods (GH-30347) (GH-30368)
(cherry picked from commit
51700bf08b0dd4baf998440b2ebfaa488a2855ba )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Mon, 3 Jan 2022 06:44:35 +0000 (22:44 -0800)]
bpo-40477: macOS Python Launcher app fixes for recent macOS releases (GH-30348) (GH-30349)
This change solves two problems encountered by users of the macOS Python Launcher app on recent macOS releases (10.14+):
- The launcher app was no longer able to launch the macOS Terminal.app to run a script.
- Even if Terminal.app was already launched, the launcher app was unable to send an Apple Event to Terminal.app to open and run Python with the desired .py file.
(cherry picked from commit
549e62827262264cda30455e10e315602129da72 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Sun, 2 Jan 2022 21:29:35 +0000 (13:29 -0800)]
argparse docs: prog default is the basename of argv[0] (GH-30298) (GH-30339)
Miss Islington (bot) [Sun, 2 Jan 2022 21:13:04 +0000 (13:13 -0800)]
[3.10] Update copyright year to 2022. (GH-30335) (GH-30336)
Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit
ba00f0d93a4aea85ae8089f139856a7c450584d7 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Sat, 1 Jan 2022 19:12:43 +0000 (11:12 -0800)]
bpo-46095: Improve SeqIter documentation. (GH-30316) (GH-30330)
Miss Islington (bot) [Sat, 1 Jan 2022 18:12:59 +0000 (10:12 -0800)]
bpo-46079: Replace external link that is down for maintenance. (GH-30315) (GH-30328)
Miss Islington (bot) [Thu, 30 Dec 2021 05:29:03 +0000 (21:29 -0800)]
bpo-46085: Fix iterator cache mechanism of OrderedDict. (GH-30290)
(cherry picked from commit
fb44d0589615590b1e7895ba78a038e96b15a219 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Wed, 29 Dec 2021 23:01:17 +0000 (15:01 -0800)]
closes bpo-38522 docs: remove references to Py_USING_MEMORY_DEBUGGER (GH-30284) (GH-30295)
(cherry picked from commit
8e11237c5d24e649b26cc928b52bc37f2fde9c7a )
Co-authored-by: Carlos Damazio <carlos.damazio@damazio.dev>
Co-authored-by: Carlos Damazio <carlos.damazio@damazio.dev>
Erlend Egeberg Aasland [Wed, 29 Dec 2021 19:40:11 +0000 (20:40 +0100)]
[3.10] bpo-46185: Fix wrong version ref. in macOS installer ReadMe (GH-30280)
Miss Islington (bot) [Wed, 29 Dec 2021 11:45:14 +0000 (03:45 -0800)]
[3.10] bpo-46120: State that `|` is preferred over `Union` (GH-30222) (GH-30250)
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
(cherry picked from commit
1b30660c3b40da557050948ac8635f2dc50c4ee2 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Mon, 27 Dec 2021 16:15:44 +0000 (08:15 -0800)]
bpo-42918: Improve built-in function compile() in mode 'single' (GH-29934) (GH-30040)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit
28179aac796ed1debdce336c4b8ca18e8475d40d )
Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
Miss Islington (bot) [Sun, 26 Dec 2021 12:04:26 +0000 (04:04 -0800)]
bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
(cherry picked from commit
2e3e0d23adca8d83722d939d6abd1e467d7578f7 )
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Miss Islington (bot) [Sun, 26 Dec 2021 11:52:46 +0000 (03:52 -0800)]
Fix typo in io.rst (GH-30218)
(cherry picked from commit
f9a4352056175d96195d4cb54c97c1334ea5150c )
Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
Miss Islington (bot) [Sun, 26 Dec 2021 11:51:42 +0000 (03:51 -0800)]
doc: fix a typo in unittest.mock.rst (GH-30227)
(cherry picked from commit
10bf0a9ac3c9bbde2fa8989d9435462f0e7da545 )
Co-authored-by: Joe <nigelchiang@outlook.com>
Miss Islington (bot) [Sun, 26 Dec 2021 11:29:58 +0000 (03:29 -0800)]
docs: Fix typos and use anchor for internal link (GH-30236)
(cherry picked from commit
c1d7a6bed9f2bb8cb7612d196fc0caba016fa98c )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Sun, 26 Dec 2021 11:15:14 +0000 (03:15 -0800)]
Doc: Fix link in multiprocessing.starmap pointing to builtin map. (GH-26560)
(cherry picked from commit
32096df0e00e692ee6dc688e62213bff0dffd573 )
Co-authored-by: Julien Palard <julien@palard.fr>
Serhiy Storchaka [Sun, 26 Dec 2021 10:37:39 +0000 (12:37 +0200)]
[3.10] Remove a NEWS entry for bpo-45878 (GH-30258)
The docs linter complains about it, and in general news entries for such changes are not required.
Serhiy Storchaka [Sat, 25 Dec 2021 14:12:32 +0000 (16:12 +0200)]
[3.10] bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050) (GH-30254)
The registry() method of functools.singledispatch() functions checks now
the first argument or the first parameter annotation and raises a TypeError if it is
not supported. Previously unsupported "types" were ignored (e.g. typing.List[int])
or caused an error at calling time (e.g. list[int]).
(cherry picked from commit
078abb676cf759b1e960f78390b6e80f256f0255 )
Miss Islington (bot) [Fri, 24 Dec 2021 09:28:57 +0000 (01:28 -0800)]
bpo-45878: convert `try/except` to `self.assertRaises` in `Lib/ctypes/test/test_functions.py` (GH-29721) (GH-29748)
(cherry picked from commit
b48ac6fe38b2fca9963b097c04cdecfc6083104e )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 24 Dec 2021 08:31:13 +0000 (00:31 -0800)]
bpo-46150: ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser` (GH-30240)
Ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser`
(cherry picked from commit
b8de8b7039cee47465b2af9950b0b9ed2d3f2903 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 24 Dec 2021 08:07:24 +0000 (00:07 -0800)]
Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244)
(cherry picked from commit
d8880677a79ba4e70bbe7583eecf573bfceb7e98 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Ned Deily [Wed, 22 Dec 2021 04:24:03 +0000 (23:24 -0500)]
bpo-46106: Update OpenSSL to 1.1.1m (GH-30211) (GH-30224)
Co-authored-by: Ned Deily <nad@python.org>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Dec 2021 14:15:39 +0000 (06:15 -0800)]
Update potentially confusing note for mean. (GH-30174) (GH-30220)
(cherry picked from commit
e9a01e231aae19fd1249368e477a60bc033b2646 )
Pablo Galindo Salgado [Mon, 20 Dec 2021 16:23:37 +0000 (16:23 +0000)]
[3.10] bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177) (GH-30214)
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>.
(cherry picked from commit
e9898bf153d26059261ffef11f7643ae991e2a4c )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Mon, 20 Dec 2021 12:50:45 +0000 (04:50 -0800)]
bpo-23819: Get rid of assert statements in test_asyncio (GH-30212) (GH-30213)
To keep checks even if run tests with optimized Python.
Either use special assertion methods like assertEqual() or
raise an AssertionError explicitly.
(cherry picked from commit
6ca78affc8023bc5023189d64d8050857662042a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 20 Dec 2021 06:01:51 +0000 (22:01 -0800)]
[3.10] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30209)
See discussion in GH-30179.
(cherry picked from commit
7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:Fidget-Spinner
Miss Islington (bot) [Sun, 19 Dec 2021 21:11:12 +0000 (13:11 -0800)]
bpo-46076: Improve documentation for per-attribute docstrings with `__slots__` (GH-30109) (GH-30206)
Andrew Svetlov [Sun, 19 Dec 2021 15:17:40 +0000 (17:17 +0200)]
[3.10] bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198) (GH-30202)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>.
(cherry picked from commit
9c06fd89514a9a2865e2adcc472095f6949cecb2 )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Sun, 19 Dec 2021 14:32:49 +0000 (06:32 -0800)]
bpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199)
This allows the title to be translated to other languages without linking problems.
(cherry picked from commit
3d3615f41f4ea73fe6707eb3673dfab482cb6a2b )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Sat, 18 Dec 2021 14:12:30 +0000 (06:12 -0800)]
bpo-46113: Minor fixes in stdtypes documentation (GH-30167) (GH-30186)
* Fix-1 - isidentifier() function output
* Fix-2 Update the str.splitlines() function parameter
* Fix-3 Removed unwanted full stop for str and bytes types double quotes examples.
* Fix-4 Updated class dict from **kwarg to **kwargs
(cherry picked from commit
6f2df4295123f8b961d49474b7668f7564a534a4 )
Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
Miss Islington (bot) [Sat, 18 Dec 2021 13:49:01 +0000 (05:49 -0800)]
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (GH-30183)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
(cherry picked from commit
427a490c495cde8a152e938c6f02be65620e3e59 )
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Miss Islington (bot) [Sat, 18 Dec 2021 12:14:25 +0000 (04:14 -0800)]
[3.10] bpo-46104: Reduce use of pre-PEP 526 syntax in typing docs (GH-30148) (GH-30179)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
(cherry picked from commit
6ada013df170b0afb6b61a0d942388c6fd81cbc9 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Fri, 17 Dec 2021 23:32:02 +0000 (15:32 -0800)]
[3.10] bpo-46044: Annotate deprecated sdists formats (GH-30043) (#30154)
(cherry picked from commit
ecdc0ccede5f9ac4042ff56f295d81df2f428950 )
Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Éric <merwok@netwok.org>
Miss Islington (bot) [Fri, 17 Dec 2021 15:38:11 +0000 (07:38 -0800)]
bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170)
(cherry picked from commit
2985feac4e02d590bb78bcce9e30864be53280ac )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Fri, 17 Dec 2021 11:33:07 +0000 (03:33 -0800)]
bpo-45755: [typing] Reveal class attributes of generic in generic aliases in `dir()` (GH-29962)
(cherry picked from commit
d6e13747161d7b634b47d2d3d212ed3be4a21fab )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Fri, 17 Dec 2021 09:29:54 +0000 (01:29 -0800)]
bpo-46111: Fix unittest tests in optimized mode (GH-30163)
(cherry picked from commit
95a922b3bb3af247ec141d73fcdfbf68bb1d32a5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 17 Dec 2021 05:51:11 +0000 (21:51 -0800)]
Fix a typo in the message from make_ssl_certs. (GH-30152) (GH-30161)
The file is utils.py not util.py.
Automerge-Triggered-By: GH:gpshead
(cherry picked from commit
69ef1b59983065ddb0b712dac3b04107c5059735 )
Co-authored-by: Yilei "Dolee" Yang <yileiyang9@gmail.com>
Miss Islington (bot) [Thu, 16 Dec 2021 21:19:14 +0000 (13:19 -0800)]
bpo-46105: Honor spec when generating requirement specs with urls and extras. (GH-30151)
(cherry picked from commit
109d96602199a91e94eb14b8cb3720841f22ded7 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Thu, 16 Dec 2021 12:23:41 +0000 (04:23 -0800)]
bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060) (GH-30133)
(cherry picked from commit
a951c95a13c3555ac8fb1c8ee615ba3930ccc6f7 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Thu, 16 Dec 2021 11:00:58 +0000 (03:00 -0800)]
Fix the output of built-in iter() function example in Iterators (Section 9.8) of The Python Tutorial (GH-30110)
Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
(cherry picked from commit
c5d18a5014f649368b5a4bca94e9ec7d2908b481 )
Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
Miss Islington (bot) [Wed, 15 Dec 2021 12:59:01 +0000 (04:59 -0800)]
Add Positional only arguments forward slash (/) to sorted() function in Built-in Functions document (GH-30113)
sorted() function is missing forward slash (/) in Built-in Functions documentation page.
Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit
f025ae63dccf96c4a1d781a6438bd9ed1502f0a1 )
Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
Miss Islington (bot) [Wed, 15 Dec 2021 12:20:04 +0000 (04:20 -0800)]
bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099) (GH-30114)
(cherry picked from commit
86de99588db3beff964137f4fe27dd1077a09b35 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Tue, 14 Dec 2021 17:27:00 +0000 (09:27 -0800)]
[3.10] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH-30104)
Miss Islington (bot) [Tue, 14 Dec 2021 15:25:32 +0000 (07:25 -0800)]
bpo-46059: Clarify pattern-matching example in "control flow" docs (GH-30079)
The "Color" example in the pattern-matching section of the "control flow" documentation is not immediately runnable, leading to confusion.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
1cbb88736c32ac30fd530371adf53fe7554be0a5 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Tue, 14 Dec 2021 01:17:56 +0000 (17:17 -0800)]
[3.10] bpo-46063: Improve algorithm for computing which rolled-over log file… (GH-30093) (GH-30094)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Miss Islington (bot) [Mon, 13 Dec 2021 13:24:50 +0000 (05:24 -0800)]
Clarify new_event_loop return value. (GH-30078) (GH-30088)
(cherry picked from commit
e09705f58fc2ff3cc2720c6337ae3f48bb7cb090 )
Co-authored-by: Paul Bryan <pbryan@anode.ca>
Irit Katriel [Mon, 13 Dec 2021 10:47:38 +0000 (10:47 +0000)]
[3.10] bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions (GH-30075) (GH-30085)
(cherry picked from commit
481f3ffdbe40bd19677a1ba0ac2e7cece8949b47 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Serhiy Storchaka [Mon, 13 Dec 2021 10:14:51 +0000 (12:14 +0200)]
[3.10] bpo-27718: Fix help for the signal module (GH-30063) (GH-30080)
Functions signal(), getsignal(), pthread_sigmask(), sigpending(),
sigwait() and valid_signals() were omitted.
If __all__ is not defined all non-builtin functions should have
correct __module__.
(cherry picked from commit
e08c0d8eec528f1d7a282ee19bcadb9aae9ec123 )
Alex Waygood [Mon, 13 Dec 2021 09:20:21 +0000 (09:20 +0000)]
bpo-45840: Improve cross-references in the data model documentation (GH-29633) (GH-30077)
(cherry picked from commit
c0521fe49fd75e794a38a216813658ab40185834 )
Miss Islington (bot) [Sun, 12 Dec 2021 16:52:49 +0000 (08:52 -0800)]
bpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH-30068) (GH-30069)
(cherry picked from commit
4325a766f5f603ef6dfb8c4d5798e5e73cb5efd5 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sun, 12 Dec 2021 01:24:12 +0000 (17:24 -0800)]
bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) (GH-30064)
(cherry picked from commit
59435eea08d30796174552c0ca03c59b41adf8a5 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Andrew Svetlov [Sat, 11 Dec 2021 18:27:47 +0000 (20:27 +0200)]
[3.10] bpo-46040: Fix removal text for @asyncio.coroutine (GH-30061)
Miss Islington (bot) [Sat, 11 Dec 2021 00:32:13 +0000 (16:32 -0800)]
bpo-19737: Improved the documentation for globals (GH-29823) (GH-30041)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
4fe5585240f64c3d14eb635ff82b163f92074b3a )
Co-authored-by: 180909 <734461790@qq.com>
Miss Islington (bot) [Sat, 11 Dec 2021 00:03:55 +0000 (16:03 -0800)]
Fix markup buglet in Doc/howto/annotations.rst (GH-29802) (GH-29805)
(cherry picked from commit
94daf39b2f7e9b50e7ae7a16caeef804f8e37ae3 )
Co-authored-by: Guido van Rossum <guido@python.org>
Miss Islington (bot) [Sat, 11 Dec 2021 00:02:56 +0000 (16:02 -0800)]
bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) (GH-29758)
(cherry picked from commit
abfc794bbf2c6a0939ddd81b6e700c46944ba87a )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 11 Dec 2021 00:01:16 +0000 (16:01 -0800)]
[doc] Clarify MRO precedence in descriptor super binding section (GH-29539) (GH-29669)
A similar sentence is present in the 'Invocation from super' section of
the descriptor HOWTO, where it is already correct.
(cherry picked from commit
ee49484c0f0d0d79e8fc40835da10b78f89ae503 )
Co-authored-by: Jouke Witteveen <j.witteveen@gmail.com>
Serhiy Storchaka [Fri, 10 Dec 2021 23:36:15 +0000 (01:36 +0200)]
[3.10] bpo-13236: Flush the output stream more often in unittest (GH-29864) (GH-29929)
It can prevent some losses when output to buffered stream..
(cherry picked from commit
f42a06ba279c916fb67289e47f9bc60dc5dee4ee )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 10 Dec 2021 23:29:46 +0000 (15:29 -0800)]
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) (GH-30037)
Signed-off-by: Louis Sautier <sautier.louis@gmail.com>
(cherry picked from commit
c1051e08b3c6d9045322763876a4b0aea98d79f9 )
Co-authored-by: Louis Sautier <sautier.louis@gmail.com>
Miss Islington (bot) [Fri, 10 Dec 2021 17:51:42 +0000 (09:51 -0800)]
[3.10] bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216) (GH-30034)
Co-authored-by: Ian Norton <inorton@gmail.com>
Miss Islington (bot) [Fri, 10 Dec 2021 10:29:23 +0000 (02:29 -0800)]
bpo-46000: Improve NetBSD curses compatibility (GH-29947)
(cherry picked from commit
2fb797e93c6bbd44dfcbe23f63acfa240a87e48a )
Co-authored-by: Thomas Klausner <tk@giga.or.at>
Miss Islington (bot) [Fri, 10 Dec 2021 10:02:14 +0000 (02:02 -0800)]
bpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384)
(cherry picked from commit
8c74713d0e349c27518080945d5f040dfd52a56e )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Thu, 9 Dec 2021 19:37:06 +0000 (11:37 -0800)]
bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)
(cherry picked from commit
3363e1cb05d0d19ed172ea63606d8cb6268747fc )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Thu, 9 Dec 2021 15:16:09 +0000 (07:16 -0800)]
bpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH-30002) (GH-30005)
(cherry picked from commit
f0d290d25cad66e615ada68ba190b8a23ac1deaa )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Thu, 9 Dec 2021 13:17:36 +0000 (05:17 -0800)]
bpo-45391: mark UnionType as a class in documentation (GH-28757)
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
(cherry picked from commit
e2cfc89e099b8fad5d8d5bd7f59dadffb6078778 )
Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
Mark Shannon [Wed, 8 Dec 2021 14:46:32 +0000 (14:46 +0000)]
[3.10] bpo-46009: Do not exhaust generator when send() method raises (GH-29986). (GH-29988)
* [3.10] bpo-46009: Do not exhaust generator when send() method raises (GH-29986).
(cherry picked from commit
69806b9516dbe092381f3ef884c7c64bb9b8414a )
Co-authored-by: Mark Shannon <mark@hotpy.org>
* Rename variable after cherry-pick.
* Add NULL check.
Miss Islington (bot) [Wed, 8 Dec 2021 11:18:33 +0000 (03:18 -0800)]
doc: Add link issue 44010 (GH-29454)
(cherry picked from commit
3e0f13b9e48eec8c54a185e4180bfca4e5e685f6 )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Wed, 8 Dec 2021 11:07:27 +0000 (03:07 -0800)]
Fix double-space in exception message (GH-29955)
(cherry picked from commit
c602c1be439e295fed9ebab47e895ef1d9df28be )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Miss Islington (bot) [Tue, 7 Dec 2021 15:47:31 +0000 (07:47 -0800)]
[3.10] bpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963) (GH-29965)
(cherry picked from commit
c7e7a4b969b5728d4b4f3c59bf98e1e830d5c6d6 )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Automerge-Triggered-By: GH:Fidget-Spinner
Pablo Galindo Salgado [Tue, 7 Dec 2021 15:23:33 +0000 (15:23 +0000)]
[3.10] bpo-46004: Fix error location for loops with invalid targets (GH-29959). (GH-29961)
(cherry picked from commit
1c7a1c3be08ee911d347fffd2716f3911ba751f9 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 7 Dec 2021 11:45:13 +0000 (03:45 -0800)]
[3.10] bpo-35821: Add an example to Logger.propagate documentation. (GH-29841) (GH-29957)
Miss Islington (bot) [Tue, 7 Dec 2021 10:20:10 +0000 (02:20 -0800)]
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943)
(cherry picked from commit
8db06528cacc94e67eb1fb2e4c2acc061a515671 )
Co-authored-by: James Gerity <snoopjedi@gmail.com>
Pablo Galindo [Mon, 6 Dec 2021 18:52:20 +0000 (18:52 +0000)]
Post 3.10.1
Pablo Galindo [Mon, 6 Dec 2021 17:56:39 +0000 (17:56 +0000)]
Python 3.10.1