]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agobpo-17140: Document multiprocessing's ThreadPool (GH-23812)
Miss Islington (bot) [Fri, 18 Dec 2020 13:27:02 +0000 (05:27 -0800)] 
bpo-17140: Document multiprocessing's ThreadPool (GH-23812)

Up until now, the `multiprocessing.pool.ThreadPool` class has gone
undocumented, despite being a public class in multiprocessing that is
included in `multiprocessing.pool.__all__`.
(cherry picked from commit 84ebcf271a2cc8bfd1762acb279502b8b6ef236e)

Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
4 years agobpo-39096: Format specification documentation fixes for numeric types (GH-23575)
Miss Islington (bot) [Fri, 18 Dec 2020 09:49:19 +0000 (01:49 -0800)] 
bpo-39096: Format specification documentation fixes for numeric types (GH-23575)

(cherry picked from commit 886b2e5c7a2caf87070728dba8f18c3d65e51071)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agobpo-42613: Fix freeze.py config directory (GH-23792) (GH-23817)
Miss Islington (bot) [Thu, 17 Dec 2020 14:29:36 +0000 (06:29 -0800)] 
bpo-42613: Fix freeze.py config directory (GH-23792) (GH-23817)

Fix freeze.py tool to use the prope config and library directories.
(cherry picked from commit 1c653f17cb84d81df3a74ab0b42140d2bb68c5c4)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-26564: fix obsolete comment in traceback.c (GH-23819)
Miss Islington (bot) [Thu, 17 Dec 2020 13:19:58 +0000 (05:19 -0800)] 
bpo-26564: fix obsolete comment in traceback.c (GH-23819)

(cherry picked from commit 40125ab3252453bf205ed906e46bf9741c27bf9d)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-42375: subprocess DragonFlyBSD build update. (GH-23320) (GH-23388)
Miss Islington (bot) [Thu, 17 Dec 2020 11:15:20 +0000 (03:15 -0800)] 
bpo-42375: subprocess DragonFlyBSD build update. (GH-23320) (GH-23388)

Same as FreeBSD, file descriptors in /dev/fd id from 0 to 63.
(cherry picked from commit 13b865f0e17c88b081c23f7f05cf91166d220a50)

Co-authored-by: David CARLIER <devnexen@gmail.com>
Co-authored-by: David CARLIER <devnexen@gmail.com>
4 years agobpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795)
Miss Islington (bot) [Thu, 17 Dec 2020 08:03:50 +0000 (00:03 -0800)] 
bpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795)

Use shorter timeout and replace send() with sendall().
(cherry picked from commit 79782fe4f8cf73d7fdf8db02073bbadf7ff817b6)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agoFix indentation for get_stats_profile() docs (GH-23618)
Miss Islington (bot) [Wed, 16 Dec 2020 23:18:39 +0000 (15:18 -0800)] 
Fix indentation for get_stats_profile() docs (GH-23618)

The existing method is indented one too many times which
makes it look like a sub-method of print_callees().
(cherry picked from commit a6ba2b901543f3006ecdb2ad8b18cb00439ff9b2)

Co-authored-by: Matthew Suozzo <msuozzo@google.com>
4 years agobpo-37961: Fix regression in tracemalloc.Traceback.__repr__ (GH-23805)
Miss Islington (bot) [Wed, 16 Dec 2020 22:01:14 +0000 (14:01 -0800)] 
bpo-37961: Fix regression in tracemalloc.Traceback.__repr__ (GH-23805)

Regression in 8d59eb1b66c51b2b918da9881c57d07d08df43b7.
(cherry picked from commit 051b9818671625d125dee8198e0d2af5ad4c85b8)

Co-authored-by: Daniel Hahler <git@thequod.de>
4 years agoAdd symbols of the stable ABI to python3dll.c (GH-23598) (GH-23801)
Victor Stinner [Wed, 16 Dec 2020 21:41:47 +0000 (22:41 +0100)] 
Add symbols of the stable ABI to python3dll.c (GH-23598) (GH-23801)

Add the following symbols to python3dll.c:

* PyFrame_GetCode (bpo-40421)
* PyFrame_GetLineNumber (bpo-40421)
* PyObject_CallNoArgs (bpo-37194)
* PyThreadState_GetFrame (bpo-39947)
* PyThreadState_GetID (bpo-39947)
* PyThreadState_GetInterpreter (bpo-39947)

(cherry picked from commit fcc6935384b933fbe1a1ef659ed455a3b74c849a)

4 years agobpo-38323: Add guard clauses in MultiLoopChildWatcher. (GH-22756)
Miss Islington (bot) [Wed, 16 Dec 2020 18:10:37 +0000 (10:10 -0800)] 
bpo-38323: Add guard clauses in MultiLoopChildWatcher. (GH-22756)

This is a trivial refactor in preparation for a fix for bpo-38323.
(cherry picked from commit 66d3b589c44fcbcf9afe1e442d9beac3bd8bcd34)

Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
4 years agobpo-39101: Fixes BaseException hang in IsolatedAsyncioTestCase. (GH-22654)
Miss Islington (bot) [Wed, 16 Dec 2020 17:56:10 +0000 (09:56 -0800)] 
bpo-39101: Fixes BaseException hang in IsolatedAsyncioTestCase. (GH-22654)

(cherry picked from commit 8374d2ee1589791be8892b00f4bbf8121dde24bd)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
4 years agobpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614) (GH-23804)
Miss Islington (bot) [Wed, 16 Dec 2020 16:33:05 +0000 (08:33 -0800)] 
bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614) (GH-23804)

"uint8_t day" is unsigned and so "day < 0" test is always true.
Remove the test to fix the following warnings on Windows:

modules\_zoneinfo.c(1224): warning C4068: unknown pragma
modules\_zoneinfo.c(1225): warning C4068: unknown pragma
modules\_zoneinfo.c(1227): warning C4068: unknown pragma
(cherry picked from commit aefb69b23f056c61e82ad228d950f348de090c70)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-19733: Re-enable tests for -image option in Tkinter (GH-23785)
Miss Islington (bot) [Wed, 16 Dec 2020 10:54:04 +0000 (02:54 -0800)] 
bpo-19733: Re-enable tests for -image option in Tkinter (GH-23785)

(cherry picked from commit 5f0fe8ec70120f4586d08978b0911b436f82c421)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42644: Validate values in logging.disable() (GH-23786)
Miss Islington (bot) [Wed, 16 Dec 2020 10:12:08 +0000 (02:12 -0800)] 
bpo-42644: Validate values in logging.disable() (GH-23786)

* bpo-42644: Validate values in logging.disable()

Technically make the value of manager a property that checks and convert
values assigned to it properly. This has the side effect of making
`logging.disable` also accept strings representing the various level of
warnings.

We want to validate the type of the disable attribute at assignment
time, as it is later compared to other levels when emitting warnings and
would generate a `TypeError: '>=' not supported between ....` in a
different part of the code base, which can make it difficult to track
down.

When assigned an incorrect value; it will raise a TypeError when the
wrong type, or ValueError if an invalid str.

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
(cherry picked from commit b32d8b4f9bcd2e7d11240b6b9de0262cf8f5e09d)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
4 years ago[3.9] bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (GH-23281...
Serhiy Storchaka [Tue, 15 Dec 2020 18:44:44 +0000 (20:44 +0200)] 
[3.9] bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (GH-23281). (GH-23784)

(cherry picked from commit a26215db11cfcf7b5f55cab9e91396761a0e0bcf)

4 years agobpo-33610: Edit idlelib.codecontext (GH-23773) (GH-23775)
Miss Islington (bot) [Tue, 15 Dec 2020 12:51:56 +0000 (04:51 -0800)] 
bpo-33610: Edit idlelib.codecontext (GH-23773) (GH-23775)

Add sentence to module docstring and import tkinter items.
(cherry picked from commit 6f79e60b66dacefca147bdaa80eb37f936a72991)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.9] bpo-42567: [Enum] call __init_subclass__ after members are added (GH-23714...
Ethan Furman [Tue, 15 Dec 2020 02:41:34 +0000 (18:41 -0800)] 
[3.9] bpo-42567: [Enum] call __init_subclass__ after members are added (GH-23714) (GH-23772)

When creating an Enum, `type.__new__` calls `__init_subclass__`, but at that point the members have not been added.

This patch suppresses the initial call, then manually calls the ancestor `__init_subclass__` before returning the new Enum class.
(cherry picked from commit 6bd94de168b58ac9358277ed6f200490ab26c174)

4 years ago[3.9] bpo-42517: [Enum] deprecate private name members (GH-23722) (GH-23748)
Miss Islington (bot) [Mon, 14 Dec 2020 23:56:58 +0000 (15:56 -0800)] 
[3.9] bpo-42517: [Enum] deprecate private name members (GH-23722) (GH-23748)

private names will raise a DeprecationWarning; in 3.10 they will become normal attributes

4 years agobpo-42591: Export missing Py_FrozenMain() symbol (GH-23730) (GH-23734)
Victor Stinner [Mon, 14 Dec 2020 23:31:54 +0000 (00:31 +0100)] 
bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730) (GH-23734)

Export the Py_FrozenMain() function: fix a Python 3.9.0 regression.
Python 3.9 uses -fvisibility=hidden and the function was not exported
explicitly and so not exported.

(cherry picked from commit b5c7b38f5ebbc84b5b80192db1743d3e1cdcf4c5)

4 years agobpo-40084: Enum - dir() includes member attributes (GH-19219)
Miss Islington (bot) [Mon, 14 Dec 2020 22:43:43 +0000 (14:43 -0800)] 
bpo-40084: Enum - dir() includes member attributes (GH-19219)

(cherry picked from commit 68526fe258da8c01196fd7cf48e8e5f1280bf8fd)

Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com>
4 years agobpo-42059: Fix required/optional keys for TypedDict(..., total=False) (GH-22736)...
Miss Islington (bot) [Mon, 14 Dec 2020 22:33:27 +0000 (14:33 -0800)] 
bpo-42059: Fix required/optional keys for TypedDict(..., total=False) (GH-22736) (GH-23747)

(cherry picked from commit 67b769f5157c9dad1c7dd6b24e067b9fdab5b35d)

Co-authored-by: Alex Grönholm <alex.gronholm@nextday.fi>
4 years agobpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759)
Miss Islington (bot) [Mon, 14 Dec 2020 17:38:03 +0000 (09:38 -0800)] 
bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759)

Add positional only args support to lib2to3 pgen2.

This adds 3.8's PEP-570 support to lib2to3's pgen2.  lib2to3, while
being deprecated is still used by things to parse all versions of Python
code today.  We need it to support parsing modern 3.8 and 3.9 constructs.

Also add tests for complex *expr and **expr's.
(cherry picked from commit 42c9f0fd0a5e67d4ae0022bfd7370cb9725a5b01)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years ago[3.9] bpo-42195: Ensure consistency of Callable's __args__ in collections.abc and...
kj [Mon, 14 Dec 2020 16:30:45 +0000 (00:30 +0800)] 
[3.9] bpo-42195: Ensure consistency of Callable's __args__ in collections.abc and typing (GH-23765)

Backport of GH-23060.

4 years ago[3.9] bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call...
Karthikeyan Singaravelan [Mon, 14 Dec 2020 05:49:16 +0000 (11:19 +0530)] 
[3.9] bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function (GH-23613) (GH-23676)

Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function
(cherry picked from commit c598a04dd29b89ad072245ddaf738badcfb41ac7)

Co-authored-by: idanw206 <31290383+idanw206@users.noreply.github.com>
4 years agobpo-42598: Fix implicit function declarations in configure (GH-23690) (GH-23756)
Miss Islington (bot) [Sun, 13 Dec 2020 22:01:00 +0000 (14:01 -0800)] 
bpo-42598: Fix implicit function declarations in configure (GH-23690) (GH-23756)

This is invalid in C99 and later and is an error with some compilers
(e.g. clang in Xcode 12), and can thus cause configure checks to
produce incorrect results.
(cherry picked from commit 674fa0a740151e0416c9383f127b16014e805990)

Co-authored-by: Joshua Root <jmr@macports.org>
4 years ago[3.9] bpo-41879: Doc: Fix description of async for statement (GH-23548) (GH-23749)
Miss Islington (bot) [Sun, 13 Dec 2020 04:24:31 +0000 (20:24 -0800)] 
[3.9] bpo-41879: Doc: Fix description of async for statement (GH-23548) (GH-23749)

Fix the wording in the documentation of `async for` to correctly describe asynchronous iterables.  This fix is relevant for version 3.7 onward.
(cherry picked from commit 4b8cdfcb22fbeaab9d954cb693a7fb3362a382b6)

Co-authored-by: Nick Gaya <nicholasgaya+github@gmail.com>
4 years ago[3.9] [doc] Link to issue regarding logging.disable level param default value GH...
Andre Delfino [Thu, 10 Dec 2020 14:20:04 +0000 (11:20 -0300)] 
[3.9] [doc] Link to issue regarding logging.disable level param default value GH-23732

(cherry picked from commit 2a35137328154aa2513649dcf0bbef02c998e27c)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years ago[3.9] [Enum] reformat and add doc strings (GH-23705). (GH-23707)
Ethan Furman [Tue, 8 Dec 2020 22:29:02 +0000 (14:29 -0800)] 
[3.9] [Enum] reformat and add doc strings (GH-23705). (GH-23707)

* [3.9] [Enum] reformat and add doc strings (GH-23705).

4 years agobpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) (GH-23703)
Miss Islington (bot) [Tue, 8 Dec 2020 19:52:24 +0000 (11:52 -0800)] 
bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) (GH-23703)

(cherry picked from commit 37440eef7f9a0c27e13fc9ce0850574bb00688b0)

4 years ago[3.9] bpo-41910: move news entry (GH-23697)
Terry Jan Reedy [Tue, 8 Dec 2020 18:00:13 +0000 (13:00 -0500)] 
[3.9] bpo-41910: move news entry (GH-23697)

4 years agobpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642) (GH-23692)
Victor Stinner [Tue, 8 Dec 2020 15:16:05 +0000 (16:16 +0100)] 
bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642) (GH-23692)

Fix encoding name when running a ".pyc" file on Windows:
PyRun_SimpleFileExFlags() now uses the correct encoding to decode the
filename.

* Add pyrun_file() subfunction.
* Add pyrun_simple_file() subfunction.
* PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than
  _Py_fopen().

(cherry picked from commit b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d)

4 years agoPost 3.9.1
Łukasz Langa [Tue, 8 Dec 2020 02:09:53 +0000 (03:09 +0100)] 
Post 3.9.1

4 years agoMerge tag 'v3.9.1' into 3.9
Łukasz Langa [Tue, 8 Dec 2020 02:09:42 +0000 (03:09 +0100)] 
Merge tag 'v3.9.1' into 3.9

Python 3.9.1

4 years agobpo-41889: [Enum] fix multiple-inheritance regression (GH-22487) (GH-23673)
Miss Islington (bot) [Mon, 7 Dec 2020 23:51:16 +0000 (15:51 -0800)] 
bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487) (GH-23673)

(cherry picked from commit c266736ec1f9ebef38b134ceb4832df015711b38)

4 years agobpo-42536: GC track recycled tuples (GH-23623) (GH-23651)
Brandt Bucher [Mon, 7 Dec 2020 20:07:48 +0000 (12:07 -0800)] 
bpo-42536: GC track recycled tuples (GH-23623) (GH-23651)

Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector:

- collections.OrderedDict.items
- dict.items
- enumerate
- functools.reduce
- itertools.combinations
- itertools.combinations_with_replacement
- itertools.permutations
- itertools.product
- itertools.zip_longest
- zip

Previously, they could have become untracked by a prior garbage collection.
(cherry picked from commit 226a012d1cd61f42ecd3056c554922f359a1a35d)

4 years agobpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils...
Miss Islington (bot) [Mon, 7 Dec 2020 17:56:44 +0000 (09:56 -0800)] 
bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils (GH-22088)

(cherry picked from commit c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6)

Co-authored-by: Matti Picus <matti.picus@gmail.com>
4 years agoPython 3.9.1 v3.9.1
Łukasz Langa [Mon, 7 Dec 2020 14:02:38 +0000 (15:02 +0100)] 
Python 3.9.1

4 years agobpo-38843: Document behavior of default when the attribute is already set (GH-23653...
Miss Islington (bot) [Mon, 7 Dec 2020 05:17:09 +0000 (21:17 -0800)] 
bpo-38843: Document behavior of default when the attribute is already set (GH-23653) (#23668)

(cherry picked from commit 752cdf21eb2be0a26ea6a34a0de33a458459aead)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years agobpo-42508: Keep IDLE running on macOS (GH-23577) (GH-23669)
Miss Islington (bot) [Mon, 7 Dec 2020 03:48:48 +0000 (19:48 -0800)] 
bpo-42508: Keep IDLE running on macOS (GH-23577) (GH-23669)

Remove obsolete workaround that prevented running files with
shortcuts when using new universal2 installers built on macOS 11.
Ignore buggy 2nd run_module_event call.
(cherry picked from commit 57e511361047895231f5ee7abfdfbbc60e11d2db)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.9] bpo-42576: Clarify only debug builds are affected in news (GH-23663) (GH-23666)
Miss Islington (bot) [Sun, 6 Dec 2020 17:00:57 +0000 (09:00 -0800)] 
[3.9] bpo-42576: Clarify only debug builds are affected in news (GH-23663) (GH-23666)

(cherry picked from commit 6a7fb9d31bce8590e30c44458d1fc1da4539743d)

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
Automerge-Triggered-By: GH:gvanrossum
4 years agobpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH...
Miss Islington (bot) [Sat, 5 Dec 2020 16:24:38 +0000 (08:24 -0800)] 
bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH-23656)

Use `_PyArg_NoKeywords` instead of `_PyArg_NoKwnames` when checking the `kwds` tuple when creating `GenericAlias`. This fixes an interpreter crash when passing in keyword arguments to `GenericAlias`'s constructor.

Needs backport to 3.9.

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit 804d6893b801e8f30318afc38c20d4d0e6161db3)

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
4 years ago[3.9] bpo-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed (GH...
Miss Islington (bot) [Sat, 5 Dec 2020 15:26:37 +0000 (07:26 -0800)] 
[3.9] bpo-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed (GH-23638) (GH-23657)

(cherry picked from commit da3d2abe6be9fcf18cac12ec5d7d9f1180d94b5e)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Automerge-Triggered-By: GH:orsenthil
4 years ago[3.9] bpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649) (GH-23650)
Miss Islington (bot) [Sat, 5 Dec 2020 04:26:59 +0000 (20:26 -0800)] 
[3.9] bpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649) (GH-23650)

If no explicit macOS SDK was specified, setup.py should check for
Tcl and TK frameworks in /Library/Frameworks; the previous commit
inadvertently broke that test.
(cherry picked from commit 29afab6c5f656f07ac85c9b2cf089631b2557a11)

Co-authored-by: Ned Deily <nad@python.org>
4 years agobpo-17735: inspect.findsource now raises OSError when co_lineno is out of range ...
Miss Islington (bot) [Fri, 4 Dec 2020 22:41:58 +0000 (14:41 -0800)] 
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633)

This can happen when a file was edited after it was imported.
(cherry picked from commit 2e0760bb2edb595050aff82f236cd32b44d3dfb3)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years ago[3.9] bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531...
Miss Islington (bot) [Fri, 4 Dec 2020 20:57:31 +0000 (12:57 -0800)] 
[3.9] bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531) (GH-23578)

(cherry picked from commit 427613f005f0f412d12f0d775d2b609bae0ae1ad)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)
Miss Islington (bot) [Fri, 4 Dec 2020 20:20:05 +0000 (12:20 -0800)] 
bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)

(cherry picked from commit 6e1eec71f59c344fb23c7977061dc2c97b77d51b)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)
Miss Islington (bot) [Fri, 4 Dec 2020 15:47:44 +0000 (07:47 -0800)] 
bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)

https://bugzilla.redhat.com/show_bug.cgi?id=1866884 is fixed in gdb
10.1 (failed to reproduce on gdb-10.1-1.fc34.aarch64).
(cherry picked from commit 066394018a8463643cc63d933493f0afa99d72cc)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603)
Miss Islington (bot) [Thu, 3 Dec 2020 17:46:58 +0000 (09:46 -0800)] 
bpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603)

(cherry picked from commit db68544122f5a0c7b80f69c0e643049efa6699c6)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-42553: Fix test_asyncio.test_call_later() (GH-23627)
Miss Islington (bot) [Thu, 3 Dec 2020 13:20:07 +0000 (05:20 -0800)] 
bpo-42553: Fix test_asyncio.test_call_later() (GH-23627)

Fix test_asyncio.test_call_later() race condition: don't measure
asyncio performance in the call_later() unit test. The test failed
randomly on the CI.
(cherry picked from commit 7e5e13d113798117d5ef25c5ffdbd0eb39420f98)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)
Miss Islington (bot) [Thu, 3 Dec 2020 09:10:23 +0000 (01:10 -0800)] 
bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)

(cherry picked from commit f3c3ea91a76526edff928c95b9c6767e077b7448)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)
Miss Islington (bot) [Thu, 3 Dec 2020 03:43:08 +0000 (19:43 -0800)] 
bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)

macOS releases numbering has changed as of macOS 11 Big Sur.  Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert.
(cherry picked from commit 5291639e611dc3f55a34666036f2c3424648ba50)

Co-authored-by: FX Coudert <fxcoudert@gmail.com>
4 years agobpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607)
Miss Islington (bot) [Wed, 2 Dec 2020 22:01:23 +0000 (14:01 -0800)] 
bpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607)

(cherry picked from commit 99b594404d364b363c184f48338d6ee81bee26dd)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)
Miss Islington (bot) [Tue, 1 Dec 2020 15:54:54 +0000 (07:54 -0800)] 
bpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)

(cherry picked from commit 1867b462de427bcb8dfbcd256028410aea6ae929)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years ago[3.9] build(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23597)
Benjamin Peterson [Tue, 1 Dec 2020 15:30:03 +0000 (09:30 -0600)] 
[3.9] build(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23597)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.0 to v2.2.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.0...726a6dcd0199f578459862705eed35cda05af50b)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 8acd0e0d4976e91500149ee189f369f2b83b7537)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agobuild(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)
Miss Islington (bot) [Tue, 1 Dec 2020 15:24:20 +0000 (07:24 -0800)] 
build(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)

Bumps [actions/cache](https://github.com/actions/cache) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.2...0781355a23dac32fd3bac414512f4b903437991a)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit a43fea88577c460eed7cc92a37b5fce787d6aab1)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoAdd GCC pragmas to silence compiler warning about ffi_prep_closure (GH-23327) (GH...
Miss Islington (bot) [Tue, 1 Dec 2020 15:07:50 +0000 (07:07 -0800)] 
Add GCC pragmas to silence compiler warning about ffi_prep_closure (GH-23327) (GH-23590)

(cherry picked from commit cce3f0b0c88eba98bc11abe703a444bee7880ff8)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.9] bpo-17852: Doc: Fix the tutorial about closing files (GH-23135) (GH-23527)
Miss Islington (bot) [Tue, 1 Dec 2020 10:53:42 +0000 (02:53 -0800)] 
[3.9] bpo-17852: Doc: Fix the tutorial about closing files (GH-23135) (GH-23527)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
(cherry picked from commit c8aaf71dde4888864c0c351e2f935f87652c3d54)

Co-authored-by: Volker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com>
4 years agoFix bz2 examples markup (GH-23580)
Miss Islington (bot) [Tue, 1 Dec 2020 10:04:23 +0000 (02:04 -0800)] 
Fix bz2 examples markup (GH-23580)

(cherry picked from commit 80a429eae95c15c2c2a6753376f2697c90c2b6b9)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years ago[3.9] [doc] Fix smtplib and xml.dom.minidom mark-up (GH-22769) (GH-23380)
Julien Palard [Tue, 1 Dec 2020 07:58:36 +0000 (08:58 +0100)] 
[3.9] [doc] Fix smtplib and xml.dom.minidom mark-up (GH-22769) (GH-23380)

4 years agobpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)...
Miss Islington (bot) [Mon, 30 Nov 2020 22:36:06 +0000 (14:36 -0800)] 
bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570) (GH-23571)

restart_subprocess is a method of self, the pyshell.InteractiveInterpreter instance. The latter does not have an interp attribute redundantly referring to itself. (The PyShell instance does have an interp attribute, referring to the InteractiveInterpreter instance.)
(cherry picked from commit e41bfd15dd148627b4f39c2a5837bddd8894d345)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-42370: Check element before making mouse click in ttk tests (GH-23491)
Miss Islington (bot) [Mon, 30 Nov 2020 22:34:43 +0000 (14:34 -0800)] 
bpo-42370: Check element before making mouse click in ttk tests (GH-23491)

(cherry picked from commit b0b428510cfd604a8eef1f245f039331e671ea4a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42501: Revise the usage note for Enums with the choices (GH-23563) (GH-23573)
Miss Islington (bot) [Mon, 30 Nov 2020 21:21:08 +0000 (13:21 -0800)] 
bpo-42501:  Revise the usage note for Enums with the choices (GH-23563) (GH-23573)

4 years agobpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534...
Miss Islington (bot) [Mon, 30 Nov 2020 17:07:26 +0000 (09:07 -0800)] 
bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534) (GH-23569)

4 years agobpo-42142: Try to fix timeouts in ttk tests (GH-23474)
Miss Islington (bot) [Mon, 30 Nov 2020 08:43:59 +0000 (00:43 -0800)] 
bpo-42142: Try to fix timeouts in ttk tests (GH-23474)

Instead of using wait_visibility() which waits event <VisibilityNotify> in dead loop
use update() which should proceed all queued events.
(cherry picked from commit 6cc2c419f6cf5ed336609ba01055e77d7c553e6d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.9] bpo-42474: test TracebackException comparison to non-equal instances (GH-23557)
Irit Katriel [Mon, 30 Nov 2020 01:40:45 +0000 (01:40 +0000)] 
[3.9] bpo-42474: test TracebackException comparison to non-equal instances (GH-23557)

4 years agobpo-42450: Minor updates to the itertools recipes (GH-23555) (GH-23562)
Miss Islington (bot) [Sun, 29 Nov 2020 19:14:10 +0000 (11:14 -0800)] 
bpo-42450: Minor updates to the itertools recipes (GH-23555) (GH-23562)

4 years agobpo-42406: Fix whichmodule() with multiprocessing (GH-23403)
Miss Islington (bot) [Sun, 29 Nov 2020 18:47:31 +0000 (10:47 -0800)] 
bpo-42406: Fix whichmodule() with multiprocessing (GH-23403)

* bpo-42406: Fix whichmodule() with multiprocessing

Signed-off-by: Renato L. de F. Cunha <renatoc@br.ibm.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 86684319d3dad8e1a7b0559727a48e0bc50afb01)

Co-authored-by: Renato Cunha <renatocunha@acm.org>
4 years agobpo-39096: Improve description of 'e', 'f' and 'g' presentation types (GH-23537)...
Miss Islington (bot) [Sun, 29 Nov 2020 09:58:01 +0000 (01:58 -0800)] 
bpo-39096: Improve description of 'e', 'f' and 'g' presentation types (GH-23537) (GH-23550)

* Improve description of 'e', 'f' and 'g' presentation types

* Drop the 'E' from Scientific 'E' notation; remove >= 0 qualifications

* Fix false statement that the alternate form is valid for Decimal

* Nitpick: remove the Harvard/Oxford comma

* Add note that the decimal point is also removed if no digits follow it, except in alternate form
(cherry picked from commit c642374b3ef72f6f300616f07aea2a3f9ed83e51)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agoFix dis markup (GH-23524)
Miss Islington (bot) [Sat, 28 Nov 2020 22:06:05 +0000 (14:06 -0800)] 
Fix dis markup (GH-23524)

(cherry picked from commit fa840cc81d61b936ef95fdf7509a11b5927dc585)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agoFix multiprocessing markup (GH-23525)
Miss Islington (bot) [Sat, 28 Nov 2020 22:05:37 +0000 (14:05 -0800)] 
Fix multiprocessing markup (GH-23525)

(cherry picked from commit 4b44472966f17ad96d4370569ae049de9873e4af)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
Miss Islington (bot) [Sat, 28 Nov 2020 15:14:23 +0000 (07:14 -0800)] 
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)

(cherry picked from commit d41ec65ab7411e877ca33d05e8c900feca530635)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925...
Miss Islington (bot) [Sat, 28 Nov 2020 15:07:51 +0000 (07:07 -0800)] 
bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925) (GH-23539)

Co-Authored-By: Tyler Bell <mrbell321@gmail.com>
(cherry picked from commit 8085f742f4adfbc85f13fc734dfab036aa23acfb)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agoPost 3.9.1rc1
Łukasz Langa [Thu, 26 Nov 2020 17:49:45 +0000 (18:49 +0100)] 
Post 3.9.1rc1

4 years agoMerge tag 'v3.9.1rc1' into 3.9
Łukasz Langa [Thu, 26 Nov 2020 17:49:05 +0000 (18:49 +0100)] 
Merge tag 'v3.9.1rc1' into 3.9

Python 3.9.1rc1

4 years agoTypo: fix inverted sense of statement (GH-23288) (GH-23512)
Miss Islington (bot) [Wed, 25 Nov 2020 20:14:32 +0000 (12:14 -0800)] 
Typo: fix inverted sense of statement (GH-23288) (GH-23512)

4 years agoAdd more tests to the descriptor howto guide (GH-23506) (GH-23510)
Miss Islington (bot) [Wed, 25 Nov 2020 10:16:32 +0000 (02:16 -0800)] 
Add more tests to the descriptor howto guide (GH-23506) (GH-23510)

4 years agobpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409)
Miss Islington (bot) [Wed, 25 Nov 2020 09:52:51 +0000 (01:52 -0800)] 
bpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409)

Restore fix from 011525ee92eb1c13ad1a62d28725a840e28f8160.
(cherry picked from commit 4fedd7123eaf147edd55eabbbd72e0bcc8368e47)

Co-authored-by: Julien Palard <julien@palard.fr>
4 years agoAdd doctests to the descriptor HowTo (GH-23500) (GH-23505)
Miss Islington (bot) [Wed, 25 Nov 2020 06:47:17 +0000 (22:47 -0800)] 
Add doctests to the descriptor HowTo (GH-23500) (GH-23505)

4 years agoPython 3.9.1rc1 v3.9.1rc1
Łukasz Langa [Tue, 24 Nov 2020 16:48:47 +0000 (17:48 +0100)] 
Python 3.9.1rc1

4 years agobpo-42212: Check if generated files are up-to-date in GitHub Actions (GH-23042)
Miss Islington (bot) [Tue, 24 Nov 2020 13:25:29 +0000 (05:25 -0800)] 
bpo-42212: Check if generated files are up-to-date in GitHub Actions (GH-23042)

See https: //github.com/python/core-workflow/issues/380

Signed-off-by: Filipe Laíns <lains@archlinux.org>
(cherry picked from commit d20b7ed9c1fabac3fdebb7ec362fe4f022a54639)

Co-authored-by: Filipe Laíns <lains@archlinux.org>
4 years agobpo-41100: in test_platform, ignore 10.16 (GH-23485) (GH-23486)
Miss Islington (bot) [Tue, 24 Nov 2020 06:34:16 +0000 (22:34 -0800)] 
bpo-41100: in test_platform, ignore 10.16 (GH-23485) (GH-23486)

(cherry picked from commit c0c23ea72b76b06b7db0d09415fa90bab8ded63a)

Co-authored-by: Ned Deily <nad@python.org>
4 years agobpo-41100: minor build installer fixes (GH-23480)
Miss Islington (bot) [Tue, 24 Nov 2020 00:26:31 +0000 (16:26 -0800)] 
bpo-41100: minor build installer fixes (GH-23480)

(cherry picked from commit 936533ca0415c40dc64ccb5f8857720f32b3fcb4)

Co-authored-by: Ned Deily <nad@python.org>
4 years agoTypo (GH-23482) (#23483)
Miss Islington (bot) [Tue, 24 Nov 2020 00:11:13 +0000 (16:11 -0800)] 
Typo (GH-23482) (#23483)

(cherry picked from commit 989af256161ea3728e1f787329e07e70e0901bc8)

Co-authored-by: Jesús Cea <jcea@jcea.es>
Co-authored-by: Jesús Cea <jcea@jcea.es>
4 years agoDescriptor HowTo: Improve the fidelity of the member object simulation (GH-23475...
Miss Islington (bot) [Mon, 23 Nov 2020 19:31:45 +0000 (11:31 -0800)] 
Descriptor HowTo: Improve the fidelity of the member object simulation (GH-23475) (GH-23479)

4 years agobpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300)
Miss Islington (bot) [Mon, 23 Nov 2020 08:51:37 +0000 (00:51 -0800)] 
bpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300)

The function accepts now the representation of the default state as
empty sequence (as returned by Style.map()).
The structure of the result is now the same on all platform
and does not depend on the value of wantobjects.
(cherry picked from commit dd844a2916fb3a8f481ec7c732802c13c3375691)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-41100: Update Whatsnew and installer ReadME for 3.9.1 (GH-23472)
Ned Deily [Mon, 23 Nov 2020 04:43:04 +0000 (23:43 -0500)] 
bpo-41100: Update Whatsnew and installer ReadME for 3.9.1 (GH-23472)

4 years agobpo-42361: Use Tcl/Tk 8.6.10 when building the installer on recent macOS (GH-23293)
Miss Islington (bot) [Sun, 22 Nov 2020 18:22:21 +0000 (10:22 -0800)] 
bpo-42361: Use Tcl/Tk 8.6.10 when building the installer on recent macOS (GH-23293)

Building on older versions, and in particular macOS 10.9 still use
Tk 8.6.8 because of build problems on that version of macOS.
(cherry picked from commit 690a5fa3ddc675a434730b057ddb5c33f44fd0b7)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
4 years agoDoc: fix typo in typing.Type docs (GH-23460)
Miss Islington (bot) [Sun, 22 Nov 2020 15:16:48 +0000 (07:16 -0800)] 
Doc: fix typo in typing.Type docs (GH-23460)

(cherry picked from commit 5ef53a88f3130cfcf9a9be3abd2ff2f997902647)

Co-authored-by: John Belmonte <john@neggie.net>
4 years ago[3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855) (GH-23295)
Ronald Oussoren [Sun, 22 Nov 2020 10:18:40 +0000 (11:18 +0100)] 
[3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855) (GH-23295)

* [3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855)

Co-authored-by: Lawrence D’Anna <lawrence_danna@apple.com>
* Add support for macOS 11 and Apple Silicon (aka arm64)

  As a side effect of this work use the system copy of libffi on macOS, and remove the vendored copy

* Support building on recent versions of macOS while deploying to older versions

  This allows building installers on macOS 11 while still supporting macOS 10.9..
(cherry picked from commit 41761933c1c30bb6003b65eef1ba23a83db4eae4)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* Back port of changes to _decimal to support arm64

* temp_dir is in test.support in 3.9

4 years agobpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301) (GH...
Miss Islington (bot) [Sun, 22 Nov 2020 06:35:36 +0000 (22:35 -0800)] 
bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301) (GH-23455)

On macOS system provided libraries are in a shared library cache
and not at their usual location. This PR teaches distutils to search
in the SDK, even if there was no "-sysroot" argument in
the compiler flags.
(cherry picked from commit 404a719b5127602c1a948f8e189ab61cd3f147d8)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
4 years agobpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)
Miss Islington (bot) [Sun, 22 Nov 2020 06:24:21 +0000 (22:24 -0800)] 
bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)

Removing 'evaluate' makes it more consistent with other assertX entries.
(cherry picked from commit bd8c22e1fa8f8f6e31ee083a8b9321a2c324f02f)

Co-authored-by: Ram Rachum <ram@rachum.com>
4 years agobpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)
Miss Islington (bot) [Sun, 22 Nov 2020 05:30:46 +0000 (21:30 -0800)] 
bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)

(cherry picked from commit 453bc1da2023d6cbe362637a2e0b06d0521f013c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.9] bpo-38443: Check that the specified universal architectures work (GH-22910...
Miss Islington (bot) [Sun, 22 Nov 2020 01:45:21 +0000 (17:45 -0800)] 
[3.9] bpo-38443: Check that the specified universal architectures work (GH-22910) (GH-23451)

As [[bpo-38443]()]() says the error message from configure when specifying --enable-universalsdk with a set of architectures that is not supported by the compiler is not very helpful.   This PR explicitly checks if the compiler works and bails out if it doesn't.
(cherry picked from commit 0f20bd9042c9b7fce20c3b9511cd0820b30094c3)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
4 years agoClarify that Set._from_iterable is not required to be a classmethod. (GH-23272) ...
Miss Islington (bot) [Sat, 21 Nov 2020 20:20:26 +0000 (12:20 -0800)] 
Clarify that Set._from_iterable is not required to be a classmethod. (GH-23272) (GH-23450)

4 years agoFix wrong availability for signal.SIGCHLD (GH-23285) (#23425)
Miss Islington (bot) [Sat, 21 Nov 2020 11:22:46 +0000 (03:22 -0800)] 
Fix wrong availability for signal.SIGCHLD (GH-23285) (#23425)

I believe this is a mistake. SIGCHLD is only available on Unix systems, not Windows.
(cherry picked from commit 4c24b08cd3239b417a5f8c7ba2ba54c840d051e3)

Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com>
Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com>
4 years agobpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() ...
Miss Islington (bot) [Sat, 21 Nov 2020 11:09:40 +0000 (03:09 -0800)] 
bpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() (GH-23410)

* There were leaks if Py_tp_bases is used more than once or if some call is
  failed before setting tp_bases.
* There was a crash if the bases argument or the Py_tp_bases slot is not a tuple.
* The documentation was not accurate.
(cherry picked from commit 1db76394ea79030aa4ed5349c950f6c6da51450f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-40550: Fix time-of-check/time-of-action issue in subprocess.Popen.send_signal...
Miss Islington (bot) [Sat, 21 Nov 2020 09:46:21 +0000 (01:46 -0800)] 
bpo-40550: Fix time-of-check/time-of-action issue in subprocess.Popen.send_signal. (GH-20010)

send_signal() now swallows the exception if the process it thought was still alive winds up not to exist anymore (always a plausible race condition despite the checks).

Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 01a202ab6b0ded546e47073db6498262086c52e9)

Co-authored-by: Filipe Laíns <lains@archlinux.org>
4 years agobpo-40791: Make compare_digest more constant-time. (GH-20444)
Miss Islington (bot) [Sat, 21 Nov 2020 09:18:41 +0000 (01:18 -0800)] 
bpo-40791: Make compare_digest more constant-time. (GH-20444)

* bpo-40791: Make compare_digest more constant-time.

The existing volatile `left`/`right` pointers guarantee that the reads will all occur, but does not guarantee that they will be _used_. So a compiler can still short-circuit the loop, saving e.g. the overhead of doing the xors and especially the overhead of the data dependency between `result` and the reads. That would change performance depending on where the first unequal byte occurs. This change removes that optimization.

(This is change GH-1 from https://bugs.python.org/issue40791 .)
(cherry picked from commit 31729366e2bc09632e78f3896dbce0ae64914f28)

Co-authored-by: Devin Jeanpierre <jeanpierreda@google.com>
4 years agobpo-42419: Correct 'deprecatations' is What's New 3.9 (GH-23421) (GH-23435)
Miss Islington (bot) [Sat, 21 Nov 2020 04:34:55 +0000 (20:34 -0800)] 
bpo-42419: Correct 'deprecatations' is What's New 3.9 (GH-23421) (GH-23435)

(cherry picked from commit aa3a3521cef3998d4f9e7f7ff721163b6e3e5f39)
Co-authored-by: Quentin Hibon <qh.public@yahoo.com>
4 years agobpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400)
Miss Islington (bot) [Sat, 21 Nov 2020 03:01:05 +0000 (19:01 -0800)] 
bpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400)

(cherry picked from commit 6edf06b24a9335a2b0d44634a95e4f5ba0d586d9)

Co-authored-by: ArioA <ArioA@users.noreply.github.com>