]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Thu, 21 Oct 2021 22:08:36 +0000 (15:08 -0700)]
bpo-44344: Document that pow can return a complex number for non-complex inputs. (GH-27853) (GH-29134)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
887a55705bb6c05a507c2886c9978a9e0cff0dd7 )
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Miss Islington (bot) [Thu, 21 Oct 2021 22:07:38 +0000 (15:07 -0700)]
bpo-41983: add availability info to socket docs (GH-27519) (GH-29137)
* add availability info to AF_PACKET section
* add availability for AF_QIPCRTR as well
(cherry picked from commit
51375388bee7287be2d942906b48c8cf3f691e8b )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Thu, 21 Oct 2021 20:59:20 +0000 (13:59 -0700)]
bpo-45160: Ttk optionmenu only set variable once (GH-28291) (GH-29132)
(cherry picked from commit
add46f84769a7e6fafa50954f79b7c248231fa4e )
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Ethan Furman [Thu, 21 Oct 2021 18:32:18 +0000 (11:32 -0700)]
[3.9] bpo-44174: [Enum] add name-mangling reference (GH-29128)
Miss Islington (bot) [Thu, 21 Oct 2021 12:42:10 +0000 (05:42 -0700)]
bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) (GH-29120)
(cherry picked from commit
5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c )
Co-authored-by: Thomas <thmsdnnr@gmail.com>
Ethan Furman [Wed, 20 Oct 2021 23:11:47 +0000 (16:11 -0700)]
[3.9] bpo-42517: [ENUM] update docs for changes coming in 3.11 (GH-29113)
Miss Islington (bot) [Wed, 20 Oct 2021 21:25:10 +0000 (14:25 -0700)]
bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323) (GH-29112)
An object implementing the os.PathLike protocol can represent a file
system path as a str or bytes object.
Therefore, _infer_return_type function should infer os.PathLike[str]
object as str type and os.PathLike[bytes] object as bytes type.
(cherry picked from commit
6270d3eeaf17b50abc4f8f4d97790d66179638e4 )
Co-authored-by: Kyungmin Lee <rekyungmin@gmail.com>
Miss Islington (bot) [Wed, 20 Oct 2021 18:50:28 +0000 (11:50 -0700)]
bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) (GH-29105)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
(cherry picked from commit
dff0b713436e286bb1afdd7c6f3093c8e8db16dd )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 20 Oct 2021 17:45:06 +0000 (10:45 -0700)]
bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100)
(cherry picked from commit
d2cd5eef0c3fc0431bfe3fc24b4c020ebfcf8aad )
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
Miss Islington (bot) [Wed, 20 Oct 2021 16:52:41 +0000 (09:52 -0700)]
bpo-45229: Make doctest tests discoverable (GH-28986) (GH-29096)
(cherry picked from commit
8d6740f489fca67a44de165d29d9e0ad86285779 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Łukasz Langa [Wed, 20 Oct 2021 16:51:13 +0000 (18:51 +0200)]
[3.9] bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993) (#29071)
There are two errors that this commit fixes:
* The parser was not correctly computing the offset and the string
source for E_LINECONT errors due to the incorrect usage of strtok().
* The parser was not correctly unwinding the call stack when a tokenizer
exception happened in rules involving optionals ('?', [...]) as we
always make them return valid results by using the comma operator. We
need to check first if we don't have an error before continuing..
(cherry picked from commit
a106343f632a99c8ebb0136fa140cf189b4a6a57 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
NOTE: unlike the cherry-picked original, this commit points at a crazy location
due to a bug in the tokenizer that required a big refactor in 3.10 to fix.
We are leaving as-is for 3.9.
Miss Islington (bot) [Wed, 20 Oct 2021 16:50:27 +0000 (09:50 -0700)]
Cleanup a couple of comments left on PR 28775 post-merge. (GH-29079)
(cherry picked from commit
1dfac27dffbe771f9d88bd1726f7362ce0341437 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Wed, 20 Oct 2021 13:50:31 +0000 (06:50 -0700)]
bpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077) (GH-29081)
Since v8.6.11, a few configuration options seem to accept an empty value
where they did not previously; particularly the `type` of a `Menu`
widget, and the `compound` of any ttk widget with a label. Providing an
explicit expected error message to `checkEnumParam` bypasses the check
of an empty value, which no longer raises `TclError`.
(cherry picked from commit
4fe454c6f54b0948af67b53af6c2f35af6377e69 )
Co-authored-by: Zachary Ware <zach@python.org>
Łukasz Langa [Wed, 20 Oct 2021 08:06:38 +0000 (10:06 +0200)]
[3.9] bpo-45500: Rewrite test_dbm (GH-29002) (GH-29074)
* Generate test classes at import time. It allows to filter them when
run with unittest. E.g: "./python -m unittest test.test_dbm.TestCase_gnu -v".
* Create a database class in a new directory which will be removed after
test. It guarantees that all created files and directories be removed
and will not conflict with other dbm tests.
* Restore dbm._defaultmod after tests. Previously it was set to the last
dbm module (dbm.dumb) which affected other tests.
* Enable the whichdb test for dbm.dumb.
* Move test_keys to the correct test class. It does not test whichdb().
* Remove some outdated code and comments..
(cherry picked from commit
975b94b9de969777218e96a9950c1dab2dab65a0 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Łukasz Langa [Tue, 19 Oct 2021 18:50:09 +0000 (20:50 +0200)]
[3.9] bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) (GH-29068)
Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
(cherry picked from commit
7bafa0cf586227987d3d662264d491e3780024b7 )
Co-authored-by: Filipe Laíns <lains@riseup.net>
Miss Islington (bot) [Tue, 19 Oct 2021 18:35:56 +0000 (11:35 -0700)]
bpo-45515: Add zoneinfo to the datetime documentation (GH-29038) (GH-29066)
We should have done this way back when 3.9 was released, but it fell off
the radar.
Co-authored-by: Paul Ganssle <git@m.ganssle.io>
(cherry picked from commit
8e40ca127fa92d6113617c80710e0a077977a84d )
Miss Islington (bot) [Mon, 18 Oct 2021 05:24:51 +0000 (22:24 -0700)]
Improve multiserver queue recipe (GH-29012) (GH-29014)
Miss Islington (bot) [Sun, 17 Oct 2021 16:46:55 +0000 (09:46 -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 14:01:14 +0000 (07:01 -0700)]
[3.9]bpo-45463: Clarify that global statements allows multiple names (GH-28851) (GH-28990)
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>
Serhiy Storchaka [Thu, 14 Oct 2021 18:23:52 +0000 (21:23 +0300)]
bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28953)
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 )
Serhiy Storchaka [Thu, 14 Oct 2021 17:03:29 +0000 (20:03 +0300)]
[3.9] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) (GH-28945)
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>
Miss Islington (bot) [Thu, 14 Oct 2021 16:36:19 +0000 (09:36 -0700)]
no-issue: Make silence about warning '_POSIX_C_SOURCE redefined' (GH-28948)
(cherry picked from commit
d413c503636cde2a6ab0ada25dccb0134633a8e6 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Wed, 13 Oct 2021 20:36:05 +0000 (13:36 -0700)]
[3.9] bpo-24444: fix an error in argparse help when help for an option is blank (GH-28050) (GH-28932)
(cherry picked from commit
6fafc25aea8689048314b5bf7a9bb986bb1ce238 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 13 Oct 2021 18:00:05 +0000 (11:00 -0700)]
bpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (GH-28765) (GH-28935)
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>
Łukasz Langa [Wed, 13 Oct 2021 17:08:44 +0000 (19:08 +0200)]
[3.9] bpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28929)
(cherry picked from commit
f59ed3c310a7ceebf2a56a84ea969a7f75d95b64 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 13 Oct 2021 16:58:37 +0000 (09:58 -0700)]
bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) (GH-28928)
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 05:40:18 +0000 (22:40 -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:35:59 +0000 (17:35 -0700)]
[3.9] bpo-45405: Prevent ``internal configure error`` when running ``configure`` with recent versions of non-Apple clang. (GH-28845) (GH-28910)
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:41 +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:26 +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:50 +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:18:43 +0000 (00:18 -0700)]
bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28873)
(cherry picked from commit
15188b115a2da815556053372c912a81a74be43b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 12 Oct 2021 07:18:15 +0000 (00:18 -0700)]
bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28875)
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:51 +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:57 +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:09 +0000 (03:01 -0700)]
bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822) (#28866)
…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:43:09 +0000 (02:43 -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:58 +0000 (14:43 -0700)]
Fix the "Finding all Adverbs" example (GH-21420) (#28840)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
dbd62e74dadda7868f1c0d497414c8f7e4c0b12b )
Co-authored-by: Rim Chatti <chattiriim@gmail.com>
Dong-hee Na [Sat, 9 Oct 2021 16:13:44 +0000 (01:13 +0900)]
[3.9] bpo-20028: Keep original exception when PyUnicode_GetLength return -1 (GH-28832) (GH-28835)
Miss Islington (bot) [Sat, 9 Oct 2021 15:30:54 +0000 (08:30 -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) [Thu, 7 Oct 2021 23:14:04 +0000 (16:14 -0700)]
bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796)
Prevent use-after-free of running loop holder via cache.
(cherry picked from commit
392a89835371baa0fc4bf79ae479abb80661f57d )
Co-authored-by: Matthias Reichl <github@hias.horus.com>
Miss Islington (bot) [Thu, 7 Oct 2021 22:55:15 +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>
Christian Clauss [Thu, 7 Oct 2021 15:42:38 +0000 (17:42 +0200)]
[3.9] Fix typos in the Lib directory (GH-28775) (GH-28803)
Fix typos in the Lib directory as identified by codespell.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be )
Automerge-Triggered-By: GH:JulienPalard
Christian Clauss [Thu, 7 Oct 2021 15:31:24 +0000 (17:31 +0200)]
[3.9] Fix typos in the Tools directory (GH-28769) (GH-28800)
Like #28744 but for the Tools directory.
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
682aecfdeba481c876bfc9f3796c635bd5b5df50 )
Christian Clauss [Thu, 7 Oct 2021 14:36:39 +0000 (16:36 +0200)]
[3.9] Fix typos in the Python directory (GH-28767) (GH-28798)
(cherry picked from commit
db693df3e112c5a61f2cbef63eedce3a36520ded )
Automerge-Triggered-By: GH:JulienPalard
Christian Clauss [Thu, 7 Oct 2021 14:09:41 +0000 (16:09 +0200)]
[3.9] Fix typos in the Objects directory (GH-28766) (GH-28795)
(cherry picked from commit
5f401f10400123afa9171548c432ea3fc37c0736 )
Automerge-Triggered-By: GH:JulienPalard
Christian Clauss [Thu, 7 Oct 2021 13:42:07 +0000 (15:42 +0200)]
[3.9] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28793)
(cherry picked from commit
470145f572b53fe73518cda1eeacc56fec78c1b2 )
Automerge-Triggered-By: GH:JulienPalard
Christian Clauss [Thu, 7 Oct 2021 13:17:05 +0000 (15:17 +0200)]
[3.9] Fix typos in the Modules directory (GH-28761). (GH-28791)
(cherry picked from commit
dd02a696e55b450413e765e698e653d781ca4205 )
Co-authored-by: Christian Clauss <cclauss@me.com>
Automerge-Triggered-By: GH:JulienPalard
Christian Clauss [Thu, 7 Oct 2021 13:01:05 +0000 (15:01 +0200)]
[3.9] Fix typos in the Include directory (GH-28745) (GH-28788)
(cherry picked from commit
8e8f7522171ef82f2f5049940f815e00e38c6f42 )
Dong-hee Na [Thu, 7 Oct 2021 02:10:15 +0000 (11:10 +0900)]
[3.9] bpo-45385: Fix reference leak from descr_check (GH-28719) (GH-28780)
(cherry picked from commit
e6ff4eba6da9b64aed235ba8d730b5645f71955c )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Wed, 6 Oct 2021 18:52:48 +0000 (11:52 -0700)]
[doc] Mention __slots__ behavior in weakref.rst (GH-21061) (GH-28773)
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:41 +0000 (11:29 -0700)]
bpo-45328: Avoid failure in OSs without TCP_NODELAY support (GH-28646) (GH-28770)
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:19:46 +0000 (08:19 -0700)]
bpo-34804: [doc] Rephrase section on side effects in functional.rst for clarity (GH-27989) (GH-28763)
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:57:39 +0000 (15:57 +0200)]
[3.9] [doc] Fix typos found using codespell (GH-28744) (GH-28759)
Miss Islington (bot) [Wed, 6 Oct 2021 13:04:48 +0000 (06:04 -0700)]
[doc] Update references to NumPy (GH-22458) (GH-28749)
Numeric(al) Python to NumPy. It seems the old name hasn't been used for some time.
(cherry picked from commit
c8bb24166e367d449158015cb9b1093f03c7175d )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Łukasz Langa [Tue, 5 Oct 2021 22:16:30 +0000 (00:16 +0200)]
[3.9] bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) (GH-28747)
(cherry picked from commit
4c8d543823dde5a30615da61727837a48f7ab847 )
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
Miss Islington (bot) [Tue, 5 Oct 2021 21:04:02 +0000 (14:04 -0700)]
sqlite3: Modernize documentation around unicode and bytes. (GH-28652) (GH-28695)
(cherry picked from commit
1dac95c814763eb8a53896ac4326d8d51895d43d )
Co-authored-by: Julien Palard <julien@palard.fr>
Łukasz Langa [Tue, 5 Oct 2021 20:30:25 +0000 (22:30 +0200)]
[3.9] bpo-44050: Extension modules can share state when they don't support sub-interpreters. (GH-27794) (GH-28741)
(cherry picked from commit
b9bb74871b27d9226df2dd3fce9d42bda8b43c2b )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Miss Islington (bot) [Tue, 5 Oct 2021 17:22:14 +0000 (10:22 -0700)]
[doc] Fix gethostbyname_ex description (GH-28700) (GH-28743)
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>
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Ned Deily [Tue, 5 Oct 2021 16:42:02 +0000 (12:42 -0400)]
Update macOS installer ReadMe for 3.9.8. (GH-28701)
The universal2 installer variant is now the default download from
python.org and the legacy Intel-64 variant is now deprecated.
Miss Islington (bot) [Tue, 5 Oct 2021 12:39:18 +0000 (05:39 -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:09:21 +0000 (03:09 -0700)]
bpo-45371: Fix distutils' rpath support for clang (GH-28732)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit
ef6196028f966f22d82930b66e1371e75c5df2f7 )
Co-authored-by: Christian Heimes <christian@python.org>
John Belmonte [Tue, 5 Oct 2021 06:37:24 +0000 (15:37 +0900)]
[3.9] bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089) (GH-28731)
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
Serhiy Storchaka [Sun, 3 Oct 2021 17:04:38 +0000 (20:04 +0300)]
[3.9] Remove trailing spaces (GH-28710)
Miss Islington (bot) [Sat, 2 Oct 2021 14:15:45 +0000 (07:15 -0700)]
bpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (GH-28687) (GH-28689)
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:46:25 +0000 (13:46 -0700)]
bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457)
Co-authored-by: AngstyDuck <solsticedante@gmail.com>
Miss Islington (bot) [Fri, 1 Oct 2021 16:51:15 +0000 (09:51 -0700)]
bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28671) (GH-28683)
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.
(cherry picked from commit
6df8c327532627d6a99991993c52e8e4a9b34968 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 1 Oct 2021 13:28:19 +0000 (06:28 -0700)]
[3.9] hashlib: Fix old message about unicode objects. (GH-28653) (GH-28679)
(cherry picked from commit
9ce0f48e918860ffa32751a85b0fe7967723e2e3 )
Co-authored-by: Julien Palard <julien@palard.fr>
Serhiy Storchaka [Fri, 1 Oct 2021 09:38:23 +0000 (12:38 +0300)]
[3.9] bpo-45310: Fix parrallel shared memory tests (GH-28661) (GH-28670)
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 )
Serhiy Storchaka [Fri, 1 Oct 2021 07:58:59 +0000 (10:58 +0300)]
Revert "Revert "bpo-45229: Make datetime tests discoverable (GH-28615). (GH-28645)" (GH-28660)" (GH-28666)
This reverts commit
2cf76cf4ccd177b8d6d2bf21b5462258ae87522d .
Łukasz Langa [Thu, 30 Sep 2021 20:23:32 +0000 (22:23 +0200)]
Revert "bpo-45229: Make datetime tests discoverable (GH-28615). (GH-28645)" (GH-28660)
This reverts commit
993a130d3abe7684dc9c999874b4dd1d8ea55a2a .
Serhiy Storchaka [Thu, 30 Sep 2021 16:58:34 +0000 (19:58 +0300)]
[3.9] bpo-45229: Make datetime tests discoverable (GH-28615). (GH-28645)
(cherry picked from commit
d441437ee71ae174c008c23308b749b91020ba77 )
Serhiy Storchaka [Thu, 30 Sep 2021 16:57:46 +0000 (19:57 +0300)]
[3.9] bpo-40173: Fix test.support.import_helper.import_fresh_module() (GH-28654) (GH-28658)
* 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 20:47:58 +0000 (13:47 -0700)]
closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394)
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:20:49 +0000 (08:20 -0700)]
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) (GH-28626)
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 15:19:47 +0000 (08:19 -0700)]
[typo] s/libexpact/libexpat/ in setup.py (GH-28624) (GH-28627)
(cherry picked from commit
bf5d1684a770af4e4d176bc6780874a4be168cac )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 29 Sep 2021 13:47:56 +0000 (06:47 -0700)]
bpo-44394: Ensure libexpat is linked against libm (GH-28617)
(cherry picked from commit
6c1154b9de29e1c9cd3d05f5289543e5cff73895 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Łukasz Langa [Wed, 29 Sep 2021 10:56:14 +0000 (12:56 +0200)]
[3.9] bpo-39039: tarfile raises descriptive exception from zlib.error (GH-27766) (GH-28614)
* during tarfile parsing, a zlib error indicates invalid data
* tarfile.open now raises a descriptive exception from the zlib error
* this makes it clear to the user that they may be trying to open a
corrupted tar file.
(cherry picked from commit
b6fe8572509b77d2002eaddf99d718e9b4835684 )
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Miss Islington (bot) [Tue, 28 Sep 2021 21:51:57 +0000 (14:51 -0700)]
bpo-45269: test wrong `markers` type to `c_make_encoder` (GH-28540) (GH-28610)
(cherry picked from commit
e046aabbe386fdf32bae6ffb7fae5ce479fd10c6 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Łukasz Langa [Tue, 28 Sep 2021 21:13:16 +0000 (23:13 +0200)]
[3.9] [docs] Improve the markup of powers (GH-28598) (GH-28608)
(cherry picked from commit
4f05f15d7b25ef8b690cb94fdc4c8cb5521a4e27 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 28 Sep 2021 20:19:02 +0000 (13:19 -0700)]
bpo-35606: Fix math.prod tests using 'start' as keyword parameter (GH-28595) (GH-28604)
(cherry picked from commit
84975146a7ce64f1d50dcec8311b7f7188a5c962 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 28 Sep 2021 14:07:20 +0000 (07:07 -0700)]
[doc] fix minor typo for argparse (GH-28451)
"A JSONDecodeError" instead of "An JSONDecodeError".
(cherry picked from commit
db0133f98dd42d0fb82a7675bde175cec51bb860 )
Co-authored-by: Louis Sautier <sautier.louis@gmail.com>
Miss Islington (bot) [Tue, 28 Sep 2021 12:35:04 +0000 (05:35 -0700)]
bpo-45296: Fix exit/quit message on Windows (GH-28577) (GH-28601)
IDLE recognizes Ctrl-D, as on other systems, instead of Ctrl-Z.
(cherry picked from commit
e649e0658ff2af87b07d994c05ae048e16e31aae )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Victor Stinner [Mon, 27 Sep 2021 21:40:22 +0000 (23:40 +0200)]
bpo-
1596321 : Fix threading._shutdown() for the main thread (GH-28549) (GH-28589)
Fix the threading._shutdown() function when the threading module was
imported first from a thread different than the main thread: no
longer log an error at Python exit.
(cherry picked from commit
95d31370829b7d729667588e0a9943217401ea5b )
Miss Islington (bot) [Mon, 27 Sep 2021 12:49:30 +0000 (05:49 -0700)]
bpo-45274: Fix Thread._wait_for_tstate_lock() race condition (GH-28532)
Fix a race condition in the Thread.join() method of the threading
module. If the function is interrupted by a signal and the signal
handler raises an exception, make sure that the thread remains in a
consistent state to prevent a deadlock.
(cherry picked from commit
a22be4943c119fecf5433d999227ff78fc2e5741 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Sun, 26 Sep 2021 17:09:29 +0000 (10:09 -0700)]
bpo-45280: Add test for empty `NamedTuple` in `test_typing` (GH-28559) (GH-28570)
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
(cherry picked from commit
f56268a2cd38b3fe2be1e4361d3d8b581e73559b )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Łukasz Langa [Sat, 25 Sep 2021 09:30:20 +0000 (11:30 +0200)]
[3.9] bpo-45166: fixes `get_type_hints` failure on `Final` (GH-28279) (GH-28561)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>.
(cherry picked from commit
784905dbeff68cf788bbeefe0a675af1af04affc )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 25 Sep 2021 02:22:54 +0000 (19:22 -0700)]
bpo-45277: Fix typo in codecs doc (GH-28555)
encoding => encode
(cherry picked from commit
4c0fc65cd8a6d4c18330505576ccd4b46abeec1c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 24 Sep 2021 10:38:39 +0000 (03:38 -0700)]
bpo-30951: Correct co_names docstring in inspect module (GH-2743) (GH-28544)
(cherry picked from commit
3f8b23f8ddab75d9b77a3997d54e663187e12cc8 )
Co-authored-by: Alex Vig <jalexvig@gmail.com>
Miss Islington (bot) [Thu, 23 Sep 2021 22:48:26 +0000 (15:48 -0700)]
bpo-38623: Add note about site module (site-packages) (GH-16974) (GH-28537)
(cherry picked from commit
55b45bf707c6c8084db259fe2f8aa08e84ea0d99 )
Co-authored-by: Peter Bittner <django@bittner.it>
Miss Islington (bot) [Thu, 23 Sep 2021 21:39:08 +0000 (14:39 -0700)]
[docs] Update documentation for `multiprocessing.get_start_method` (GH-18170) (GH-28534)
(cherry picked from commit
af90b5498b8c6acd67b50fdad007d26dfd1c5823 )
Co-authored-by: Sam Sneddon <me@gsnedders.com>
Miss Islington (bot) [Thu, 23 Sep 2021 15:42:31 +0000 (08:42 -0700)]
[3.9] Fix legacy logging module URL (GH-28528) (GH-28531)
Co-authored-by: Sean Leavey <SeanDS@users.noreply.github.com>
Miss Islington (bot) [Thu, 23 Sep 2021 10:25:57 +0000 (03:25 -0700)]
bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515) (GH-28524)
Replace old names when they refer to actual versions of macOS.
Keep historical names in references to older versions.
Co-authored-by: Patrick Reader <_@pxeger.com>
(cherry picked from commit
36122e18148c5b6c78ebce1d36d514fd7cf250f5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Łukasz Langa [Wed, 22 Sep 2021 16:48:17 +0000 (18:48 +0200)]
[3.9] bpo-45238: Fix unittest.IsolatedAsyncioTestCase.debug() (GH-28449) (GH-28522)
It runs now asynchronous methods and callbacks.
If it fails, doCleanups() can be called for cleaning up..
(cherry picked from commit
ecb6922ff2d56476a6cfb0941ae55aca5e7fae3d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Łukasz Langa [Wed, 22 Sep 2021 15:32:04 +0000 (17:32 +0200)]
[3.9] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28512)
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) [Tue, 21 Sep 2021 22:21:10 +0000 (15:21 -0700)]
bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) (GH-28507)
This was a regression from fixing BPO-43219.
(cherry picked from commit
b7eac52b466f697d3e89f47508e0df0196a98970 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Tue, 21 Sep 2021 21:57:49 +0000 (14:57 -0700)]
bpo-45216: Remove extraneous method docs from `difflib` (GH-28445) (GH-28506)
(cherry picked from commit
06e1773c8d8fe375423bb7fcf5922b49bc737b75 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 21 Sep 2021 18:37:04 +0000 (11:37 -0700)]
bpo-45209: fix `UserWarning: resource_tracker` in test_multiprocessing (GH-28377) (GH-28500)
(cherry picked from commit
f604cf1c377a7648e0686044e6e49900bfc9feef )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 21 Sep 2021 17:53:26 +0000 (10:53 -0700)]
bpo-45246: Document that sorted() only uses "<" comparisons (GH-28494)
(cherry picked from commit
9a0dcc5b2e04d9c51350107734f12a1cbc0284a7 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Mon, 20 Sep 2021 18:54:24 +0000 (11:54 -0700)]
[3.9] bpo-45021: Fix a hang in forked children (GH-28007) (GH-28481)
_global_shutdown_lock should be reinitialized in forked children
(cherry picked from commit
0bfa1106acfcddc03590e1f5d6789dbad3affe70 )
Co-authored-by: nullptr <3621629+0x0L@users.noreply.github.com>
Automerge-Triggered-By: GH:gpshead