]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
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>
4 years agobpo-28002: Roundtrip f-strings with ast.unparse better (GH-19612) (GH-23430)
Miss Islington (bot) [Fri, 20 Nov 2020 21:46:49 +0000 (13:46 -0800)] 
bpo-28002: Roundtrip f-strings with ast.unparse better (GH-19612) (GH-23430)

By attempting to avoid backslashes in f-string expressions.
We also now proactively raise errors for some backslashes we can't
avoid while unparsing FormattedValues

Co-authored-by: hauntsaninja <>
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
(cherry picked from commit a993e901ebe60c38d46ecb31f771d0b4a206828c)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
4 years agobpo-42360: Add advice to help avoid pickling issues. (GH-23305) (GH-23429)
Miss Islington (bot) [Fri, 20 Nov 2020 21:19:49 +0000 (13:19 -0800)] 
bpo-42360: Add advice to help avoid pickling issues. (GH-23305) (GH-23429)

4 years agobpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)
Miss Islington (bot) [Fri, 20 Nov 2020 07:28:21 +0000 (23:28 -0800)] 
bpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)

Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None.
(cherry picked from commit 7ddbaa7a1b3e61847ee99658be6a7268a049e302)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-42345: Add whatsnew and versionchanged for typing.Literal in 3.9 (GH-23386)
Miss Islington (bot) [Thu, 19 Nov 2020 17:59:10 +0000 (09:59 -0800)] 
bpo-42345: Add whatsnew and versionchanged for typing.Literal in 3.9 (GH-23386)

* Whatsnew entry in 3.9 same as the one in 3.10.
* versionchanged for typing.Literal docs

Needs backport to 3.9.
(cherry picked from commit e1dc0db8c7cb8c4d7343e051ba85146b375bb8e0)

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-42345: Fix hash implementation of typing.Literal (GH-23383)
Miss Islington (bot) [Thu, 19 Nov 2020 16:51:01 +0000 (08:51 -0800)] 
bpo-42345: Fix hash implementation of typing.Literal (GH-23383)

Fix hash implementation of `typing.Literal`.

Update docs regarding `typing.Litaral` caching.

Base implementation was done in PR GH-23294.
(cherry picked from commit 1b54077ff6f5c1379e097e9f8e8648da9826d6ec)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
4 years ago[3.9] bpo-42381: Allow walrus in set literals and set comprehensions (GH-23332) ...
Pablo Galindo [Wed, 18 Nov 2020 23:44:30 +0000 (23:44 +0000)] 
[3.9] bpo-42381: Allow walrus in set literals and set comprehensions (GH-23332) (GH-23333)

Currently walruses are not allowerd in set literals and set comprehensions:

>>> {y := 4, 4**2, 3**3}
  File "<stdin>", line 1
    {y := 4, 4**2, 3**3}
       ^
SyntaxError: invalid syntax

but they should be allowed as well per PEP 572.
(cherry picked from commit b0aba1fcdc3da952698d99aec2334faa79a8b68c)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.9] Minor grammar edits for the descriptor howto guide (GH-GH-23175) (GH-23176)
Miss Islington (bot) [Wed, 18 Nov 2020 23:23:49 +0000 (15:23 -0800)] 
[3.9] Minor grammar edits for the descriptor howto guide (GH-GH-23175) (GH-23176)

(cherry picked from commit 803187796f06bdc47ae74ce3d28c443e8cc2a27f)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Automerge-Triggered-By: GH:JulienPalard
4 years ago[3.9] bpo-38320: Clarify that expectedFailure is satisfied by either failure or error...
Miss Islington (bot) [Wed, 18 Nov 2020 22:37:37 +0000 (14:37 -0800)] 
[3.9] bpo-38320: Clarify that expectedFailure is satisfied by either failure or error of the test. (GH-22740) (GH-22783)

(cherry picked from commit fa8748271a61177e9bf609921fa464cc6990478b)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-42336: Improve PCbuild batch files (GH-23275)
Miss Islington (bot) [Wed, 18 Nov 2020 17:45:54 +0000 (09:45 -0800)] 
bpo-42336: Improve PCbuild batch files (GH-23275)

(cherry picked from commit 2156d964a12285280c533af1c96eb273c58451e6)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years ago[3.9] bpo-40998: Fix a refleak in create_filter() (GH-23365) (GH-23369)
Christian Heimes [Wed, 18 Nov 2020 17:45:29 +0000 (18:45 +0100)] 
[3.9] bpo-40998: Fix a refleak in create_filter() (GH-23365) (GH-23369)

(cherry picked from commit d1e38d4023aa29e7ed64d4f8eb9c1e4a3c86a2e5)

4 years agobpo-42398: Fix "make regen-all" race condition (GH-23362) (GH-23367)
Victor Stinner [Wed, 18 Nov 2020 16:11:09 +0000 (17:11 +0100)] 
bpo-42398: Fix "make regen-all" race condition (GH-23362) (GH-23367)

Fix a race condition in "make regen-all" when make -jN option is used
to run jobs in parallel. The clinic.py script now only use atomic
write to write files. Moveover, generated files are now left
unchanged if the content does not change, to not change the file
modification time.

The "make regen-all" command runs "make clinic" and "make
regen-importlib" targets:

* "make regen-importlib" builds object files (ex: Modules/_weakref.o)
  from source files (ex: Modules/_weakref.c) and clinic files (ex:
  Modules/clinic/_weakref.c.h)
* "make clinic" always rewrites all clinic files
  (ex: Modules/clinic/_weakref.c.h)

Since there is no dependency between "clinic" and "regen-importlib"
Makefile targets, these two targets can be run in parallel. Moreover,
half of clinic.py file writes are not atomic and so there is a race
condition when "make regen-all" runs jobs in parallel using make -jN
option (which can be passed in MAKEFLAGS environment variable).

Fix clinic.py to make all file writes atomic:

* Add write_file() function to ensure that all file writes are
  atomic: write into a temporary file and then use os.replace().
* Moreover, write_file() doesn't recreate or modify the file if the
  content does not change to avoid modifying the file modification
  file.
* Update test_clinic to verify these assertions with a functional
  test.
* Remove Clinic.force attribute which was no longer used, whereas
  Clinic.verify remains useful.

(cherry picked from commit 8fba9523cf08029dc2e280d9f48fdd57ab178c9d)

4 years agobpo-40998: Address compiler warnings found by ubsan (GH-20929)
Miss Islington (bot) [Wed, 18 Nov 2020 16:01:48 +0000 (08:01 -0800)] 
bpo-40998: Address compiler warnings found by ubsan (GH-20929)

Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
(cherry picked from commit 07f2adedf0940b06d136208ec386d69b7d2d5b43)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.9] bpo-41561: skip test_min_max_version_mismatch (GH-22308) (GH-23363)
Miss Islington (bot) [Wed, 18 Nov 2020 12:42:38 +0000 (04:42 -0800)] 
[3.9] bpo-41561: skip test_min_max_version_mismatch (GH-22308) (GH-23363)

skip test_min_max_version_mismatch when TLS 1.0 is not available

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit ce04e7105bc396c32667a22b928a712ba0778a3f)

Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
4 years ago[3.9] bpo-42332: Add weakref slot to types.GenericAlias (GH-23250) (GH-23309)
kj [Tue, 17 Nov 2020 22:45:08 +0000 (05:45 +0700)] 
[3.9] bpo-42332: Add weakref slot to types.GenericAlias (GH-23250) (GH-23309)

(cherry picked from commit 384b7a4bd988986bca227c7e85c32d766da74708)

4 years ago[3.9] bpo-39934: Account for control blocks in 'except' in compiler. (GH-22395) ...
Irit Katriel [Tue, 17 Nov 2020 19:31:55 +0000 (19:31 +0000)] 
[3.9] bpo-39934: Account for control blocks in 'except' in compiler. (GH-22395) (GH-23303)

* bpo-39934: backport PR 22395 to 3.9

4 years agobpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347)
Victor Stinner [Tue, 17 Nov 2020 17:58:12 +0000 (18:58 +0100)] 
bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347)

bpo-41686, bpo-41713: On Windows, the SIGINT event,
_PyOS_SigintEvent(), is now created even if Python is configured to
not install signal handlers (PyConfig.install_signal_handlers=0 or
Py_InitializeEx(0)).

4 years ago[3.9] bpo-42345: Fix three issues with typing.Literal parameters (GH-23294) (GH-23335)
Yurii Karabas [Tue, 17 Nov 2020 15:23:36 +0000 (17:23 +0200)] 
[3.9] bpo-42345: Fix three issues with typing.Literal parameters (GH-23294) (GH-23335)

Literal equality no longer depends on the order of arguments.

Fix issue related to `typing.Literal` caching by adding `typed` parameter to `typing._tp_cache` function.

Add deduplication of `typing.Literal` arguments.

(cherry picked from commit f03d318ca42578e45405717aedd4ac26ea52aaed)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
4 years agobpo-40637: Don't test builtin PBKDF2 without builtin hashes (GH-20980)
Miss Islington (bot) [Tue, 17 Nov 2020 15:01:55 +0000 (07:01 -0800)] 
bpo-40637: Don't test builtin PBKDF2 without builtin hashes (GH-20980)

Skip testing of pure Python PBKDF2 when one or more builtin hash module
is not available. Otherwise the import of hashlib prints noise on
stderr.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 975022b77b0024ea1548f19d5f91aba5ba1eed59)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.9] bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326...
Miss Islington (bot) [Tue, 17 Nov 2020 07:50:43 +0000 (23:50 -0800)] 
[3.9] bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326) (GH-23331)

(cherry picked from commit 9cc9e277254023c0ca08e1a9e379fd89475ca9c2)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-42374: Allow unparenthesized walrus in genexps (GH-23319) (GH-23329)
Lysandros Nikolaou [Mon, 16 Nov 2020 23:38:58 +0000 (01:38 +0200)] 
bpo-42374: Allow unparenthesized walrus in genexps (GH-23319) (GH-23329)

This fixes a regression that was introduced by the new parser.

(cherry picked from commit cb3e5ed0716114393696ec7201e51fe0595eab4f)

4 years agobpo-42350: Fix Thread._reset_internal_locks() (GH-23268)
Miss Islington (bot) [Mon, 16 Nov 2020 15:17:17 +0000 (07:17 -0800)] 
bpo-42350: Fix Thread._reset_internal_locks() (GH-23268)

Fix the threading.Thread class at fork: do nothing if the thread is
already stopped (ex: fork called at Python exit). Previously, an
error was logged in the child process.
(cherry picked from commit 5909a494cd3ba43143b28bd439773ed85a485dfc)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)
Miss Islington (bot) [Mon, 16 Nov 2020 05:27:03 +0000 (21:27 -0800)] 
bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)

The University of Washington stopped hosting the IMAP documents. Link to a rescued copy on GitHub.
(cherry picked from commit aa01011003bb855cd52abfd49f2443446590d913)

Co-authored-by: Yash Shete <universeyash4@gmail.com>
4 years agoMore updates to the descriptor howto guide (GH-23238) (GH-23308)
Miss Islington (bot) [Mon, 16 Nov 2020 02:27:56 +0000 (18:27 -0800)] 
More updates to the descriptor howto guide (GH-23238) (GH-23308)

4 years agobpo-42317: Improve docs of typing.get_args concerning Union (GH-23254)
Miss Islington (bot) [Mon, 16 Nov 2020 01:52:22 +0000 (17:52 -0800)] 
bpo-42317: Improve docs of typing.get_args concerning Union (GH-23254)

(cherry picked from commit c3b9592244a9112d8af9610ff1c4e1e4cd4bfaca)

Co-authored-by: Dominik1123 <15989985+Dominik1123@users.noreply.github.com>
4 years agofix typo in ThreadedChildWatcher docs (GH-23277)
Miss Islington (bot) [Sat, 14 Nov 2020 12:24:21 +0000 (04:24 -0800)] 
fix typo in ThreadedChildWatcher docs (GH-23277)

(cherry picked from commit 8836574a0f34ae81643c8af79bbb9062e332a4e3)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
4 years agobpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271)
Miss Islington (bot) [Fri, 13 Nov 2020 22:47:27 +0000 (14:47 -0800)] 
bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271)

(cherry picked from commit 9b6934230c35e24d8582ea8c58456fa8eab72ae2)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) (GH-23270)
Miss Islington (bot) [Fri, 13 Nov 2020 18:19:05 +0000 (10:19 -0800)] 
bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) (GH-23270)

(cherry picked from commit bbeb2d266d6fc1ca9778726d0397d9d6f7a946e3)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
4 years ago[3.9] bpo-42042: Use ids attribute instead of names attribute (GH-22739) (GH-23265)
Dong-hee Na [Fri, 13 Nov 2020 15:45:02 +0000 (00:45 +0900)] 
[3.9] bpo-42042: Use ids attribute instead of names attribute (GH-22739) (GH-23265)

(cherry picked from commit 09490a109faaee9cc393b52742a8575c116c56ba)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years agobpo-41617: Add _Py__has_builtin() macro (GH-23260) (GH-23262)
Victor Stinner [Fri, 13 Nov 2020 15:38:06 +0000 (16:38 +0100)] 
bpo-41617: Add _Py__has_builtin() macro (GH-23260) (GH-23262)

Fix building pycore_bitutils.h internal header on old clang version
without __builtin_bswap16() (ex: Xcode 4.6.3 on Mac OS X 10.7).

Add a new private _Py__has_builtin() macro to check for availability
of a preprocessor builtin function.

Co-Authored-By: Joshua Root <jmr@macports.org>
Co-authored-by: Joshua Root <jmr@macports.org>
(cherry picked from commit b3b98082c5431e77c64cab2c85525a804436b505)

4 years agobpo-42296: On Windows, fix CTRL+C regression (GH-23257)
Miss Islington (bot) [Fri, 13 Nov 2020 14:11:38 +0000 (06:11 -0800)] 
bpo-42296: On Windows, fix CTRL+C regression (GH-23257)

On Windows, fix a regression in signal handling which prevented to
interrupt a program using CTRL+C. The signal handler can be run in a
thread different than the Python thread, in which case the test
deciding if the thread can handle signals is wrong.

On Windows, _PyEval_SignalReceived() now always sets eval_breaker to
1 since it cannot test _Py_ThreadCanHandleSignals(), and
  eval_frame_handle_pending() always calls
  _Py_ThreadCanHandleSignals() to recompute eval_breaker.
(cherry picked from commit d96a7a83133250377219227b5cfab4dbdddc5d3a)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years ago[3.9] bpo-42086: Document AST operator nodes acts as a singleton (GH-22896) (GH-22897)
Miss Islington (bot) [Fri, 13 Nov 2020 09:05:41 +0000 (01:05 -0800)] 
[3.9] bpo-42086: Document AST operator nodes acts as a singleton (GH-22896) (GH-22897)

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

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
5 years agobpo-42237: Fix os.sendfile() on illumos (GH-23154)
Miss Islington (bot) [Thu, 12 Nov 2020 10:14:03 +0000 (02:14 -0800)] 
bpo-42237: Fix os.sendfile() on illumos (GH-23154)

(cherry picked from commit fd4ed57674c675e05bd5d577dd5047a333c76c78)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
5 years agobpo-42140: Improve asyncio.wait function (GH-22938)
Miss Islington (bot) [Tue, 10 Nov 2020 23:10:57 +0000 (15:10 -0800)] 
bpo-42140: Improve asyncio.wait function (GH-22938)

GH- Improve asyncio.wait function

The original code creates the futures set two times.
We can create this set before, avoiding the second creation.

This new behaviour [breaks the aiokafka library](https://github.com/aio-libs/aiokafka/pull/672), because it gives an iterator to that function, so the second iteration become empty.

Automerge-Triggered-By: GH:1st1
(cherry picked from commit 7e5ef0a5713f968f6e942566c78bf57ffbef01de)

Co-authored-by: Diogo Dutra <diogodutradamata@gmail.com>
5 years ago[3.9] bpo-4bpo-42314: Fix the documentation for venv --upgrade-deps (GH-22113) (GH...
Zackery Spytz [Tue, 10 Nov 2020 23:06:34 +0000 (16:06 -0700)] 
[3.9] bpo-4bpo-42314: Fix the documentation for venv --upgrade-deps (GH-22113) (GH-23232)

It was added in 3.9, not 3.8.

5 years agobpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)
Miss Islington (bot) [Tue, 10 Nov 2020 16:29:35 +0000 (08:29 -0800)] 
bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)

The onerror is supposed to be called with failed function, but in this case lstat is wrongly used instead of open.

Not sure if this needs bug or not...

Automerge-Triggered-By: GH:hynek
(cherry picked from commit e59b2deffde61e5641cabd65034fa11b4db898ba)

Co-authored-by: Michal Čihař <michal@cihar.com>
5 years agobpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)
Miss Islington (bot) [Tue, 10 Nov 2020 14:20:52 +0000 (06:20 -0800)] 
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)

The overflow occurs under some circumstances when a task or future
recursively returns itself.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit 42d873c63aa9d160c132be4a34599531574db12c)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years agoFix typo in unicodeobject.c (GH-23180)
Miss Islington (bot) [Tue, 10 Nov 2020 06:18:34 +0000 (22:18 -0800)] 
Fix typo in unicodeobject.c (GH-23180)

exeeds -> exceeds

Automerge-Triggered-By: GH:Mariatta
(cherry picked from commit 38811d68caf9b782ea7168479acb09557e126efe)

Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
5 years agobpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075)
Miss Islington (bot) [Sun, 8 Nov 2020 10:07:44 +0000 (02:07 -0800)] 
bpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075)

It is not clear why this can happen, but several users have mentioned
getting this exception on macOS.
(cherry picked from commit 23831a7a90956e38b7d70304bb6afe30d37936de)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
5 years agoMinor wording change in concurrent.futures. (GH-23194)
Miss Islington (bot) [Sun, 8 Nov 2020 09:45:45 +0000 (01:45 -0800)] 
Minor wording change in concurrent.futures. (GH-23194)

Fixes a grammar problem by adding a missing "as", and clarifies the wording of the valid ranges for max_workers.
(cherry picked from commit fd6f6fa403789c8877b1099cc6fcc437d2e54634)

Co-authored-by: Don Kirkby <donkirkby@users.noreply.github.com>
5 years agobpo-42233: Correctly repr GenericAlias when used with typing module (GH-23081)
Miss Islington (bot) [Sat, 7 Nov 2020 16:46:08 +0000 (08:46 -0800)] 
bpo-42233: Correctly repr GenericAlias when used with typing module (GH-23081)

Noticed by @serhiy-storchaka in the bpo.  `typing`'s types were not showing the parameterized generic.
Eg. previously:
```python
>>> typing.Union[dict[str, float], list[int]]
'typing.Union[dict, list]'
```
Now:
```python
>>> typing.Union[dict[str, float], list[int]]
'typing.Union[dict[str, float], list[int]]'
```

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit 1f7dfb277e5b88cddc13e5024766be787a3e9127)

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
5 years agoMinor grammar edits for the descriptor howto guide (GH-#23175) (GH-23186)
Raymond Hettinger [Sat, 7 Nov 2020 00:46:10 +0000 (16:46 -0800)] 
Minor grammar edits for the descriptor howto guide (GH-#23175) (GH-23186)

5 years agoRemove outdated reference to pywin32 from platform module (GH-22005)
Miss Islington (bot) [Fri, 6 Nov 2020 19:22:00 +0000 (11:22 -0800)] 
Remove outdated reference to pywin32 from platform module (GH-22005)

(cherry picked from commit 7c01f1540f958d4f52188b28afca721a9a6925c3)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-42179: Doc/tutorial: Remove mention of __cause__ (GH-23162)
Miss Islington (bot) [Fri, 6 Nov 2020 03:05:57 +0000 (19:05 -0800)] 
bpo-42179: Doc/tutorial: Remove mention of __cause__ (GH-23162)

(cherry picked from commit bde33e428d5b5f88ec7667598fd27d1091840537)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agoDisable peg generator tests when building with PGO (GH-23141)
Miss Islington (bot) [Wed, 4 Nov 2020 23:22:13 +0000 (15:22 -0800)] 
Disable peg generator tests when building with PGO (GH-23141)

Otherwise, when running the testsuite, test_peg_generator tries to compile C
code using the optimized flags and fails because it cannot find the profile
data.
(cherry picked from commit 100964e0310d3a2040d0db976f7984d0507b2dbd)

Co-authored-by: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
5 years agobpo-35455: Fix thread_time for Solaris OS (GH-11118) (GH-23130)
Miss Skeleton (bot) [Wed, 4 Nov 2020 13:16:28 +0000 (05:16 -0800)] 
bpo-35455: Fix thread_time for Solaris OS (GH-11118) (GH-23130)

(cherry picked from commit 9568622c9983b682b2a2a7bacfd3c341028ea099)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
5 years agoEnable signing of nuget.org packages and update to supported timestamp server (GH...
Miss Skeleton (bot) [Tue, 3 Nov 2020 22:52:41 +0000 (14:52 -0800)] 
Enable signing of nuget.org packages and update to supported timestamp server (GH-23132)

(cherry picked from commit db6434c474f7389a98b8118ca87fca988416bf33)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)
Miss Skeleton (bot) [Tue, 3 Nov 2020 21:32:59 +0000 (13:32 -0800)] 
bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)

(cherry picked from commit 212d32f45c91849c17a82750df1ac498d63976be)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-42180: fix plural in arguments and control (GH-23015) (GH-23114)
Miss Skeleton (bot) [Tue, 3 Nov 2020 01:08:38 +0000 (17:08 -0800)] 
bpo-42180: fix plural in arguments and control (GH-23015) (GH-23114)

https://bugs.python.org/issue42180
(cherry picked from commit b76a8400217827e604ebb543f45156f3caacd9a0)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
5 years agobpo-42103: Improve validation of Plist files. (GH-22882)
Miss Skeleton (bot) [Mon, 2 Nov 2020 21:34:46 +0000 (13:34 -0800)] 
bpo-42103: Improve validation of Plist files. (GH-22882)

* Prevent some possible DoS attacks via providing invalid Plist files
  with extremely large number of objects or collection sizes.
* Raise InvalidFileException for too large bytes and string size instead of returning garbage.
* Raise InvalidFileException instead of ValueError for specific invalid datetime (NaN).
* Raise InvalidFileException instead of TypeError for non-hashable dict keys.
* Add more tests for invalid Plist files.
(cherry picked from commit 34637a0ce21e7261b952fbd9d006474cc29b681f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-42224: Fix test_format when locale does not expect number grouping (GH-23067)
Lysandros Nikolaou [Mon, 2 Nov 2020 15:51:56 +0000 (17:51 +0200)] 
bpo-42224: Fix test_format when locale does not expect number grouping (GH-23067)

(cherry picked from commit 301822859b3fc34801a06f1090d62f9f2ee5b092)

5 years agobpo-42230: Improve asyncio documentation regarding accepting sets vs iterables (GH...
Miss Skeleton (bot) [Mon, 2 Nov 2020 11:19:45 +0000 (03:19 -0800)] 
bpo-42230: Improve asyncio documentation regarding accepting sets vs iterables (GH-23073)

People call wait() and as_completed() with various non-set iterables,
a list should be the most common but there are others as well[1].

Considering typeshed also documents wait()[2] and as_completed()[3]
as accepting arbitrary iterables I think it's a good idea to document
the status quo better.

[1] https://github.com/aio-libs/aiokafka/pull/672
[2] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyiGH-L161
[3] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyiGH-L40
(cherry picked from commit 3d86d090dcbbdfdd3e5a5951cab30612d6131222)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
5 years agoMinor formatting edits to the descriptor howto guide (GH-23092) (GH-23095)
Miss Skeleton (bot) [Mon, 2 Nov 2020 04:55:57 +0000 (20:55 -0800)] 
Minor formatting edits to the descriptor howto guide (GH-23092) (GH-23095)

5 years agobpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910)
Miss Skeleton (bot) [Mon, 2 Nov 2020 04:49:39 +0000 (20:49 -0800)] 
bpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910)

They were occurring with both repeated 'force-calltip' invocations and by typing parentheses
 in expressions, strings, and comments in the argument code.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit da7bb7b4d769350c5fd03e6cfb16b23dc265ed72)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
5 years agoAdd member objects to the descriptor howto guide (GH-23084) (GH-23090)
Miss Skeleton (bot) [Mon, 2 Nov 2020 02:27:58 +0000 (18:27 -0800)] 
Add member objects to the descriptor howto guide (GH-23084) (GH-23090)

5 years agoExpand and clarify the "Invoking Descriptors" section of the Descriptor HowTo (GH...
Miss Skeleton (bot) [Sun, 1 Nov 2020 18:09:46 +0000 (10:09 -0800)] 
Expand and clarify the "Invoking Descriptors" section of the Descriptor HowTo (GH-23078) (GH-23080)

5 years agobpo-37483: Add PyObject_CallOneArg() in the What's New in Python 3.9 (GH-23062)
Miss Skeleton (bot) [Sun, 1 Nov 2020 13:27:01 +0000 (05:27 -0800)] 
bpo-37483: Add PyObject_CallOneArg() in the What's New in Python 3.9 (GH-23062)

(cherry picked from commit 7feb54a6348f6220b27986777786c812f110b53d)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
5 years ago[3.9] bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings. (GH-23059...
Miss Skeleton (bot) [Sun, 1 Nov 2020 09:39:26 +0000 (01:39 -0800)] 
[3.9] bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings. (GH-23059) (GH-23071)

[[bpo-29566]()]() notes that binhex.binhex uses inconsistent line endings (both Unix and MacOS9 line endings are used). This PR changes this to use the MacOS9 line endings everywhere.
(cherry picked from commit 2165cea548f961b308050f30d1f042a377651d44)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Automerge-Triggered-By: GH:ronaldoussoren
5 years ago[3.9] bpo-42218: Correctly handle errors in left-recursive rules (GH-23065) (GH-23066)
Lysandros Nikolaou [Sat, 31 Oct 2020 19:06:03 +0000 (21:06 +0200)] 
[3.9] bpo-42218: Correctly handle errors in left-recursive rules (GH-23065) (GH-23066)

Left-recursive rules need to check for errors explicitly, since
even if the rule returns NULL, the parsing might continue and lead
to long-distance failures.

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 02cdfc93f82fecdb7eae97a868d4ee222b9875d9)

Automerge-Triggered-By: GH:lysnikolaou
5 years ago[3.9] bpo-42198: Document __new__ for types.GenericAlias (GH-23039) (GH-23061)
kj [Sat, 31 Oct 2020 15:05:36 +0000 (23:05 +0800)] 
[3.9] bpo-42198: Document __new__ for types.GenericAlias (GH-23039) (GH-23061)

(cherry picked from commit bcbf758476c1148993ddf4b54d3f6169b973ee1c)

5 years ago[3.9] bpo-42214: Fix check for NOTEQUAL token in the PEG parser for the barry_as_fluf...
Pablo Galindo [Sat, 31 Oct 2020 00:40:42 +0000 (00:40 +0000)] 
[3.9] bpo-42214: Fix check for NOTEQUAL token in the PEG parser for the barry_as_flufl rule (GH-23048) (GH-23051)

(cherry picked from commit 06f8c3328dcd81c84d1ee2b3a57b5381dcb38482)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago bpo-42208: GitHub Action: Add gdb to posix dependencies (GH-23043) (GH-23047)
Miss Skeleton (bot) [Fri, 30 Oct 2020 22:16:17 +0000 (15:16 -0700)] 
 bpo-42208: GitHub Action: Add gdb to posix dependencies (GH-23043) (GH-23047)

Sort also dependencies and remove duplicates (liblzma-dev).
(cherry picked from commit 6e03c0ad156797cd6e9132e895d55dac0344d340)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-42198: Link to GenericAlias in typing and expressions (GH-23030)
Miss Skeleton (bot) [Fri, 30 Oct 2020 04:23:33 +0000 (21:23 -0700)] 
bpo-42198: Link to GenericAlias in typing and expressions (GH-23030)

Follow up to 7cdf30fff39ea97f403b5472096349998d190e30 and 4173320920706b49a004bdddd8d7108e8984e3fc. This addresses the point "1. Update links in typing, subscription and union to point to GenericAlias." in the bpo for this PR.
(cherry picked from commit 9129af6050b747f288baa9d4e7d43031647ed222)

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
5 years agobpo-42061: Document __format__ for IP addresses (GH-23018)
Miss Skeleton (bot) [Thu, 29 Oct 2020 22:38:12 +0000 (15:38 -0700)] 
bpo-42061: Document __format__ for IP addresses (GH-23018)

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 3317466061509c83dce257caab3661d52571cab1)

Co-authored-by: Teugea Ioan-Teodor <teodor.teugea@gmail.com>
5 years agobpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func...
Miss Skeleton (bot) [Thu, 29 Oct 2020 11:02:50 +0000 (04:02 -0700)] 
bpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func object (GH-22953) (GH-23021)

func_dealloc() does not handle partially-created objects. Best not to give it any.
(cherry picked from commit 350526105fa9b131d8b941ae753378b741dabb2f)

Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
5 years ago[3.9] bpo-41805: Documentation for PEP 585 (GH-22615) (GH-23016)
kj [Wed, 28 Oct 2020 15:33:36 +0000 (23:33 +0800)] 
[3.9] bpo-41805: Documentation for PEP 585 (GH-22615) (GH-23016)

Backport of #22615 to 3.9 since that couldn't be auto-merged due to conflicts.

5 years ago[3.9] bpo-42123: Run the parser two times and only enable invalid rules on the second...
Lysandros Nikolaou [Wed, 28 Oct 2020 00:14:15 +0000 (02:14 +0200)] 
[3.9] bpo-42123: Run the parser two times and only enable invalid rules on the second run (GH-22111) (GH-23011)

* Implement running the parser a second time for the errors messages

The first parser run is only responsible for detecting whether
there is a `SyntaxError` or not. If there isn't the AST gets returned.
Otherwise, the parser is run a second time with all the `invalid_*`
rules enabled so that all the customized error messages get produced.

(cherry picked from commit bca701403253379409dece03053dbd739c0bd059)

5 years ago[3.9] bpo-41659: Disallow curly brace directly after primary (GH-22996) (#23006)
Lysandros Nikolaou [Tue, 27 Oct 2020 22:38:42 +0000 (00:38 +0200)] 
[3.9] bpo-41659: Disallow curly brace directly after primary (GH-22996) (#23006)

(cherry picked from commit 15acc4eaba8519d7d5f2acaffde65446b44dcf79)

5 years ago[3.9] Remove git conflict lines from test_parse_directory in peg_generator (GH-23007)
Lysandros Nikolaou [Tue, 27 Oct 2020 22:37:36 +0000 (00:37 +0200)] 
[3.9] Remove git conflict lines from test_parse_directory in peg_generator (GH-23007)

5 years agobpo-6761: Enhance __call__ documentation (GH-7987)
Miss Skeleton (bot) [Tue, 27 Oct 2020 16:42:36 +0000 (09:42 -0700)] 
bpo-6761: Enhance __call__ documentation (GH-7987)

(cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-41474, Makefile: Add dependency on cpython/frameobject.h (GH-22999)
Miss Skeleton (bot) [Tue, 27 Oct 2020 04:01:51 +0000 (21:01 -0700)] 
bpo-41474, Makefile: Add dependency on cpython/frameobject.h (GH-22999)

Co-Authored-By: Skip Montanaro <skip.montanaro@gmail.com>
(cherry picked from commit a6879d9445f98833c4e300e187956e2a218a2315)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agoAdd a link to buffer protocol in bytearray() doc (GH-22675)
Miss Skeleton (bot) [Mon, 26 Oct 2020 05:59:46 +0000 (22:59 -0700)] 
Add a link to buffer protocol in bytearray() doc (GH-22675)

(cherry picked from commit 0f25c231b3a024e358c3e55d9aba2f7bcc49630c)

Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
5 years agoAdded some makefile generated files to .gitignore (GH-22435)
Miss Skeleton (bot) [Mon, 26 Oct 2020 05:50:11 +0000 (22:50 -0700)] 
Added some makefile generated files to .gitignore (GH-22435)

(cherry picked from commit 96a9eed2457c05af6953890d89463704c9d99c57)

Co-authored-by: Marco Sulla <github@marco.sulla.e4ward.com>
5 years ago[3.9] bpo-42146: Fix memory leak in subprocess.Popen() in case of uid/gid overflow...
Miss Skeleton (bot) [Mon, 26 Oct 2020 00:34:29 +0000 (17:34 -0700)] 
[3.9] bpo-42146: Fix memory leak in subprocess.Popen() in case of uid/gid overflow (GH-22966) (GH-22980)

Fix memory leak in subprocess.Popen() in case of uid/gid overflow

Also add a test that would catch this leak with `--huntrleaks`.

Alas, the test for `extra_groups` also exposes an inconsistency
in our error reporting: we use a custom ValueError for `extra_groups`,
but propagate OverflowError for `user` and `group`.
(cherry picked from commit c0590c0033e86f98cdf5f2ca6898656f98ab4053)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Automerge-Triggered-By: GH:gpshead
5 years agobpo-42150: Avoid buffer overflow in the new parser (GH-22978)
Miss Skeleton (bot) [Sun, 25 Oct 2020 23:24:56 +0000 (16:24 -0700)] 
bpo-42150: Avoid buffer overflow in the new parser (GH-22978)

(cherry picked from commit e68c67805e6a4c4ec80bea64be0e8373cc02d322)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)
Miss Skeleton (bot) [Sun, 25 Oct 2020 18:23:09 +0000 (11:23 -0700)] 
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)

(cherry picked from commit c32f2976b8f4034724c3270397aa16f38daf470f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years ago[3.9] bpo-41052: Fix pickling heap types implemented in C with protocols 0 and 1...
Serhiy Storchaka [Sun, 25 Oct 2020 15:56:17 +0000 (17:56 +0200)] 
[3.9] bpo-41052: Fix pickling heap types implemented in C with protocols 0 and 1 (GH-22870). (GH-22963)

(cherry picked from commit 8cd1dbae32d9303caac3a473d3332f17bc98c921)

5 years agobpo-39108: Document threading issues for random.gauss() (GH-22928) (GH-22972)
Miss Skeleton (bot) [Sun, 25 Oct 2020 15:48:38 +0000 (08:48 -0700)] 
bpo-39108: Document threading issues for random.gauss() (GH-22928) (GH-22972)

5 years agoSplit-out a fourth section in the descriptor HowTo guide (GH-22965) (GH-22969)
Miss Skeleton (bot) [Sun, 25 Oct 2020 14:35:56 +0000 (07:35 -0700)] 
Split-out a fourth section in the descriptor HowTo guide (GH-22965) (GH-22969)

5 years agoSecond round of updates to the descriptor howto guide (GH-22946) (GH-22958)
Miss Skeleton (bot) [Sun, 25 Oct 2020 03:39:15 +0000 (20:39 -0700)] 
Second round of updates to the descriptor howto guide (GH-22946) (GH-22958)

5 years agobpo-33987: Add master ttk Frame to IDLE search dialogs (GH-22942)
Miss Skeleton (bot) [Sun, 25 Oct 2020 03:36:55 +0000 (20:36 -0700)] 
bpo-33987: Add master ttk Frame to IDLE search dialogs (GH-22942)

(cherry picked from commit 5df6c99cb450fe2f30be681dbf68cd1d34d3bbe4)

Co-authored-by: Mark Roseman <mark@markroseman.com>
5 years agobpo-29981: Add examples and update index for set, dict, and generator comprehensions...
Miss Skeleton (bot) [Sun, 25 Oct 2020 02:53:41 +0000 (19:53 -0700)] 
bpo-29981: Add examples and update index for set, dict, and generator comprehensions'(GH-20272)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
(cherry picked from commit 2d55aa9e37c9c84f4f6a8135d0326da0bcd8f38b)

Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
5 years agobpo-42127: Document effect of cached_property on key-sharing dictionaries (GH-22930...
Miss Skeleton (bot) [Sun, 25 Oct 2020 02:00:14 +0000 (19:00 -0700)] 
bpo-42127:  Document effect of cached_property on key-sharing dictionaries (GH-22930) (GH-22955)

5 years agobpo-33987: Use master ttk Frame for IDLE config dialog (GH-22943)
Miss Skeleton (bot) [Sun, 25 Oct 2020 01:08:17 +0000 (18:08 -0700)] 
bpo-33987: Use master ttk Frame for IDLE config dialog (GH-22943)

(cherry picked from commit c579ad14d3b5bb9a45d7b9cc708eaf0bf4884c50)

Co-authored-by: Mark Roseman <mark@markroseman.com>
5 years ago[doc] Fix link to abc.ABCMeta.register in Glossary (GH-22932)
Miss Skeleton (bot) [Sun, 25 Oct 2020 00:33:01 +0000 (17:33 -0700)] 
[doc] Fix link to abc.ABCMeta.register in Glossary (GH-22932)

(cherry picked from commit e01e442125bbc98e6dab66f38ecc6c45f69e6587)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-33987: Use ttk Label on IDLE statusbar (GH-22941)
Miss Skeleton (bot) [Sat, 24 Oct 2020 23:53:34 +0000 (16:53 -0700)] 
bpo-33987: Use ttk Label on IDLE statusbar (GH-22941)

(cherry picked from commit e53e54425d9b7b9b7b082817da104d60bb25e3a2)

Co-authored-by: Mark Roseman <mark@markroseman.com>