]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 19 Oct 2021 03:15:48 +0000 (20:15 -0700)]
bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016)
This reverts commit
d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e .
(cherry picked from commit
0a4c82ddd34a3578684b45b76f49cd289a08740b )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Mon, 18 Oct 2021 18:49:28 +0000 (11:49 -0700)]
[3.10] bpo-45221: Fix handling of LDFLAGS and CPPFLAGS options in setup.py (GH-29031) (GH-29037)
(cherry picked from commit
6a533a423869e28d9086cf4d79029f59e9eec916 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Automerge-Triggered-By: GH:ned-deily
Miss Islington (bot) [Sun, 17 Oct 2021 23:43:10 +0000 (16:43 -0700)]
Improve multiserver queue recipe (GH-29012) (GH-29013)
Miss Islington (bot) [Sun, 17 Oct 2021 16:47:03 +0000 (09:47 -0700)]
bpo-45229: Make test_http_cookiejar discoverable (GH-29004)
(cherry picked from commit
b3f0ceae919c1627094ff628c87184684a5cedd6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 16 Oct 2021 23:14:11 +0000 (16:14 -0700)]
[3.10] bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) (GH-29001)
Since the keyword list is frozen, only compute it once per
session. The colorizer already handles context keywords.
(cherry picked from commit
42ac06dcd234bdda989dcfe854ac5173337024c9 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Automerge-Triggered-By: GH:terryjreedy
Miss Islington (bot) [Sat, 16 Oct 2021 17:51:05 +0000 (10:51 -0700)]
bpo-45249: Fix caret location when end_offset is set to 0 (GH-28855)
(cherry picked from commit
fe0d9e22a52a10c4cbe52254b51f2d4e74d83568 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 16 Oct 2021 14:01:54 +0000 (07:01 -0700)]
[3.10]bpo-45463: Clarify that global statements allows multiple names (GH-28851) (GH-28989)
The global statement allows specifying a list of identifiers
(https://docs.python.org/3/reference/simple_stmts.htmlGH-the-global-statement).
The "Execution model" chapter described the global statement as if it
only allowed one single name. Pluralize "name" in the appropriate places.
(cherry picked from commit
4ecd119b007cb766b8bede2dc78b70d29cd932dd )
Co-authored-by: Luca Chiodini <luca@chiodini.org>
Co-authored-by: Luca Chiodini <luca@chiodini.org>
Miss Islington (bot) [Fri, 15 Oct 2021 12:14:35 +0000 (05:14 -0700)]
bpo-45428: Fix reading filenames from stdin in py_compile (GH-28848)
Strip trailing '\n'.
(cherry picked from commit
59a633d3e2071d65aa6638da5cf767a5c1310271 )
Co-authored-by: Graham Inggs <ginggs@debian.org>
Serhiy Storchaka [Thu, 14 Oct 2021 18:23:39 +0000 (21:23 +0300)]
[3.10] bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28952)
They support now splitting escape sequences between input chunks.
Add the third parameter "final" in codecs.raw_unicode_escape_decode().
It is True by default to match the former behavior.
(cherry picked from commit
39aa98346d5dd8ac591a7cafb467af21c53f1e5d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 14 Oct 2021 17:02:20 +0000 (10:02 -0700)]
[3.10] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) (GH-28943)
They support now splitting escape sequences between input chunks.
Add the third parameter "final" in codecs.unicode_escape_decode().
It is True by default to match the former behavior.
(cherry picked from commit
c96d1546b11b4c282a7e21737cb1f5d16349656d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Dong-hee Na [Thu, 14 Oct 2021 16:35:53 +0000 (01:35 +0900)]
[3.10] no-issue: Make silence about warning '_POSIX_C_SOURCE redefined' (GH-28948) (GH-28951)
Miss Islington (bot) [Wed, 13 Oct 2021 17:59:45 +0000 (10:59 -0700)]
bpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (GH-28765) (GH-28934)
At import time, the xmlrpc.client module uses different date formats to
test strftime so it can format years with 4 digits consistently.
Depending on the underlying C library and its strftime implementation
some of these calls can result in ValueErrors, blocking the
xmlrpc.client module from being imported.
This commit changes the behavior of this bit of code to react to
ValueError exceptions, treating the format that caused them as an
non-viable option.
(cherry picked from commit
1c831353816ff699b54e804047a7242a09e98f5b )
Co-authored-by: rtobar <rtobarc@gmail.com>
Miss Islington (bot) [Wed, 13 Oct 2021 17:15:43 +0000 (10:15 -0700)]
bpo-24444: fix an error in argparse help when help for an option is blank (GH-28050) (GH-28931)
(cherry picked from commit
6fafc25aea8689048314b5bf7a9bb986bb1ce238 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Łukasz Langa [Wed, 13 Oct 2021 17:12:22 +0000 (19:12 +0200)]
[3.10] bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) (GH-28930)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
b9e687618d3489944f29adbd2be50b46940c9e70 )
Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
Miss Islington (bot) [Wed, 13 Oct 2021 16:59:04 +0000 (09:59 -0700)]
bpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28927)
(cherry picked from commit
f59ed3c310a7ceebf2a56a84ea969a7f75d95b64 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 13 Oct 2021 16:58:06 +0000 (09:58 -0700)]
[docs] lexical_analysis: Expand the text on ``_`` (GH-28903) (GH-28933)
Also:
* Expand the discussion into its own entry. (Even before this,
text on ``_`` was longet than the text on ``_*``.)
* Briefly note the other common convention for `_`: naming unused
variables.
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
3dee0cb6217db326e844955a7f8b424c67990557 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Wed, 13 Oct 2021 10:24:47 +0000 (03:24 -0700)]
bpo-45453: Fix test_embed.StdPrinterTests (GH-28916) (GH-28917)
test_embed.StdPrinterTests now always use the file descriptor 1 for
stdout, rather than using sys.__stdout__.fileno().
PyFile_NewStdPrinter() does crash if the argument is not 1 or 2.
Fix also a few pyflakes warnings: remove unused import and variables.
(cherry picked from commit
678433f25e0d08dad7edf72be8f0cf9420e4ed2c )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 13 Oct 2021 05:37:51 +0000 (22:37 -0700)]
bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)
To avoid error, add either space or parentheses.
(cherry picked from commit
380c44087505d0d560f97e325028f27393551164 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 13 Oct 2021 00:31:32 +0000 (17:31 -0700)]
[3.10] bpo-45405: Prevent ``internal configure error`` when running ``configure`` with recent versions of non-Apple clang. (GH-28845) (GH-28911)
Change the configure logic to function properly on macOS when the compiler
outputs a platform triplet for option --print-multiarch.
Co-authored-by: Ned Deily <nad@python.org>
(cherry picked from commit
9c4766772cda67648184f8ddba546a5fc0167f91 )
Co-authored-by: David Bohman <debohman@gmail.com>
Automerge-Triggered-By: GH:ned-deily
Miss Islington (bot) [Tue, 12 Oct 2021 17:10:59 +0000 (10:10 -0700)]
Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)
(cherry picked from commit
f79f3b41c8c1360d4e0ae884a52d0a486974ca53 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 12 Oct 2021 17:01:11 +0000 (10:01 -0700)]
Slight correct grammar (GH-28860)
(cherry picked from commit
1b11582f0e00f08833da6adc44030a8b1961989a )
Co-authored-by: nobodyatandnothing <91722596+nobodyatandnothing@users.noreply.github.com>
Miss Islington (bot) [Tue, 12 Oct 2021 14:20:43 +0000 (07:20 -0700)]
bpo-45441: Update some moved URLs in documentation (GH-28861)
(cherry picked from commit
b37dc9b3bc9575adc039c6093c643b7ae5e917e1 )
Co-authored-by: 180909 <wjh180909@gmail.com>
Miss Islington (bot) [Tue, 12 Oct 2021 07:19:09 +0000 (00:19 -0700)]
bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28872)
(cherry picked from commit
15188b115a2da815556053372c912a81a74be43b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 12 Oct 2021 07:17:53 +0000 (00:17 -0700)]
bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28874)
Document that the "standalone" parameter was added in Python 3.9.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
c7e81fcf9548ab6a0a4828d6f2db9ece9d204826 )
Co-authored-by: Jens Diemer <github.com@jensdiemer.de>
Miss Islington (bot) [Mon, 11 Oct 2021 19:34:47 +0000 (12:34 -0700)]
bpo-45351, asyncio: Enhance echo server example, print all addresses (GH-28828)
(cherry picked from commit
659812b451aefe1f0e5f83540296519a5fb8f313 )
Co-authored-by: Olaf van der Spek <olafvdspek@gmail.com>
Miss Islington (bot) [Mon, 11 Oct 2021 11:40:43 +0000 (04:40 -0700)]
Handle error when PyUnicode_GetLength returns a negative value. (GH-28859)
(cherry picked from commit
560a79f94e94de66a18f2a5e4194c2fe51e2adf1 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Mon, 11 Oct 2021 10:01:12 +0000 (03:01 -0700)]
bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822) (#28867)
…iles.
Also changed some historical return values from 1 -> True and 0 -> False.
(cherry picked from commit
62a667784ba7b84611ebd50fa8a1a464cde32235 )
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Miss Islington (bot) [Mon, 11 Oct 2021 09:22:29 +0000 (02:22 -0700)]
Fix a leak in _PyImport_LoadDynamicModuleWithSpec() after failing PySys_Audit() (GH-28862)
(cherry picked from commit
9883ca498d654a4792d530bd8d6d64fef4dc971c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 10 Oct 2021 21:43:38 +0000 (14:43 -0700)]
Fix the "Finding all Adverbs" example (GH-21420) (#28839)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
dbd62e74dadda7868f1c0d497414c8f7e4c0b12b )
Co-authored-by: Rim Chatti <chattiriim@gmail.com>
Miss Islington (bot) [Sun, 10 Oct 2021 16:25:14 +0000 (09:25 -0700)]
bpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
1a7892414e654aa5c99efa31db767baba7f4a424 )
Co-authored-by: Joongi Kim <joongi@lablup.com>
Miss Islington (bot) [Sun, 10 Oct 2021 14:35:23 +0000 (07:35 -0700)]
Fix class pattern docs to refer to class patterns (GH-28849)
(cherry picked from commit
0bcc5ade9bff086a0b24d71307fae0a891f4efd2 )
Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
Jason R. Coombs [Sun, 10 Oct 2021 14:23:06 +0000 (10:23 -0400)]
[3.10] bpo-45419: Fix interfaces on DegenerateFiles.Path (GH-28844)
Miss Islington (bot) [Sat, 9 Oct 2021 19:54:20 +0000 (12:54 -0700)]
bpo-45353: Remind sys.modules users to copy when iterating. (GH-28842)
This is true of all dictionaries in Python, but this one tends to
catch people off guard as they don't realize when sys.modules might
change out from underneath them as a hidden side effect of their
code. Copying it first avoids the RuntimeError. An example when
this happens in single threaded code are codecs being loaded which
are an implicit time of use import that most need not think about.
(cherry picked from commit
3d1ca867ed0e3ae343166806f8ddd9739e568ab4 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sat, 9 Oct 2021 19:50:45 +0000 (12:50 -0700)]
Fix dataclassses spelling (GH-28837) (GH-28841)
(cherry picked from commit
5b4a7675bcfc6368aff955f4a6231579718f5dad )
Co-authored-by: Landon Yarrington <33426811+jly36963@users.noreply.github.com>
Co-authored-by: Landon Yarrington <33426811+jly36963@users.noreply.github.com>
Dong-hee Na [Sat, 9 Oct 2021 16:13:21 +0000 (01:13 +0900)]
[3.10] bpo-20028: Keep original exception when PyUnicode_GetLength return -1 (GH-28832) (GH-28834)
Miss Islington (bot) [Sat, 9 Oct 2021 15:35:33 +0000 (08:35 -0700)]
bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705)
(cherry picked from commit
34bbc87b2ddbaf245fbed6443c3e620f80c6a843 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Fri, 8 Oct 2021 08:55:41 +0000 (01:55 -0700)]
bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796) (GH-28816)
Prevent use-after-free of running loop holder via cache.
(cherry picked from commit
392a89835371baa0fc4bf79ae479abb80661f57d )
Co-authored-by: Matthias Reichl <github@hias.horus.com>
Pablo Galindo Salgado [Thu, 7 Oct 2021 23:50:10 +0000 (00:50 +0100)]
[3.10] bpo-45408: Don't override previous tokenizer errors in the second parser pass (GH-28812). (GH-28813)
(cherry picked from commit
0219017df7ec41839fd0d56a3076b5f09c58d313 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Thu, 7 Oct 2021 22:55:05 +0000 (15:55 -0700)]
bpo-45337: Use the realpath of the new executable when creating a venv on Windows (GH-28663)
(cherry picked from commit
6811fdaec825bd6ab64e358a4b480108f5634d2d )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Thu, 7 Oct 2021 18:25:26 +0000 (11:25 -0700)]
[3.10] Remove draft notice on the 3.10 What's new document (GH-28806) (GH-28807)
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
32485cecab0111a858055b7a60df3b9903b162e3 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Christian Clauss [Thu, 7 Oct 2021 15:49:47 +0000 (17:49 +0200)]
[3.10] Fix typos in the Lib directory (GH-28775) (GH-28804)
Fix typos in the Lib directory as identified by codespell.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>.
(cherry picked from commit
745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be )
Co-authored-by: Christian Clauss <cclauss@me.com>
Christian Clauss [Thu, 7 Oct 2021 15:34:55 +0000 (17:34 +0200)]
[3.10] Fix typos in the Tools directory (GH-28769) (GH-28801)
Like GH-28744 but for the Tools directory.
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
682aecfdeba481c876bfc9f3796c635bd5b5df50 )
Co-authored-by: Christian Clauss <cclauss@me.com>
Christian Clauss [Thu, 7 Oct 2021 15:30:08 +0000 (17:30 +0200)]
[3.10] Fix typos in the Python directory (GH-28767) (GH-28799)
(cherry picked from commit
db693df3e112c5a61f2cbef63eedce3a36520ded )
Christian Clauss [Thu, 7 Oct 2021 15:09:30 +0000 (17:09 +0200)]
[3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794)
(cherry picked from commit
470145f572b53fe73518cda1eeacc56fec78c1b2 )
Christian Clauss [Thu, 7 Oct 2021 14:31:33 +0000 (16:31 +0200)]
[3.10] Fix typos in the Objects directory (GH-28766) (GH-28797)
(cherry picked from commit
5f401f10400123afa9171548c432ea3fc37c0736 )
Automerge-Triggered-By: GH:JulienPalard
Christian Clauss [Thu, 7 Oct 2021 13:00:23 +0000 (15:00 +0200)]
[3.10] Fix typos in the Include directory (GH-28745) (GH-28789)
(cherry picked from commit
8e8f7522171ef82f2f5049940f815e00e38c6f42 )
Miss Islington (bot) [Thu, 7 Oct 2021 12:11:38 +0000 (05:11 -0700)]
bpo-45400: Fix suggestion test of test_exceptions (GH-28783)
Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals()
of test_exceptions if a directory name contains "a1" (like
"Python-3.11.0a1"): use a stricter regular expression.
(cherry picked from commit
4e605666b08b8f863cbbbdaa34bb06988e648d26 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 7 Oct 2021 09:26:12 +0000 (02:26 -0700)]
[3.10] Fix typo in whatsnew 3.10.rst (GH-26854) (GH-28782)
Thanks for the fix @wiggin15 .
(cherry picked from commit
599c07006a636b0a6904008534118a9ba3daf726 )
Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
Automerge-Triggered-By: GH:JulienPalard
Miss Islington (bot) [Thu, 7 Oct 2021 08:55:18 +0000 (01:55 -0700)]
[3.10] Fix typos in the Modules directory (GH-28761) (GH-28781)
(cherry picked from commit
dd02a696e55b450413e765e698e653d781ca4205 )
Co-authored-by: Christian Clauss <cclauss@me.com>
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Thu, 7 Oct 2021 07:48:00 +0000 (00:48 -0700)]
bpo-45385: Fix reference leak from descr_check (GH-28719) (GH-28779)
Miss Islington (bot) [Wed, 6 Oct 2021 18:52:22 +0000 (11:52 -0700)]
[doc] Mention __slots__ behavior in weakref.rst (GH-21061) (GH-28772)
It took me longer than I expected to figure out why a random class
I dealt with didn't support weak references. I believe this addition
will make the __slots__/weakref interaction more discoverable to people
having troubles with this. (Before this patch __slots__ was not
mentioned in weakref documentation even once).
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
b24b47e64355224c1bf4e46ed7c4d9f7df4e6f09 )
Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
Miss Islington (bot) [Wed, 6 Oct 2021 18:29:23 +0000 (11:29 -0700)]
bpo-45328: Avoid failure in OSs without TCP_NODELAY support (GH-28646) (GH-28771)
Operating systems without support for TCP_NODELAY will raise an OSError
when trying to set the socket option, but the show can still go on.
(cherry picked from commit
0571b934f5f9198c3461a7b631d7073ac0a5676f )
Co-authored-by: rtobar <rtobarc@gmail.com>
Miss Islington (bot) [Wed, 6 Oct 2021 15:15:42 +0000 (08:15 -0700)]
bpo-34804: [doc] Rephrase section on side effects in functional.rst for clarity (GH-27989) (GH-28762)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
7af95a1e8097b2aab2cbe8de88727809e745b658 )
Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
Christian Clauss [Wed, 6 Oct 2021 13:56:57 +0000 (15:56 +0200)]
[3.10] [doc] Fix typos found using codespell (GH-28744) (GH-28758)
Miss Islington (bot) [Tue, 5 Oct 2021 22:15:46 +0000 (15:15 -0700)]
bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) (GH-28746)
(cherry picked from commit
4c8d543823dde5a30615da61727837a48f7ab847 )
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
Miss Islington (bot) [Tue, 5 Oct 2021 21:04:27 +0000 (14:04 -0700)]
sqlite3: Modernize documentation around unicode and bytes. (GH-28652) (GH-28694)
(cherry picked from commit
1dac95c814763eb8a53896ac4326d8d51895d43d )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Tue, 5 Oct 2021 17:21:25 +0000 (10:21 -0700)]
[doc] Fix gethostbyname_ex description (GH-28700) (GH-28742)
It seems part of `gethostbyname_ex` doc was copied from `gethostbyaddr`. The latter has an `ip_address` parameter whereas the former doesn't.
(cherry picked from commit
4103280b83e1419bef535a42813d6dbe83bfe880 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Tue, 5 Oct 2021 16:34:59 +0000 (09:34 -0700)]
bpo-44050: Extension modules can share state when they don't support sub-interpreters. (GH-27794) (GH-28738)
Automerge-Triggered-By: GH:encukou
(cherry picked from commit
b9bb74871b27d9226df2dd3fce9d42bda8b43c2b )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Miss Islington (bot) [Tue, 5 Oct 2021 12:38:50 +0000 (05:38 -0700)]
bpo-45354: Skip obsolete device name tests on Windows 11 (GH-28712)
(cherry picked from commit
de4052fe0633e3a053e66c8477f13677054d6ede )
Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
Miss Islington (bot) [Tue, 5 Oct 2021 10:04:52 +0000 (03:04 -0700)]
[3.10] bpo-45371: Fix distutils' rpath support for clang (GH-28732) (GH-28733)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit
ef6196028f966f22d82930b66e1371e75c5df2f7 )
Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
John Belmonte [Tue, 5 Oct 2021 06:21:34 +0000 (15:21 +0900)]
[3.10] bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089) (GH-28730)
Make enter_context(foo()) / enter_async_context(foo()) equivalent to
`[async] with foo()` regarding __context__ when an exception is raised.
Previously exceptions would be caught and re-raised with the wrong
context when explicitly overriding __context__ with None..
(cherry picked from commit
e6d1aa1ac65b6908fdea2c70ec3aa8c4f1dffcb5 )
Co-authored-by: John Belmonte <john@neggie.net>
Automerge-Triggered-By: GH:njsmith
Pablo Galindo [Mon, 4 Oct 2021 19:17:37 +0000 (20:17 +0100)]
Post 3.10.0
Pablo Galindo [Mon, 4 Oct 2021 19:12:06 +0000 (20:12 +0100)]
Merge tag 'v3.10.0' into 3.10
Python 3.10.0
Pablo Galindo [Mon, 4 Oct 2021 17:27:07 +0000 (18:27 +0100)]
Python 3.10.0
Serhiy Storchaka [Mon, 4 Oct 2021 14:07:21 +0000 (17:07 +0300)]
[3.10] bpo-45355: More use of sizeof(_Py_CODEUNIT) (GH-28720). (GH-28721)
(cherry picked from commit
252b7bcb236dc261f3af1275bc90f9a303d9648f )
Serhiy Storchaka [Mon, 4 Oct 2021 12:01:11 +0000 (15:01 +0300)]
[3.10] bpo-45355: Use sizeof(_Py_CODEUNIT) instead of literal 2 for the size of the code unit (GH-28711). (GH-28718)
(cherry picked from commit
60b9e040c9cf40e69f42c0008e564458aa0379e8 )
Miss Islington (bot) [Fri, 1 Oct 2021 09:41:20 +0000 (02:41 -0700)]
bpo-45310: Fix parrallel shared memory tests (GH-28661)
Add a PID to names of POSIX shared memory objects to allow
running multiprocessing tests (test_multiprocessing_fork,
test_multiprocessing_spawn, etc) in parallel.
(cherry picked from commit
eb4495e8e275c83d691add116c4f2b74e73e3cc8 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 1 Oct 2021 12:58:37 +0000 (05:58 -0700)]
hashlib: Fix old message about unicode objects. (GH-28653)
(cherry picked from commit
9ce0f48e918860ffa32751a85b0fe7967723e2e3 )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Wed, 29 Sep 2021 11:41:27 +0000 (04:41 -0700)]
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)
(cherry picked from commit
bc4cde40339dd372960f27401d8fdaa4dab0f469 )
Co-authored-by: zhanpon <pon.zhan@gmail.com>
Miss Islington (bot) [Sat, 2 Oct 2021 06:27:23 +0000 (23:27 -0700)]
bpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (GH-28687)
pypi.org " The Python Package Index (PyPI) ...
(cherry picked from commit
0be338199fd663f020d833a4db185d0c5a0e0078 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 2 Oct 2021 19:32:56 +0000 (12:32 -0700)]
bpo-45346: Keep docs consistent regarding true and false values (GH-28697) (GH-28698)
Serhiy Storchaka [Sun, 3 Oct 2021 17:03:49 +0000 (20:03 +0300)]
[3.10] Remove trailing spaces (GH-28709)
Pablo Galindo Salgado [Sun, 3 Oct 2021 23:39:54 +0000 (00:39 +0100)]
bpo-45350: Rerun autoreconf with the pkg-config macros (GH-28707)
Pablo Galindo Salgado [Sun, 3 Oct 2021 23:39:54 +0000 (00:39 +0100)]
bpo-45350: Rerun autoreconf with the pkg-config macros (GH-28707)
Serhiy Storchaka [Sun, 3 Oct 2021 17:03:49 +0000 (20:03 +0300)]
[3.10] Remove trailing spaces (GH-28709)
Miss Islington (bot) [Sat, 2 Oct 2021 19:33:49 +0000 (12:33 -0700)]
Fix spelling error in comment (GH-28696) (GH-28699)
Miss Islington (bot) [Sat, 2 Oct 2021 19:32:56 +0000 (12:32 -0700)]
bpo-45346: Keep docs consistent regarding true and false values (GH-28697) (GH-28698)
Miss Islington (bot) [Sat, 2 Oct 2021 13:21:55 +0000 (06:21 -0700)]
bpo-45329: Fix freed memory access in pyexpat.c (GH-28649)
(cherry picked from commit
0742abdc48886b74ed3b66985a54bb1c32802670 )
Co-authored-by: TAGAMI Yukihiro <tagami.yukihiro@gmail.com>
Miss Islington (bot) [Sat, 2 Oct 2021 06:27:23 +0000 (23:27 -0700)]
bpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (GH-28687)
pypi.org " The Python Package Index (PyPI) ...
(cherry picked from commit
0be338199fd663f020d833a4db185d0c5a0e0078 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 1 Oct 2021 20:30:15 +0000 (13:30 -0700)]
bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457)
(cherry picked from commit
a450398933d265011e1e8eae7f771b70f97945fb )
Co-authored-by: AngstyDuck <solsticedante@gmail.com>
Victor Stinner [Fri, 1 Oct 2021 16:22:49 +0000 (18:22 +0200)]
bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28671)
On Unix, if the sem_clockwait() function is available in the C
library (glibc 2.30 and newer), the threading.Lock.acquire() method
now uses the monotonic clock (time.CLOCK_MONOTONIC) for the timeout,
rather than using the system clock (time.CLOCK_REALTIME), to not be
affected by system clock changes.
configure now checks if the sem_clockwait() function is available.
Miss Islington (bot) [Fri, 1 Oct 2021 14:16:37 +0000 (07:16 -0700)]
bpo-45332: Fix broken Decimal test and benchmark (GH-28680)
(cherry picked from commit
9eed75fde226cec5a02301cfac1dc8039b5a183e )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Fri, 1 Oct 2021 13:09:15 +0000 (06:09 -0700)]
bpo-45125: Improves pickling docs and tests for `shared_memory` (GH-28294)
(cherry picked from commit
746d648d47d12d16c2afedaeff626fc6aaaf6a46 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 1 Oct 2021 12:58:37 +0000 (05:58 -0700)]
hashlib: Fix old message about unicode objects. (GH-28653)
(cherry picked from commit
9ce0f48e918860ffa32751a85b0fe7967723e2e3 )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Fri, 1 Oct 2021 09:41:20 +0000 (02:41 -0700)]
bpo-45310: Fix parrallel shared memory tests (GH-28661)
Add a PID to names of POSIX shared memory objects to allow
running multiprocessing tests (test_multiprocessing_fork,
test_multiprocessing_spawn, etc) in parallel.
(cherry picked from commit
eb4495e8e275c83d691add116c4f2b74e73e3cc8 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 1 Oct 2021 07:36:17 +0000 (00:36 -0700)]
bpo-45229: Make datetime tests discoverable (GH-28615)
(cherry picked from commit
d441437ee71ae174c008c23308b749b91020ba77 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Thu, 30 Sep 2021 16:56:41 +0000 (19:56 +0300)]
[3.10] bpo-40173: Fix test.support.import_helper.import_fresh_module() (GH-28654) (GH-28657)
* Work correctly if an additional fresh module imports other
additional fresh module which imports a blocked module.
* Raises ImportError if the specified module cannot be imported
while all additional fresh modules are successfully imported.
* Support blocking packages.
* Always restore the import state of fresh and blocked modules
and their submodules.
* Fix test_decimal and test_xml_etree which depended on an undesired
side effect of import_fresh_module().
(cherry picked from commit
ec4d917a6a68824f1895f75d113add9410283da7 )
Miss Islington (bot) [Wed, 29 Sep 2021 23:02:11 +0000 (16:02 -0700)]
closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394) (GH-28636)
Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit
196998e220d6ca030e5a1c8ad63fcaed8e049a98 )
Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
Miss Islington (bot) [Wed, 29 Sep 2021 15:21:55 +0000 (08:21 -0700)]
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) (GH-28625)
Removed extra comma in comment that indicates state of a `Barrier` as it was confusing and breaking the flow while reading.
Co-authored-by: Priyank <5903604+cpriyank@users.noreply.github.com>
(cherry picked from commit
f1ca5d7f61594bf3627f0897b596877a0774c8e7 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 29 Sep 2021 14:13:41 +0000 (07:13 -0700)]
[3.10] bpo-44394: Ensure libexpat is linked against libm (GH-28617) (GH-28621)
* bpo-44394: Ensure libexpat is linked against libm (GH-28617)
(cherry picked from commit
6c1154b9de29e1c9cd3d05f5289543e5cff73895 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Mark Shannon [Wed, 29 Sep 2021 12:16:13 +0000 (13:16 +0100)]
Move predispatch logic from DISPATCH macro to juts before switch. Reduces size of each opocde in interpreter. (GH-28475)
Miss Islington (bot) [Wed, 29 Sep 2021 11:41:27 +0000 (04:41 -0700)]
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)
(cherry picked from commit
bc4cde40339dd372960f27401d8fdaa4dab0f469 )
Co-authored-by: zhanpon <pon.zhan@gmail.com>
Miss Islington (bot) [Mon, 27 Sep 2021 21:26:39 +0000 (14:26 -0700)]
bpo-45249: Ensure the traceback module prints correctly syntax errors with ranges (GH-28575)
(cherry picked from commit
20f439b6b9e1032930a31b88694ab9f37a09e6b4 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Thu, 9 Sep 2021 19:38:54 +0000 (12:38 -0700)]
bpo-45067 - Verify the version of ncurses for extended color support feature usage. (GH-28260)
* issue45067 - Fix _curses compilation in CentOS 7. Verify the version of ncurses
for extended color support feature usage.
The function extended_color_content was introduced in 2017. The ncurses-devel
package in CentOS 7 had a older version ncurses resulted in compilation error.
For compiling ncurses with extended color support, we verify the version of the
ncurses library.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
794430700defb913512f871b701a888aa730de81 )
Co-authored-by: Senthil Kumaran <senthil@python.org>
Miss Islington (bot) [Thu, 9 Sep 2021 09:35:36 +0000 (02:35 -0700)]
bpo-44860: Update test_sysconfig for posix_user platlib (GH-28235) (GH-28251)
Update test_sysconfig.test_user_similar() for the posix_user scheme:
"platlib" doesn't use sys.platlibdir.
(cherry picked from commit
49acac00c08838d8080ce00d02c05284b94f8fb2 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 8 Sep 2021 15:09:55 +0000 (08:09 -0700)]
bpo-45118: Fix regrtest second summary for re-run tests (GH-28183) (GH-28214)
Fix regrtest second summary when using -w/--verbose2 command line
option: lists re-run tests in the second test summary.
(cherry picked from commit
c4ea45d7d2c02674db2fdb96c7eee89324d2dc64 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Łukasz Langa [Tue, 21 Sep 2021 23:33:59 +0000 (01:33 +0200)]
[3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
8f943ca25732d548cf9f0b0393ba8d582fb93e29 )
Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
Miss Islington (bot) [Fri, 17 Sep 2021 23:19:00 +0000 (16:19 -0700)]
[doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660) (GH-28433)
Previous wording didn't explain the slightly unintuitive behavior.
Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
24dbe30f8df80740704db3743d071b3218d1276e )
Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
Miss Islington (bot) [Fri, 17 Sep 2021 22:55:57 +0000 (15:55 -0700)]
bpo-42038: fix description of returned list of lines (GH-27529) (GH-28428)
(cherry picked from commit
aca0e08c5dcc11a8011697331931cde0b21270f2 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Fri, 17 Sep 2021 22:18:03 +0000 (15:18 -0700)]
[doc] Add a missing apostrophe in a code example in venv.rst (GH-28391) (GH-28425)
(cherry picked from commit
d22a700091af35ce52db0b1fbb02115bb6efbb1f )
Co-authored-by: Arkaprabha Chakraborty <chakrabortyarkaprabha998@gmail.com>