]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sun, 8 Aug 2021 03:44:08 +0000 (20:44 -0700)]
bpo-44830 - Remove the broken Broken Mozilla devguide link. (GH-27664) (GH-27665)
(cherry picked from commit
ebecffdb6d5fffa4249f9a813f1fc1915926feb5 )
Co-authored-by: Senthil Kumaran <senthil@python.org>
Co-authored-by: Senthil Kumaran <senthil@python.org>
Miss Islington (bot) [Sat, 7 Aug 2021 11:17:41 +0000 (04:17 -0700)]
bpo-44856: Possible reference leak in error paths of update_bases() and __build_class__ (GH-27647) (GH-27651)
(cherry picked from commit
a40675c659cd8c0699f85ee9ac31660f93f8c2f5 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Erlend Egeberg Aasland [Fri, 6 Aug 2021 21:02:06 +0000 (23:02 +0200)]
[3.9] bpo-44822: Don't truncate `str`s with embedded NULL chars returned by `sqlite3` UDF callbacks (GH-27588). (GH-27639)
(cherry picked from commit
8f010dc920e1f6dc6a357e7cc1460a7a567c05c6 )
Miss Islington (bot) [Fri, 6 Aug 2021 20:33:21 +0000 (13:33 -0700)]
bpo-27752: improve documentation of csv.Dialect (GH-26795) (GH-27644)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
0ffdced3b64ba5886fcde64266a31a15712da284 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Fri, 6 Aug 2021 19:57:52 +0000 (12:57 -0700)]
bpo-44605: Teach @total_ordering() to work with metaclasses (GH-27633) (GH-27641)
Miss Islington (bot) [Fri, 6 Aug 2021 18:42:27 +0000 (11:42 -0700)]
bpo-44756: [docs] revert automated virtual environment creation on `make html` (GH-27635) (GH-27636)
It turned out to be disruptive for downstream distributors.
(cherry picked from commit
55fa87b1ef46bbb9db7612b2dc2dd7fb039d9bc3 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Erlend Egeberg Aasland [Fri, 6 Aug 2021 17:57:39 +0000 (19:57 +0200)]
[3.9] bpo-43853: Handle sqlite3_value_text() errors (GH-25422). (GH-27627)
(cherry picked from commit
006fd869e4798b68e266f5de89c83ddb531a756b )
Miss Islington (bot) [Fri, 6 Aug 2021 15:38:21 +0000 (08:38 -0700)]
bpo-44679: [doc] fix typo in unittest.mock.rst (GH-27618) (GH-27619)
(cherry picked from commit
938e84b4fa410f1a86f5e0708ebc3af6bb8efb0e )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Fri, 6 Aug 2021 13:42:51 +0000 (06:42 -0700)]
bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623)
Fix the os.set_inheritable() function on FreeBSD 14 for file
descriptor opened with the O_PATH flag: ignore the EBADF error on
ioctl(), fallback on the fcntl() implementation.
(cherry picked from commit
c24896c0e3b32c8a9f614ef51366007b67d5c665 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Łukasz Langa [Fri, 6 Aug 2021 13:35:11 +0000 (15:35 +0200)]
[3.9] bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783) (GH-27629)
* When trying to allocate very large regions on macOS, malloc does not fail silently. It sends a noisy error out to STDERR
* This provides a helper function to warn the user, and provides the warning for test_decimal, which consistently generates these warnings on macOS.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
(cherry picked from commit
15d3c14df32a35ac69898a7852115722e30d7857 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Wed, 4 Aug 2021 20:09:45 +0000 (13:09 -0700)]
bpo-42958: Improve description of shallow= in filecmp.cmp docs (GH-27166) (GH-27608)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Alexander Vandenbulcke <alexander.vandenbulcke95@gmail.com>
(cherry picked from commit
a8dc4893d2b28827e82447326ea47759c161a722 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Wed, 4 Aug 2021 20:00:52 +0000 (13:00 -0700)]
[doc] bpo-43066: zipfile - add note on leading slash in the filename arg (GH-26899) (GH-27606)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
7c5dab4340032eb15d3797d8b601ef11649bbab3 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Wed, 4 Aug 2021 19:53:29 +0000 (12:53 -0700)]
Fix typo in 'xml.dom.minidom' documentation (GH-27602) (GH-27604)
(cherry picked from commit
cc77193127381be16467ad10f421d3ba147ed972 )
Co-authored-by: Cristián Maureira-Fredes <cmaureir@users.noreply.github.com>
Miss Islington (bot) [Wed, 4 Aug 2021 19:23:48 +0000 (12:23 -0700)]
Fix 404 link to the pyporting mailing list (GH-27320) (GH-27601)
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
977d99d1cca6ddd87fe6f218bca46e7ef105bd72 )
Co-authored-by: Rohit Nishad <47008599+rohitnishad613@users.noreply.github.com>
Miss Islington (bot) [Wed, 4 Aug 2021 18:24:03 +0000 (11:24 -0700)]
Note that tp_clear and m_clear are not always called (GH-27581) (GH-27597)
(cherry picked from commit
10faada709561663d6b1f623d308ff45e3808cca )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Wed, 4 Aug 2021 18:15:19 +0000 (11:15 -0700)]
Fix hyperlink conflict in turtle docs (GH-27592) (GH-27595)
(cherry picked from commit
3d2b4c6f18d7e644e5850d2af74ac5dc530eb24c )
Co-authored-by: Harry <harry.lees@gmail.com>
Miss Islington (bot) [Tue, 3 Aug 2021 17:48:08 +0000 (10:48 -0700)]
bpo-41886: Fix documented type of PyType_Type (GH-22454)
(cherry picked from commit
ac811f9b5a68ce8756911ef2c8be83b46696018f )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Miss Islington (bot) [Tue, 3 Aug 2021 12:03:40 +0000 (05:03 -0700)]
bpo-41737: expand doc for NotADirectoryError (GH-27471) (GH-27577)
(cherry picked from commit
f7c23a99cd4f8179b6ba2cffaeb78b852c0f6488 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Tue, 3 Aug 2021 10:10:54 +0000 (03:10 -0700)]
bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw. (GH-17658) (GH-27573)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
(cherry picked from commit
83ca46b7784b7357d82ec47b33295e09ed7380cb )
Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
Miss Islington (bot) [Mon, 2 Aug 2021 18:37:42 +0000 (11:37 -0700)]
bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536) (GH-27567)
Miss Islington (bot) [Mon, 2 Aug 2021 18:08:10 +0000 (11:08 -0700)]
bpo-35183: Add typical examples to os.path.splitext docs (GH-27286) (GH-27564)
(cherry picked from commit
aa0894b3792901adb91e5f6d049154b7bcb980ec )
Co-authored-by: Jake Stockwin <jake.stockwin@optimorlabs.com>
Miss Islington (bot) [Mon, 2 Aug 2021 16:53:55 +0000 (09:53 -0700)]
Document PyMember_GetOne and PyMember_SetOne (GH-27555) (GH-27561)
(cherry picked from commit
d382bde220b4c07cce2b924ffeb7525ea1a969f4 )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Mon, 2 Aug 2021 16:52:16 +0000 (09:52 -0700)]
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) (GH-27559)
Non-protocol subclasses of protocol ignore now the __init__ method
inherited from protocol base classes.
(cherry picked from commit
043cd60abed09edddc7185bcf7d039771acc734d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 2 Aug 2021 16:39:25 +0000 (09:39 -0700)]
bpo-44785: Silence deprecation warnings in test_pickle (GH-27538) (#27557)
(cherry picked from commit
36d952d228582b0ffc7a86c520d4ddbe8943d803 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 2 Aug 2021 13:13:52 +0000 (06:13 -0700)]
doc: "Mac OS " -> "macOS" (GH-27534) (GH-27549)
(cherry picked from commit
1342248f3a2b321b7b00867f47c92ba6549f9497 )
Co-authored-by: partev <petrosyan@gmail.com>
Miss Islington (bot) [Mon, 2 Aug 2021 13:13:34 +0000 (06:13 -0700)]
doc: "Mac OS X" -> "macOS" (GH-27535) (GH-27547)
(cherry picked from commit
414dcb13aaa4fd42f264fdee47782dede5c83d6c )
Co-authored-by: partev <petrosyan@gmail.com>
Miss Islington (bot) [Mon, 2 Aug 2021 09:44:01 +0000 (02:44 -0700)]
bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer (GH-27499) (GH-27501)
(cherry picked from commit
b6bde9fc42aecad5be0457198d17cfe7b481ad79 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 31 Jul 2021 05:04:38 +0000 (22:04 -0700)]
Trivial typo in docstring (#27505)
(cherry picked from commit
4b4227b907a262446b9d276c274feda2590a4e6e )
Co-authored-by: Jesús Cea <jcea@jcea.es>
Co-authored-by: Jesús Cea <jcea@jcea.es>
Miss Islington (bot) [Fri, 30 Jul 2021 17:30:58 +0000 (10:30 -0700)]
bpo-42892: fix email multipart attribute error (GH-26903) (GH-27493)
(cherry picked from commit
e3f877c32d7cccb734f45310f26beeec793364ce )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Fri, 30 Jul 2021 17:25:58 +0000 (10:25 -0700)]
bpo-41911: Update docs for various expressions (GH-27470) (GH-27491)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
4bd9caafb64589288e5171087070bde726178c58 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Fri, 30 Jul 2021 17:12:29 +0000 (10:12 -0700)]
bpo-44666: Use default encoding as fallback for compile_file (GH-27236) (GH-27489)
When sys.stdout.encoding is None compile_file will fall back to
sys.getdefaultencoding to encode/decode error messages.
Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de>
Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
(cherry picked from commit
80f07076294bc09a55ed76d9bbf307404eef25e6 )
Miss Islington (bot) [Fri, 30 Jul 2021 16:20:24 +0000 (09:20 -0700)]
bpo-44753: Don't use logfile extension when determining old files to be deleted (GH-27475) (GH-27486)
(cherry picked from commit
6ff890380971752299325bd28eab80ec936975cf )
Pablo Galindo Salgado [Fri, 30 Jul 2021 14:51:13 +0000 (15:51 +0100)]
[3.9] Fail the CI if an optional module fails to compile (GH-27466). (GH-27482)
(cherry picked from commit
7cad0bee80a536c7e47f54cf43174175834f30a0 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Łukasz Langa [Fri, 30 Jul 2021 14:34:04 +0000 (16:34 +0200)]
[3.9] Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27480)
(cherry picked from commit
be42c06bb01206209430f3ac08b72643dc7cad1c )
Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
Miss Islington (bot) [Fri, 30 Jul 2021 12:07:30 +0000 (05:07 -0700)]
Add missing gdbm dependencies to the UNIX CI (GH-27467) (GH-27468)
(cherry picked from commit
851cca8c22795a2f143ad5ebc10adab3c7784ad0 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Erlend Egeberg Aasland [Thu, 29 Jul 2021 21:12:55 +0000 (23:12 +0200)]
[3.9] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised (GH-27431) (GH-27465)
(cherry picked from commit
7e311e496b0e26b3d3c62fe9b0ed2a4677c37ee9 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Thu, 29 Jul 2021 17:41:51 +0000 (10:41 -0700)]
Fix typo in ast.rst (GH-27449) (GH-27455)
Co-authored-by: HaeckelK <haeckelk.github@gmail.com>
(cherry picked from commit
6b61d74a3bab43a44fa47b1facd1bec3d74e12b1 )
Miss Islington (bot) [Thu, 29 Jul 2021 17:28:22 +0000 (10:28 -0700)]
To fix the random failed test cases of test___xxsubinterpreters in multiprocess. (GH-27240) (GH-27453)
(cherry picked from commit
9101b39e67c2437e88c0ad6b57aafd48ab08d431 )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Miss Islington (bot) [Thu, 29 Jul 2021 17:23:17 +0000 (10:23 -0700)]
bpo-44765: [doc] fix typo (GH-27430) (GH-27451)
(cherry picked from commit
ccefa8a905c797e4a60078d5e1de846f929c6928 )
Co-authored-by: Pavel <69010336+pavel-lexyr@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Jul 2021 15:46:07 +0000 (08:46 -0700)]
bpo-44752: refactor part of rlcompleter.Completer.attr_matches (GH-27433) (GH-27446)
(cherry picked from commit
6741794dd420c6b9775a188690dbf265037cd69f )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Jul 2021 13:53:39 +0000 (06:53 -0700)]
bpo-44752: Make rlcompleter not call `@property` methods (GH-27401) (#27445)
* rlcompleter was calling these methods to identify whether to add
parenthesis to the completion, based on if the attribute is callable.
* for property objects, completion with parenthesis are never desirable.
* property methods with print statements behaved very strangely, which
was especially unfriendly to language newcomers. <tab> could suddenly
produce output unexpectedly.
(cherry picked from commit
50de8f74f8e92b20e76438c22b6a8f91afd6df75 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Jul 2021 12:05:43 +0000 (05:05 -0700)]
bpo-44707: Fix an undefined behavior of the null pointer arithmetic (GH-27292) (GH-27443)
(cherry picked from commit
e5c8ddb1714fb51ab1defa24352c98e0f01205dc )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 29 Jul 2021 09:33:16 +0000 (02:33 -0700)]
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) (GH-27440)
(cherry picked from commit
47fd4726a2ce8599cc397ddeae40f70eb471e868 )
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Jason R. Coombs [Wed, 28 Jul 2021 22:48:52 +0000 (18:48 -0400)]
[3.9] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227) (GH-27400)
* [3.9] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227)
* bpo-44461: Fix bug with pdb's handling of import error due to a package which does not have a __main__ module
* 📜🤖 Added by blurb_it.
* remove "else"
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* If running as a module, first check that it can run as a module. Alternate fix for bpo-44461.
Co-authored-by: Irit Katriel
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>.
(cherry picked from commit
ee03bad25e83b00ba5fc2a0265b48c6286e6b3f7 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Ensure os_helper is imported.
* Actually, os_helper doesn't exist yet. Just reference rmtree from support.
Miss Islington (bot) [Wed, 28 Jul 2021 21:52:11 +0000 (14:52 -0700)]
bpo-40263: Fixes an off-by-one error in _winapi_WaitForMultipleObjects_impl (GH-19501)
(cherry picked from commit
92b5dc780db968f6277f42cb06926dddb7475dc6 )
Co-authored-by: Ray Donnelly <mingw.android@gmail.com>
Dennis Sweeney [Wed, 28 Jul 2021 19:12:17 +0000 (15:12 -0400)]
[doc] Remove reference to obsolute opcode (GH-27402)
Miss Islington (bot) [Wed, 28 Jul 2021 17:31:19 +0000 (10:31 -0700)]
bpo-44763: [doc] remove repetitive sentence from textwrap.wrap (GH-27423) (GH-27427)
(cherry picked from commit
cb1d76f10ab33dddd0dbd64e6506bf7c065d499b )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Jul 2021 17:29:47 +0000 (10:29 -0700)]
bpo-44544: [doc] list all textwrap func kwargs (GH-26999) (GH-27425)
(cherry picked from commit
c1e39d6b1167376fdaf3f288ba9a689e61c7fdd1 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Jul 2021 15:15:51 +0000 (08:15 -0700)]
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) (#27422)
`pathlib.PureWindowsPath.is_reserved()` now identifies as reserved
filenames with trailing spaces or colons.
Co-authored-by: Barney Gale <barney.gale@foundry.com>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
(cherry picked from commit
56c1f6d7edad454f382d3ecb8cdcff24ac898a50 )
Miss Islington (bot) [Wed, 28 Jul 2021 14:54:40 +0000 (07:54 -0700)]
Add missing end of sentence in docs (GH-27280) (GH-27420)
(cherry picked from commit
531e2fbc52ce07a9cf37e0db05a5337e404dfccd )
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Jul 2021 14:33:38 +0000 (07:33 -0700)]
Fix typo in sqlite3.rst (GH-27415) (GH-27418)
preceeding -> preceding
(cherry picked from commit
fbe87023bf33e941373a5fca023652a825db7baf )
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Miss Islington (bot) [Wed, 28 Jul 2021 13:57:03 +0000 (06:57 -0700)]
Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27413)
(cherry picked from commit
2ff5bb4908975976031ba738866de619cafadc4d )
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Jul 2021 13:40:18 +0000 (06:40 -0700)]
bpo-44756: in ./Doc, `make build` depends on `make html` (GH-27403) (GH-27411)
- venv rule is now conditional, and only does anything if $VENVDIR does not exist
- add rule "clean-venv"
(cherry picked from commit
d22c876d5ac5fa464337d2e82654b8d87a83cb1b )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Wed, 28 Jul 2021 13:33:03 +0000 (06:33 -0700)]
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION (GH-27202)
(cherry picked from commit
ddf8ae31a0f371eff2db14c7f7a45976b86d56ea )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Inada Naoki [Wed, 28 Jul 2021 13:27:49 +0000 (22:27 +0900)]
[3.9] bpo-42853: Fix http.client fails to download >2GiB data over TLS (GH-27405)
Revert "bpo-36050: optimize HTTPResponse.read() (GH-12698)"
This reverts commit
d6bf6f2d0c83f0c64ce86e7b9340278627798090 .
Miss Islington (bot) [Tue, 27 Jul 2021 03:32:45 +0000 (20:32 -0700)]
Add windows build.bat counterpart for 'make regen-all' in error message (GH-26770)
(cherry picked from commit
d61b69f02d441ae517109a4428f2a18416c9ff0f )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Mon, 26 Jul 2021 20:22:58 +0000 (13:22 -0700)]
docs: replace "Mac OS X" -> "macOS" (GH-27364) (GH-27375)
"Mac OS X" has been rebranded as macOS
https://www.apple.com/macos
(cherry picked from commit
5fdd2a14ce3f81a7db47bb79421c426dec4b25bd )
Co-authored-by: partev <petrosyan@gmail.com>
Miss Islington (bot) [Mon, 26 Jul 2021 19:35:46 +0000 (12:35 -0700)]
The current documentation says it returns None if the name is not found, but (GH-26785) (GH-27372)
the implementation uses [] and will raise KeyError instead.
Noticed by @srittau in python/typeshed@5659.
(cherry picked from commit
f22737abfa07605f4ed1a99cfa97a26520b6c5c2 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Mon, 26 Jul 2021 19:32:49 +0000 (12:32 -0700)]
bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (GH-27370)
(cherry picked from commit
c97c2a050cf753003012ae3f08e035326b8f6167 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 26 Jul 2021 19:30:11 +0000 (12:30 -0700)]
bpo-44698: Fix undefined behaviour in complex exponentiation. (GH-27278) (GH-27367)
(cherry picked from commit
1d582bbc969e05896addf97844ddf17ce9830e5e )
Co-authored-by: T. Wouters <thomas@python.org>
Miss Islington (bot) [Mon, 26 Jul 2021 15:56:13 +0000 (08:56 -0700)]
bpo-44734: Fix precision in turtle tests (GH-27343) (GH-27362)
(cherry picked from commit
3f135c073a53793ec68902f6b513934ddff47235 )
Co-authored-by: Logan Jones <loganasherjones@gmail.com>
Miss Islington (bot) [Mon, 26 Jul 2021 01:40:36 +0000 (18:40 -0700)]
bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349) (GH-27358)
Replace sentence with confusing "pseudo-module" with two sentences
separating future statements and the __future__ module.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
0363a4014d90df17a29042de008ef0b659f92505 )
Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
Miss Islington (bot) [Sun, 25 Jul 2021 19:32:15 +0000 (12:32 -0700)]
[3.9] bpo-44399: Update logging cookbook to document patterns to be avoided. (GH-27348) (GH-27350)
(cherry picked from commit
9751f85914e0ef3324671a91da34a635d48b17fb )
Miss Islington (bot) [Sun, 25 Jul 2021 19:30:11 +0000 (12:30 -0700)]
[3.9] bpo-43184: Add information about added attribute and method. (GH-27347) (GH-27353)
(cherry picked from commit
50b72768ffe6413424dc4eba916dd1ff89a2fe7b )
Miss Islington (bot) [Sat, 24 Jul 2021 10:30:25 +0000 (03:30 -0700)]
bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297) (#27327)
This fixes a small typo. The code fragment should not be quoted. Thank you
@merwok for the feedback.
(cherry picked from commit
7d25254cf0763b62f4c4a3019e56385cab597b9f )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Sat, 24 Jul 2021 09:45:40 +0000 (02:45 -0700)]
bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) (#27325)
(cherry picked from commit
5370f0a82aaa4ba617070d5c71d2b18236096ac0 )
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Miss Islington (bot) [Fri, 23 Jul 2021 13:27:17 +0000 (06:27 -0700)]
bpo-29298: Fix crash with required subparsers without dest (GH-3680) (GH-27304)
(cherry picked from commit
17575f73ce2cb9f3a4eb4cc416c690f9a4e7205c )
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Łukasz Langa [Thu, 22 Jul 2021 21:17:13 +0000 (23:17 +0200)]
[3.9] bpo-44708: Only re-run test methods that match names of previously failing test methods (GH-27287) (GH-27293)
* Move to a static argparse.Namespace subclass
* Roughly annotate runtest.py
* Refactor libregrtest to use lossless test result objects
* Only re-run test methods that match names of previously failing test methods
* Adopt tests to cover test method name matching
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>.
(cherry picked from commit
f1afef5e0d93d66fbf3c9aaeab8b3b8da9617583 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Thu, 22 Jul 2021 18:25:31 +0000 (11:25 -0700)]
bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., shell=True) (GH-26755) (GH-27289)
(cherry picked from commit
50ffbe3dafcae7826d114df61d56c7ac45a6358c )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Thu, 22 Jul 2021 08:38:40 +0000 (01:38 -0700)]
Fix typo in collections.rst (GH-27270) (#27284)
Miss Islington (bot) [Thu, 22 Jul 2021 00:23:38 +0000 (17:23 -0700)]
bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) (GH-27283)
Miss Islington (bot) [Wed, 21 Jul 2021 09:04:42 +0000 (02:04 -0700)]
bpo-30511: Add note on thread safety to shutil.make_archive() (GH-26933) (GH-27275)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
64f54b7ccd49764b0304e076bfd79b5482988f53 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Łukasz Langa [Tue, 20 Jul 2021 19:12:58 +0000 (21:12 +0200)]
[3.9] bpo-44566: resolve differences between asynccontextmanager and contextmanager (GH-27024). (#27269)
(cherry picked from commit
7f1c330da31c54e028dceaf3610877914c2a4497 )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Miss Islington (bot) [Tue, 20 Jul 2021 18:44:58 +0000 (11:44 -0700)]
[3.9] bpo-43219: skip Solaris in the test as well (GH-27257) (GH-27267)
(cherry picked from commit
6564656495d456a1bcc1aaa06abfc696209f37b2 )
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Tue, 20 Jul 2021 17:34:49 +0000 (10:34 -0700)]
[3.9] Update macOS build-installer script comments for 3.10 and remove unused pre-10.5 vestiges. (GH-27253) (GH-27264)
(cherry picked from commit
42205ee512159de62c01e202ff799d78fac9ac26 )
Co-authored-by: Ned Deily <nad@python.org>
Automerge-Triggered-By: GH:ned-deily
Mark Shannon [Tue, 20 Jul 2021 10:09:56 +0000 (11:09 +0100)]
Set line number of END_ASYNC_FOR so that it doesn't show in traces. (GH-27255)
Miss Islington (bot) [Mon, 19 Jul 2021 17:28:56 +0000 (10:28 -0700)]
bpo-27513: email.utils.getaddresses() now handles Header objects (GH-13797) (#27245)
getaddresses() should be able to handle a Header object if passed
one.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
89f4c34797de2f0e5045da2b97c1c8cbbb42fbb2 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Mon, 19 Jul 2021 00:39:03 +0000 (17:39 -0700)]
[3.9] bpo-44561: Update hyperlinks in Doc/distributing/index.rst (GH-27032) (GH-27233)
* Update hyperlinks in Doc/distributing/index.rst
Update three expired hyperlinks.
Closes [bpo-44561]().
(cherry picked from commit
b494685b2548489efcc66993cc6c13b027ce3b26 )
Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
Automerge-Triggered-By: GH:ncoghlan
Pablo Galindo Salgado [Sun, 18 Jul 2021 15:53:14 +0000 (16:53 +0100)]
Correct the order of check-abidump (GH-27230)
The check was backwards so we were not correctly detecting removals.
Miss Islington (bot) [Sun, 18 Jul 2021 02:53:00 +0000 (19:53 -0700)]
[3.9] bpo-43958: Document importlib.metadata.PackagePath.locate method (GH-25669) (GH-27221)
(cherry picked from commit
b38b2fa0218911ccc20d576ff504f39c9c9d47ec )
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
Automerge-Triggered-By: GH:jaraco
Miss Islington (bot) [Sat, 17 Jul 2021 09:46:11 +0000 (02:46 -0700)]
Replace @ilevkivskyi with @Fidget-Spinner as typing code owner (GH-27210) (#27213)
(cherry picked from commit
311ee83adb40a9b549af8e0b546a787e8eb01f5d )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Ken Jin [Sat, 17 Jul 2021 09:36:38 +0000 (17:36 +0800)]
[3.9] bpo-41249: Fix postponed annotations for TypedDict (GH-27017) (GH-27205)
This fixes TypedDict to work with get_type_hints and postponed evaluation of annotations across modules.
This is done by adding the module name to ForwardRef at the time the object is created and using that to resolve the globals during the evaluation.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Germán Méndez Bravo <german.mb@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Sat, 17 Jul 2021 08:36:31 +0000 (01:36 -0700)]
bpo-40897:Give priority to using the current class constructor in `inspect.signature` (GH-27177) (GH-27209)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
6aab5f9bf303a8e4cd8377fabcdcb499e0541f9a )
Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
Łukasz Langa [Sat, 17 Jul 2021 08:04:01 +0000 (10:04 +0200)]
bpo-40897: Partially backport GH-22583's refactor of inspect.py to allow bugfix backports (#27193)
Miss Islington (bot) [Thu, 15 Jul 2021 23:36:51 +0000 (16:36 -0700)]
bpo-44184: Fix subtype_dealloc() for freed type (GH-26274)
Fix a crash at Python exit when a deallocator function removes the
last strong reference to a heap type.
Don't read type memory after calling basedealloc() since
basedealloc() can deallocate the type and free its memory.
_PyMem_IsPtrFreed() argument is now constant.
(cherry picked from commit
615069eb08494d089bf24e43547fbc482ed699b8 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 15 Jul 2021 23:35:25 +0000 (16:35 -0700)]
bpo-44184: Apply GH-26274 to the non-GC-type branch of subtype_dealloc (GH-27165) (GH-27175)
The non-GC-type branch of subtype_dealloc is using the type of an object after freeing in the same unsafe way as GH-26274 fixes. (I believe the old news entry covers this change well enough.)
https://bugs.python.org/issue44184
(cherry picked from commit
074e7659f208051b6b973f7fdb654dd22b93aaa2 )
Co-authored-by: T. Wouters <thomas@python.org>
Miss Islington (bot) [Thu, 15 Jul 2021 20:09:55 +0000 (13:09 -0700)]
bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows (GH-27161) (#27170)
GH-23638 introduced a new test for Accept: headers in CGI HTTP servers. This test serializes all of os.environ on the server side. For non-UTF8 locales this can fail for some Unicode characters found in environment variables. This change fixes the HTTP_ACCEPT test.
(cherry picked from commit
82b218f36ce6ef910bda5af227a9fd5be613c94f )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 14 Jul 2021 22:49:33 +0000 (15:49 -0700)]
bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145) (GH-27149)
To my understanding, this is supposed to say "transaction".
See the relevant source:
https://github.com/python/cpython/blob/
a158b20019b50e3ece6e4743ec4e6ae8d818b690 /Modules/_sqlite/connection.cGH-L1434-L1467
(cherry picked from commit
1ca27f264730abaaa48b3c5e7c6eafb45017b824 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Wed, 14 Jul 2021 16:17:18 +0000 (09:17 -0700)]
bpo-44572: On Windows, disconnect STDIN in platform._syscmd_ver() to prevent erroneous STDIN consumption (GH-27092)
(cherry picked from commit
0ee0a740e12ec8568aafa033aa6bb08b265afe26 )
Co-authored-by: Konstantin-Glukhov <glukhov.k@gmail.com>
Miss Islington (bot) [Wed, 14 Jul 2021 05:44:08 +0000 (22:44 -0700)]
bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107)
if it is called with a sequence or set, but not list or tuple.
(cherry picked from commit
f572cbf1faab33d9afbbe3e95738ed6fbe6e48e6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 13 Jul 2021 23:20:28 +0000 (16:20 -0700)]
bpo-44630: Fix assertion errors in csv module (GH-27127)
Fix incorrect handling of exceptions when interpreting dialect objects in
the csv module. Not clearing exceptions between calls to
PyObject_GetAttrString() causes assertion failures in pydebug mode (or with
assertions enabled).
Add a minimal test that would've caught this (passing None as dialect, or
any object that isn't a csv.Dialect subclass, which the csv module allows
and caters to, even though it is not documented.) In pydebug mode, the test
triggers the assertion failure in the old code.
Contributed-By: T. Wouters [Google]
(cherry picked from commit
0093876328afa330224c9d887c18dee0b3117852 )
Co-authored-by: T. Wouters <thomas@python.org>
Miss Islington (bot) [Tue, 13 Jul 2021 14:41:31 +0000 (07:41 -0700)]
bpo-43126: Expand docs on io.IOBase.readlines() method (GH-27061) (#27114)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
3b5b99da4b256a31933112f4a2385386149c19e1 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Tue, 13 Jul 2021 14:33:50 +0000 (07:33 -0700)]
bpo-44514: Add doctest testcleanup for configparser and bz2 (GH-26909) (#27111)
Add testcleanup section to configparser and bz2 documentation which
removes temporary files created in the filesystem when 'make doctest'
is run.
(cherry picked from commit
48a5aa7f128caf5a46e4326c1fd285cd5fc8e59d )
Co-authored-by: Kevin Follstad <kfollstad@gmail.com>
Miss Islington (bot) [Mon, 12 Jul 2021 16:23:25 +0000 (09:23 -0700)]
bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction (GH-23026) (#27098)
(cherry picked from commit
da2e673c53974641a0e13941950e7976bbda64d5 )
Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
Vladimir Feinberg [Mon, 12 Jul 2021 15:58:47 +0000 (08:58 -0700)]
[3.9] bpo-43048: RecursionError traceback RecursionError bugfix for cpy3.9 (GH-24460) (#24460)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Jul 2021 15:22:33 +0000 (08:22 -0700)]
bpo-26329: update os.path.normpath documentation (GH-20138) (#27095)
(cherry picked from commit
66c5853406bbcccecf35372795078c0641a5f385 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Christian Heimes [Mon, 12 Jul 2021 15:12:38 +0000 (17:12 +0200)]
[3.9] bpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942) (#25944)
Also use new make target to install FIPS provider..
(cherry picked from commit
e8525567dd325527e00b3c4ce7c4ce31ff3f1a8c )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Mon, 12 Jul 2021 15:11:59 +0000 (08:11 -0700)]
bpo-43207: InspectLoader.is_package is not an abstract method (GH-24517) (#26322)
Making the description of `InspectLoader.is_package` aligned with the current implementation.
Automerge-Triggered-By: GH:jaraco
(cherry picked from commit
8b9310d90281d4bd3643f4e0767b2d0390f0cb05 )
Co-authored-by: Junnosuke Kuroda <Isa-rentacs@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Jul 2021 15:11:33 +0000 (08:11 -0700)]
bpo-43298: Improved error message when building without the Windows SDK installed (GH-26800) (#26803)
(cherry picked from commit
80190b3e533097b55077becddc75423318ab2371 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 12 Jul 2021 15:11:10 +0000 (08:11 -0700)]
bpo-44472: Fix ltrace functionality when exceptions are raised (GH-26822) (#26831)
(cherry picked from commit
06cda808f149fae9b4c688f752b6eccd0d455ba4 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>