]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agoFix the link to ncurses patch download in macos installer build script (GH-20421)
Miss Islington (bot) [Wed, 27 May 2020 10:28:45 +0000 (03:28 -0700)] 
Fix the link to ncurses patch download in macos installer build script (GH-20421)

Reason: the link `ftp://invisible-island.net/ncurses//5.9/ncurses-5.9-20120616-patch.sh.bz2` is dead, which prevents `Mac/BuildScript/build-installer.py` from completing. Looks like the host of the FTP server was changed to `ftp.invisible-island.net`, thus this proposal.

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
(cherry picked from commit 7da46b676aed7111de34b57c8b942a7f3bb80327)

Co-authored-by: Oleg Höfling <hoefling@users.noreply.github.com>
5 years agobpo-39244: multiprocessing return default start method first on macOS (GH-18625)
Miss Islington (bot) [Tue, 26 May 2020 15:13:59 +0000 (08:13 -0700)] 
bpo-39244: multiprocessing return default start method first on macOS (GH-18625)

(cherry picked from commit db098bc1f05bd0773943e59f83489f05f28dedf8)

Co-authored-by: idomic <michael.ido@gmail.com>
5 years ago[3.8] bpo-38580: Document that select() accepts iterables, not just sequences (GH...
Tal Einat [Tue, 26 May 2020 12:59:32 +0000 (15:59 +0300)] 
[3.8] bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832)

(cherry picked from commit 372ee27d4958302dac7ad6a8711f6fd04771b2e6)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
5 years ago[3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)
Zackery Spytz [Tue, 26 May 2020 08:57:09 +0000 (02:57 -0600)] 
[3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)

struct.error is now raised if there is a null character in a struct
format string.
(cherry picked from commit 3f59b55316f4c6ab451997902579aa69020b537c)

5 years agobpo-39301: State that floor division is used for right shift operations (GH-20347...
Miss Islington (bot) [Tue, 26 May 2020 08:33:42 +0000 (01:33 -0700)] 
bpo-39301: State that floor division is used for right shift operations (GH-20347) (GH-20415)

* bpo-39301: State that floor division is used for right shift operations

* Remove "without overflow check"
(cherry picked from commit af7553ac95a96713be847dd45bc5a8aeb0a75955)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-39830: Add zipfile.Path to __all__ (GH-19115) (GH-19116)
Miss Islington (bot) [Tue, 26 May 2020 06:44:57 +0000 (23:44 -0700)] 
bpo-39830: Add zipfile.Path to __all__ (GH-19115) (GH-19116)

(cherry picked from commit 9a81ab107a54b8ca320fb703f7c68e14ccd9d016)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-40745: Fix typos in NewType docs (GH-20379)
Miss Islington (bot) [Tue, 26 May 2020 04:52:55 +0000 (21:52 -0700)] 
bpo-40745: Fix typos in NewType docs (GH-20379)

(cherry picked from commit 2b0e654f91f28379c6c7ef5fd80e8754afb70935)

Co-authored-by: ziheng <zihenglv@gmail.com>
5 years agocloses bpo-40774: Fix docs indentation for asyncio.create_subprocess_shell() (GH...
Miss Islington (bot) [Tue, 26 May 2020 04:15:52 +0000 (21:15 -0700)] 
closes bpo-40774: Fix docs indentation for asyncio.create_subprocess_shell() (GH-20403)

(cherry picked from commit 4a0ac42c52a4d9ccfb0a78ab02aa03172ce0e31a)

Co-authored-by: sth <sth.dev@tejp.de>
5 years agobpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)
Miss Islington (bot) [Mon, 25 May 2020 15:11:39 +0000 (08:11 -0700)] 
bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)

(cherry picked from commit ef16958d17e83723334a51428f410f726d6492a7)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 years agobpo-36290: Fix keytword collision handling in AST node constructors (GH-12382)
Miss Islington (bot) [Sun, 24 May 2020 21:31:47 +0000 (14:31 -0700)] 
bpo-36290: Fix keytword collision handling in AST node constructors (GH-12382)

(cherry picked from commit c73914a562580ae72048876cb42ed8e76e2c83f9)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
5 years ago[3.8] bpo-37309: Update IDLE NEWS.txt for 3.8.4 (GH-20355)
Terry Jan Reedy [Sun, 24 May 2020 13:57:29 +0000 (09:57 -0400)] 
[3.8] bpo-37309: Update IDLE NEWS.txt for 3.8.4 (GH-20355)

5 years agobpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)
Miss Islington (bot) [Sun, 24 May 2020 11:08:04 +0000 (04:08 -0700)] 
bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)

This was the only failure running unittest.main(test.test_idle) after imports.
(cherry picked from commit 905b3cd05f8d2c29e1605d109900e3e9d07af4d3)

Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
5 years agobpo-40405: Fix asyncio.as_completed docs (GH-19753)
Miss Islington (bot) [Sat, 23 May 2020 23:24:03 +0000 (16:24 -0700)] 
bpo-40405: Fix asyncio.as_completed docs (GH-19753)

* Fix as_completed docs to correctly state the function return value.
* Also, improves the general wording of the as_completed documentation.

Co-Authored-By: Rémi Lapeyre <remi.lapeyre@henki.fr>
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
Co-Authored-By: Yury Selivanov <yury@edgedb.com>
(cherry picked from commit 13206b52d16c2489f4c7dd2dce2a7f48a554b5ed)

Co-authored-by: Bar Harel <bzvi7919@gmail.com>
5 years agobpo-40439: Update broken link in lexical analysis docs (GH-20184)
Miss Islington (bot) [Sat, 23 May 2020 01:20:01 +0000 (18:20 -0700)] 
bpo-40439: Update broken link in lexical analysis docs (GH-20184)

Automerge-Triggered-By: @csabella
(cherry picked from commit af23f0d3cf19343512e6ca1fe1d46a5dbe425719)

Co-authored-by: Matteo Bertucci <matteobertucci2004@gmail.com>
5 years ago[3.8] bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH...
Batuhan Taskaya [Fri, 22 May 2020 22:32:40 +0000 (01:32 +0300)] 
[3.8] bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156). (GH-20191)

(cherry picked from commit 2135e10dc717c00d10d899d232bebfc59bb25032)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
5 years agobpo-40214: Fix ctypes WinDLL test with insecure flags (GH-19652)
Miss Islington (bot) [Fri, 22 May 2020 22:24:45 +0000 (15:24 -0700)] 
bpo-40214: Fix ctypes WinDLL test with insecure flags (GH-19652)

(cherry picked from commit 9b498939009f49b8c772c89e8fc80efbfd8afcb5)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-40327: Improve atomicity, speed, and memory efficiency of the items() loop (GH...
Miss Islington (bot) [Fri, 22 May 2020 22:22:51 +0000 (15:22 -0700)] 
bpo-40327: Improve atomicity, speed, and memory efficiency of the items() loop (GH-19628)

(cherry picked from commit 75bedbe2ed4119ff18a2ea86c544b3cf08a92e75)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
5 years agoReword aware/naive introduction sentence (GH-20175)
Miss Islington (bot) [Fri, 22 May 2020 21:43:51 +0000 (14:43 -0700)] 
Reword aware/naive introduction sentence (GH-20175)

This is more informative and avoids the question of whether the period should go inside or outside the quotation marks.

See also GH-20007.
(cherry picked from commit 2e76820a50b8ce2a9a5f6cdef6cef1859a89c460)

Co-authored-by: Mathieu Dupuy <mathieu.dupuy@doctolib.com>
5 years ago[doc] Remove references to obsolete BuildApplet on macOS. (GH-20023)
Miss Islington (bot) [Thu, 21 May 2020 23:34:46 +0000 (16:34 -0700)] 
[doc] Remove references to obsolete BuildApplet on macOS. (GH-20023)

(cherry picked from commit 7864f11cdf12807555d62c7a132c191eb41ecc02)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-40651: Improve LRU recipe in the OrderedDict documentation (GH-GH-20139) (GH...
Miss Islington (bot) [Thu, 21 May 2020 04:21:02 +0000 (21:21 -0700)] 
bpo-40651: Improve LRU recipe in the OrderedDict documentation  (GH-GH-20139) (GH-20167)

5 years agos/wakup/wakeup (GH-20250)
Miss Islington (bot) [Wed, 20 May 2020 17:58:55 +0000 (10:58 -0700)] 
s/wakup/wakeup (GH-20250)

(as title)

Automerge-Triggered-By: @Mariatta
(cherry picked from commit f2947e354c95d246b1836ac78d4c820c420e259b)

Co-authored-by: Kunal Bhalla <bhalla.kunal@gmail.com>
5 years agoUse v2 of GitHub Actions where available (GH-20232)
Miss Islington (bot) [Wed, 20 May 2020 16:59:40 +0000 (09:59 -0700)] 
Use v2 of GitHub Actions where available (GH-20232)

Automerge-Triggered-By: @Mariatta
(cherry picked from commit 7fbe65dbc42985d002d9538fe9a9887e6e6af66c)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
5 years agobpo-39631: Adds NEWS entry (GH-20227)
Miss Islington (bot) [Tue, 19 May 2020 22:19:26 +0000 (15:19 -0700)] 
bpo-39631: Adds NEWS entry (GH-20227)

(cherry picked from commit 92327a9913150f5bb55b2727a2c5d50f9b7b6e55)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-39631: Fix file association MIME type in the Windows installer (GH-20205)
Miss Islington (bot) [Tue, 19 May 2020 12:42:52 +0000 (05:42 -0700)] 
bpo-39631: Fix file association MIME type in the Windows installer (GH-20205)

Use text/x-python instead of text/plain to avoid issues with tools assuming that "ShellExecute(script)" is a non-executable operation.
(cherry picked from commit 8c862e51248c5ebfec787badec88eb58c9267e1e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)
Miss Islington (bot) [Tue, 19 May 2020 12:39:06 +0000 (05:39 -0700)] 
bpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)

This allows building with older versions of the Windows SDK where the value is not defined.
(cherry picked from commit 711f9e180a48baba62301735b7f1a58ef0d0e93a)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
5 years agoDoc: Python 3.10 in sidebar and version switcher. (GH-20209)
Miss Islington (bot) [Tue, 19 May 2020 12:34:01 +0000 (05:34 -0700)] 
Doc: Python 3.10 in sidebar and version switcher. (GH-20209)

(cherry picked from commit 19e3e0026417caa92ffe21a67157363b45da9aa2)

Co-authored-by: Julien Palard <julien@palard.fr>
5 years agobpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)
Miss Islington (bot) [Tue, 19 May 2020 09:27:49 +0000 (02:27 -0700)] 
bpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)

(cherry picked from commit 46545000c2a30b46aed717b546bc09e5bae7148f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974)
Miss Islington (bot) [Mon, 18 May 2020 17:09:59 +0000 (10:09 -0700)] 
bpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974)

(cherry picked from commit 98e42d1f882b9b59f587d538c562dbc7d11c64c3)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
5 years agobpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)
Miss Islington (bot) [Mon, 18 May 2020 16:42:14 +0000 (09:42 -0700)] 
bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)

(cherry picked from commit f660567937277cc3a2cd53af77bbb18e905427e8)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
5 years agobpo-40653: Move _dirnameW out of GH-ifdef HAVE_SYMLINK/GH-endif (GH-20144)
Miss Islington (bot) [Mon, 18 May 2020 16:36:02 +0000 (09:36 -0700)] 
bpo-40653: Move _dirnameW out of GH-ifdef HAVE_SYMLINK/GH-endif (GH-20144)

(cherry picked from commit 7f21c9ac872acc2114aee3313d132b016550ff42)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
5 years agobpo-40548: Github Actions: update actions/checkout to v2 (GH-20164)
Miss Islington (bot) [Mon, 18 May 2020 14:07:49 +0000 (07:07 -0700)] 
bpo-40548: Github Actions: update actions/checkout to v2 (GH-20164)

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

Co-authored-by: Filipe Laíns <lains@archlinux.org>
5 years agobpo-39148: enable ipv6 for datagrams in Proactor (GH-19121)
Miss Islington (bot) [Mon, 18 May 2020 06:42:25 +0000 (23:42 -0700)] 
bpo-39148: enable ipv6 for datagrams in Proactor (GH-19121)

Ifdef is not necessary, as AF_INET6 is supported from Windows Vista, and other code in overlapped.c uses AF_INET6 and is not ifdef'd.
Change the raised exception so users are not fooled to think it comes from Windows API.

Automerge-Triggered-By: @njsmith
(cherry picked from commit 442634c42fcaf31c636f693951a97734042c3e7b)

Co-authored-by: Kjell Braden <afflux@pentabarf.de>
5 years agobpo-40597: email: Use CTE if lines are longer than max_line_length consistently ...
Miss Islington (bot) [Mon, 18 May 2020 00:57:42 +0000 (17:57 -0700)] 
bpo-40597: email: Use CTE if lines are longer than max_line_length consistently (gh-20038) (gh-20084)

raw_data_manager (default for EmailPolicy, EmailMessage)
does correct wrapping of 'text' parts as long as the message contains
characters outside of 7bit US-ASCII set: base64 or qp
Content-Transfer-Encoding is applied if the lines would be too long
without it.  It did not, however, do this for ascii-only text,
which could result in lines that were longer than
policy.max_line_length or even the rfc 998  maximum.

This changeset fixes the heuristic so that if lines are longer than
policy.max_line_length, it will always apply a
content-transfer-encoding so that the lines are wrapped correctly.
(cherry picked from commit 6f2f475d5a2cd7675dce844f3af436ba919ef92b)

Co-authored-by: Arkadiusz Hiler <arek.l1@gmail.com>
5 years agoDoc: change 'Posix' for 'POSIX' (GH-20001)
Miss Islington (bot) [Sun, 17 May 2020 21:37:30 +0000 (14:37 -0700)] 
Doc: change 'Posix' for 'POSIX' (GH-20001)

(cherry picked from commit 65460565df99fbda6a74b6bb4bf99affaaf8bd95)

Co-authored-by: Mathieu Dupuy <mathieu.dupuy@doctolib.com>
5 years agoDoc: move a dot outside double quotes (GH-20007)
Miss Islington (bot) [Sun, 17 May 2020 21:32:43 +0000 (14:32 -0700)] 
Doc: move a dot outside double quotes (GH-20007)

(cherry picked from commit 4eba67783eb2084b2dad875ed1cbffdaf8a9202e)

Co-authored-by: Mathieu Dupuy <mathieu.dupuy@doctolib.com>
5 years agobpo-40457: Support OpenSSL without TLS 1.0/1.1 (GH-19862)
Miss Islington (bot) [Sat, 16 May 2020 08:33:42 +0000 (01:33 -0700)] 
bpo-40457: Support OpenSSL without TLS 1.0/1.1 (GH-19862)

OpenSSL can be build without support for TLS 1.0 and 1.1. The ssl module
now correctly adheres to OPENSSL_NO_TLS1 and OPENSSL_NO_TLS1_1 flags.

Also update multissltest to test with latest OpenSSL and LibreSSL
releases.

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

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-40636: Clarify the zip built-in docstring. (GH-20118)
Miss Islington (bot) [Fri, 15 May 2020 21:43:27 +0000 (14:43 -0700)] 
bpo-40636: Clarify the zip built-in docstring. (GH-20118)

Clarify the zip built-in docstring.

This puts much simpler text up front along with an example.

As it was, the zip built-in docstring was technically correct.  But too
technical for the reader who shouldn't _need_ to know about `__next__` and
`StopIteration` as most people do not need to understand the internal
implementation details of the iterator protocol in their daily life.

This is a documentation only change, intended to be backported to 3.8; it is
only tangentially related to PEP-618 which might offer new behavior options
in the future.

Wording based a bit more on enumerate per Brandt's suggestion.

This gets rid of the legacy wording paragraph which seems too tied to
implementation details of the iterator protocol which isn't relevant here.

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
(cherry picked from commit 6a5d3ff67644af42b1a781be2eacb2e82913441c)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 years agobpo-40163: Fix multissltest download of old OpenSSL (GH-19329)
Miss Islington (bot) [Fri, 15 May 2020 20:55:45 +0000 (13:55 -0700)] 
bpo-40163: Fix multissltest download of old OpenSSL (GH-19329)

(cherry picked from commit 938717fd04c53c717895a756d5910e8c8813706c)

Co-authored-by: Christian Heimes <christian@python.org>
5 years ago[3.8] bpo-40515: Require OPENSSL_THREADS (GH-19953) (GH-20119)
Christian Heimes [Fri, 15 May 2020 20:36:51 +0000 (22:36 +0200)] 
[3.8] bpo-40515: Require OPENSSL_THREADS (GH-19953) (GH-20119)

5 years agobpo-40479: Test with latest OpenSSL versions (GH-20108)
Miss Islington (bot) [Fri, 15 May 2020 17:10:15 +0000 (10:10 -0700)] 
bpo-40479: Test with latest OpenSSL versions (GH-20108)

* 1.0.2u (EOL)
* 1.1.0l (EOL)
* 1.1.1g
* 3.0.0-alpha2 (disabled for now)

Build the FIPS provider and create a FIPS configuration file for OpenSSL
3.0.0.

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

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-40055: test_distutils leaves warnings filters unchanged (GH-20095)
Miss Islington (bot) [Fri, 15 May 2020 16:25:00 +0000 (09:25 -0700)] 
bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095)

distutils.tests now saves/restores warnings filters to leave them
unchanged. Importing tests imports docutils which imports
pkg_resources which adds a warnings filter.
(cherry picked from commit 6e57237faf0da8904e0130a11350cae3c5062b82)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.8] bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-20100)
Victor Stinner [Fri, 15 May 2020 03:27:48 +0000 (05:27 +0200)] 
[3.8] bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-20100)

* bpo-40548: Always run GitHub action, even on doc PRs (GH-19981)

Always run GitHub action jobs, even on documentation-only pull
requests. So it will be possible to make a GitHub action job, like
the Windows (64-bit) job, mandatory.

(cherry picked from commit 4e363761fc02a89d53aba4382dc451293bd6f0ba)

* bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-19983)

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

* bpo-40548: github actions: pass the changes check on no source changes (GH-20097)

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

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
Co-authored-by: Filipe Laíns <lains@archlinux.org>
5 years agobpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (GH-20098)
Miss Islington (bot) [Fri, 15 May 2020 01:38:17 +0000 (18:38 -0700)] 
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (GH-20098)

* Document exec symbol for codeop.compile_command

* Remove extra statements

Co-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com>
(cherry picked from commit 7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
5 years agoPost 3.8.3
Łukasz Langa [Wed, 13 May 2020 21:42:31 +0000 (23:42 +0200)] 
Post 3.8.3

5 years agoPython 3.8.3 v3.8.3
Łukasz Langa [Wed, 13 May 2020 17:31:54 +0000 (19:31 +0200)] 
Python 3.8.3

5 years agobpo-40561: Add docstrings for webbrowser open functions (GH-19999)
Miss Islington (bot) [Mon, 11 May 2020 19:09:10 +0000 (12:09 -0700)] 
bpo-40561: Add docstrings for webbrowser open functions (GH-19999)

Co-authored-by: Brad Solomon <brsolomon@deloitte.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit ef7973a981ff8f4687ef3fdb85a69fa15aa11fe5)

Co-authored-by: Brad Solomon <brad.solomon.1124@gmail.com>
5 years agoMake the first dataclass example more useful (GH-19994) (GH-19997) 20004/head
Miss Islington (bot) [Fri, 8 May 2020 11:52:10 +0000 (04:52 -0700)] 
Make the first dataclass example more useful (GH-19994) (GH-19997)

(cherry picked from commit 2effef7453986bf43a6d921cd471a8bc0722c36a)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
5 years ago[3.8] bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990)
Miss Islington (bot) [Fri, 8 May 2020 11:28:38 +0000 (04:28 -0700)] 
[3.8] bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990)

This fixes a possible memory leak in the C implementation of
asyncio.Task.
(cherry picked from commit d2c349b190bcba21a4a38e6520a48ad97a9f1529)

Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
5 years agobpo-40527: Fix command line argument parsing (GH-19955)
Miss Islington (bot) [Wed, 6 May 2020 13:43:09 +0000 (06:43 -0700)] 
bpo-40527: Fix command line argument parsing (GH-19955)

(cherry picked from commit 2668a9a5aa506a048aef7b4881c8dcf6b81c6870)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.8] bpo-40417: Fix deprecation warning in PyImport_ReloadModule (GH-19750) (GH...
Robert Rouhani [Wed, 6 May 2020 00:32:14 +0000 (17:32 -0700)] 
[3.8] bpo-40417: Fix deprecation warning in PyImport_ReloadModule (GH-19750) (GH-19934)

Automerge-Triggered-By: @brettcannon.
(cherry picked from commit f40bd466bf14029e2687e36e965875adf9d4be1a)

Co-authored-by: Robert Rouhani <robert.rouhani@gmail.com>
5 years agobpo-40355: Improve error messages in ast.literal_eval with malformed Dict nodes ...
Miss Islington (bot) [Tue, 5 May 2020 20:00:57 +0000 (13:00 -0700)] 
bpo-40355: Improve error messages in ast.literal_eval with malformed Dict nodes (GH-19868)

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

Co-authored-by: Curtis Bucher <cpbucher5@gmail.com>
5 years agobpo-40458: Increase reserved stack space to prevent overflow crash on Windows (GH...
Miss Islington (bot) [Tue, 5 May 2020 18:03:21 +0000 (11:03 -0700)] 
bpo-40458: Increase reserved stack space to prevent overflow crash on Windows (GH-19845)

(cherry picked from commit ac4bf424119d1300f57929120968e216a85d3a25)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-40459: Fix NameError in platform.py (GH-19855)
Miss Islington (bot) [Tue, 5 May 2020 02:51:48 +0000 (19:51 -0700)] 
bpo-40459: Fix NameError in platform.py (GH-19855)

(cherry picked from commit 1e7e4519a8ddc2239101a0146d788c9161143a77)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
5 years agobpo-40135: Fix multiprocessing test_shared_memory_across_processes() (GH-19892)
Miss Islington (bot) [Mon, 4 May 2020 15:25:22 +0000 (08:25 -0700)] 
bpo-40135: Fix multiprocessing test_shared_memory_across_processes() (GH-19892)

Don't define shared memory block's name in test_shared_memory_across_processes():
use SharedMemory(create=True) instead.
(cherry picked from commit caa3ef284a2e5e5b9bdd6a9e619804122c842d80)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
5 years agoRemove outdated and confusing advice about setting maxsize (GH-19889) (GH-19890)
Miss Islington (bot) [Mon, 4 May 2020 00:16:36 +0000 (17:16 -0700)] 
Remove outdated and confusing advice about setting maxsize (GH-19889) (GH-19890)

5 years agoFix missing space in docs(GH-19866) (GH-19872)
Miss Islington (bot) [Sun, 3 May 2020 00:05:49 +0000 (17:05 -0700)] 
Fix missing space in docs(GH-19866) (GH-19872)

5 years agobpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10...
Miss Islington (bot) [Sat, 2 May 2020 16:29:51 +0000 (09:29 -0700)] 
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10 (GH-19752)

(cherry picked from commit 766352320fd736e2c8ed545b4cc57563f61a0b9d)

Co-authored-by: Sander <svr003@gmail.com>
5 years ago[3.8] bpo-40398: Fix typing.get_args() for special generic aliases. (GH-19720) (GH...
Serhiy Storchaka [Sat, 2 May 2020 08:08:00 +0000 (11:08 +0300)] 
[3.8] bpo-40398: Fix typing.get_args() for special generic aliases. (GH-19720) (GH-19857)

(cherry picked from commit 6292be7adf247589bbf03524f8883cb4cb61f3e9)

5 years agobpo-40412: Nullify inittab_copy during finalization (GH-19746)
Miss Islington (bot) [Fri, 1 May 2020 23:06:23 +0000 (16:06 -0700)] 
bpo-40412: Nullify inittab_copy during finalization (GH-19746)

Otherwise we leave a dangling pointer to free'd memory. If we
then initialize a new interpreter in the same process and call
PyImport_ExtendInittab, we will (likely) crash when calling
PyMem_RawRealloc(inittab_copy, ...) since the pointer address
is bogus.

Automerge-Triggered-By: @brettcannon
(cherry picked from commit 64224a4727321a8dd33e6f769edda401193ebef0)

Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
5 years ago[3.8] bpo-39435: Fix docs for pickle.loads (GH-18160) (GH-19843)
Antoine Pitrou [Fri, 1 May 2020 19:54:44 +0000 (21:54 +0200)] 
[3.8] bpo-39435: Fix docs for pickle.loads (GH-18160) (GH-19843)

(cherry picked from commit 289842a)

Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
Automerge-Triggered-By: @pitrou
5 years agobpo-39691: Clarify io.open_code behavior (GH-19824)
Miss Islington (bot) [Fri, 1 May 2020 18:04:25 +0000 (11:04 -0700)] 
bpo-39691: Clarify io.open_code behavior (GH-19824)

(cherry picked from commit 831d58d7865cb98fa09227dc614f4f3ce6af968b)

Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
5 years agobpo-39562: Correctly updated the version section in the what's new document (GH-19838)
Pablo Galindo [Fri, 1 May 2020 15:36:51 +0000 (16:36 +0100)] 
bpo-39562: Correctly updated the version section in the what's new document (GH-19838)

5 years ago[3.8] bpo-39562: Prevent collision of future and compiler flags (GH-19230) (GH-19835)
Pablo Galindo [Fri, 1 May 2020 14:18:27 +0000 (15:18 +0100)] 
[3.8] bpo-39562: Prevent collision of future and compiler flags (GH-19230) (GH-19835)

The constant values of future flags in the __future__ module
is updated in order to prevent collision with compiler flags.
Previously PyCF_ALLOW_TOP_LEVEL_AWAIT was clashing
with CO_FUTURE_DIVISION..
(cherry picked from commit 4454057269b995341b04d13f0bf97f96080f27d0)

Co-authored-by: Batuhan Taşkaya <batuhanosmantaskaya@gmail.com>
5 years agobpo-40443: Remove unused imports in idlelib (GH-19801)
Miss Islington (bot) [Thu, 30 Apr 2020 01:47:50 +0000 (18:47 -0700)] 
bpo-40443: Remove unused imports in idlelib (GH-19801)

(cherry picked from commit 6900f16d2207ca4fc252fa9d778ca0b13a3c95e0)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agoPost 3.8.3rc1
Łukasz Langa [Wed, 29 Apr 2020 22:43:53 +0000 (00:43 +0200)] 
Post 3.8.3rc1

5 years agoPython 3.8.3rc1 v3.8.3rc1
Łukasz Langa [Wed, 29 Apr 2020 17:21:55 +0000 (19:21 +0200)] 
Python 3.8.3rc1

5 years agobpo-40436: Fix code parsing gdb version (GH-19792)
Miss Islington (bot) [Wed, 29 Apr 2020 15:30:01 +0000 (08:30 -0700)] 
bpo-40436: Fix code parsing gdb version (GH-19792)

test_gdb and test.pythoninfo now check gdb command exit code.
(cherry picked from commit ec9bea4a3766bd815148a27f61eb24e7dd459ac7)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.8] bpo-40431: Fix syntax typo in turtledemo (GH-19777) (#19784)
Kyle Stanley [Wed, 29 Apr 2020 03:11:18 +0000 (23:11 -0400)] 
[3.8] bpo-40431: Fix syntax typo in turtledemo (GH-19777) (#19784)

[3.8] bpo-40431: Fix syntax typo in turtledemo (GH-19777)

* Addresses a syntax typo that mistakenly used a undefined string prefix due to a missing space.

(cherry picked from commit 49f70db83e2c62ad06805927f53f6c3e8f4b798e)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 years agobpo-40348: Fix typos in the programming FAQ (GH-19729) 19747/head
Miss Islington (bot) [Mon, 27 Apr 2020 03:29:30 +0000 (20:29 -0700)] 
bpo-40348: Fix typos in the programming FAQ (GH-19729)

(cherry picked from commit caf1aadf3d020f742ba3d7fcf678ca700224914b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years ago[3.8] bpo-38387: Formally document PyDoc_STRVAR and PyDoc_STR macros (GH-16607) ...
Zachary Ware [Mon, 27 Apr 2020 02:45:05 +0000 (21:45 -0500)] 
[3.8] bpo-38387: Formally document PyDoc_STRVAR and PyDoc_STR macros (GH-16607) (GH-19727)

Adds a short description of `PyDoc_STRVAR` and `PyDoc_STR` to "Useful macros" section of C-API docs.

Currently, there is [one lone mention](https://docs.python.org/3/c-api/module.html?highlight=pydoc_strvarGH-c.PyModuleDef) in the C-API reference, despite the fact that `PyDoc_STRVAR` is ubiquitous to `Modules/`.

Additionally, this properly uses `c:macro` within `Doc/c-api/module.rst` to link.
(cherry picked from commit b54e46c)

Authored-by: Brad Solomon <brad.solomon.1124@gmail.com>
5 years agobpo-40387: Improve queue join() example. (GH-19724) (GH-19726)
Miss Islington (bot) [Mon, 27 Apr 2020 01:23:14 +0000 (18:23 -0700)] 
bpo-40387: Improve queue join() example. (GH-19724) (GH-19726)

5 years agobpo-40279: Add some error-handling to the module initialisation docs example (GH...
Miss Islington (bot) [Sat, 25 Apr 2020 05:45:48 +0000 (22:45 -0700)] 
bpo-40279: Add some error-handling to the module initialisation docs example (GH-19705) (GH-19710)

(cherry picked from commit d4f3923d5901ef1ccdbe6ad6c5a753af90832a0f)

Co-authored-by: Cajetan Rodrigues <caje731@gmail.com>
5 years agoExpand the implementation comments (GH-19699) (GH-19701)
Miss Islington (bot) [Fri, 24 Apr 2020 10:04:41 +0000 (03:04 -0700)] 
Expand the implementation comments (GH-19699) (GH-19701)

5 years agobpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691) (GH-19698)
Victor Stinner [Fri, 24 Apr 2020 01:07:20 +0000 (03:07 +0200)] 
bpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691) (GH-19698)

If _PyCode_InitOpcache() fails in _PyEval_EvalFrameDefault(), use
"goto exit_eval_frame;" rather than "return NULL;" to exit the
function in a consistent state. For example, tstate->frame is now
reset properly.

(cherry picked from commit 25104949a5a60ff86c10691e184ce2ecb500159b)

5 years agobpo-39983: Add test.support.print_warning() (GH-19683) (GH-19687)
Victor Stinner [Thu, 23 Apr 2020 21:55:07 +0000 (23:55 +0200)] 
bpo-39983: Add test.support.print_warning() (GH-19683) (GH-19687)

Log "Warning -- ..." test warnings into sys.__stderr__ rather than
sys.stderr, to ensure to display them even if sys.stderr is captured.

test.libregrtest.utils.print_warning() now calls
test.support.print_warning().

(cherry picked from commit d663d34685e18588748569468c672763f4c73b3e)

5 years agogdbinit: Use proper define syntax (GH-19557)
Miss Islington (bot) [Thu, 23 Apr 2020 12:55:29 +0000 (05:55 -0700)] 
gdbinit: Use proper define syntax (GH-19557)

Using `def` rather than `define` results in:

    Ambiguous command "def pu": define, define-prefix.

Automerge-Triggered-By: @csabella
(cherry picked from commit 1221135289306333d11db25ab20cbbd21ceec630)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
5 years agoMinor modernization and readability improvement to the tokenizer example (GH-19558...
Miss Islington (bot) [Wed, 22 Apr 2020 20:50:32 +0000 (13:50 -0700)] 
Minor modernization and readability improvement to the tokenizer example (GH-19558) (GH-19661)

(cherry picked from commit bf1a81258c0ecc8b52b9dcc53321c066b3ed4a67)

5 years agobpo-40260: Remove unnecessary newline in compile() call (GH-19641)
Miss Islington (bot) [Wed, 22 Apr 2020 19:05:10 +0000 (12:05 -0700)] 
bpo-40260: Remove unnecessary newline in compile() call (GH-19641)

Because some people subclass this class and call undocumented methods, and we don't want to break them.
(cherry picked from commit 39652cd8bdf7c82b7c6055089a4ed90ee546a448)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
5 years agobpo-38360: macOS: support alternate form of -isysroot flag (GH-16480)
Miss Islington (bot) [Wed, 22 Apr 2020 17:13:47 +0000 (10:13 -0700)] 
bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480)

It is possible to use either '-isysroot /some/path' (with a space) or
'-isysroot/some/path' (no space in between). Support both forms in
places where special handling of -isysroot is done, rather than just
the first form.
Co-authored-by: Ned Deily <nad@python.org>
(cherry picked from commit b310700976524b4b99ee319c947ca40468716fc9)

Co-authored-by: Joshua Root <jmr@macports.org>
5 years agobpo-40138: Fix Windows os.waitpid() for large exit code (GH-19654)
Victor Stinner [Wed, 22 Apr 2020 15:57:59 +0000 (17:57 +0200)] 
bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19654)

Fix the Windows implementation of os.waitpid() for exit code
larger than "INT_MAX >> 8". The exit status is now interpreted as an
unsigned number.

5 years agobpo-38439: Add 256px IDLE icon (GH-17473)
Miss Islington (bot) [Wed, 22 Apr 2020 07:39:59 +0000 (00:39 -0700)] 
bpo-38439: Add 256px IDLE icon (GH-17473)

Icon author: Andrew Clover, bpo-1490384
(cherry picked from commit 3a69f3caeeaea57048ed3bc3051e16854b9a4cd6)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 years agobpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642)
Miss Islington (bot) [Wed, 22 Apr 2020 03:00:27 +0000 (20:00 -0700)] 
bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642)

(cherry picked from commit 783a673f23c5e9ffafe12fe172e119dc0fa2abda)

Co-authored-by: Ned Deily <nad@python.org>
5 years agoSmall improvements to the recipes and examples. (GH-19635) (GH-19638)
Miss Islington (bot) [Tue, 21 Apr 2020 23:18:49 +0000 (16:18 -0700)] 
Small improvements to the recipes and examples. (GH-19635) (GH-19638)

* Add underscores to long numbers to improve readability
* Use bigger dataset in the bootstrapping example
* Convert single-server queue example to more useful multi-server queue
(cherry picked from commit d3a8d616faf3364b22fde18dce8c168de9368146)

5 years agobpo-39942:Fix failure in `TypeVar` when missing `__name__` (GH-19616)
Miss Islington (bot) [Mon, 20 Apr 2020 20:24:35 +0000 (13:24 -0700)] 
bpo-39942:Fix failure in `TypeVar` when missing `__name__` (GH-19616)

https://bugs.python.org/issue39942
(cherry picked from commit a25a04fea5446b1712cde0cff556574be139285a)

Co-authored-by: HongWeipeng <hongweichen8888@sina.com>
5 years ago[3.8] bpo-40330: Fix utf-8 size check in ShareableList (GH-19606) (GH-19625)
Antoine Pitrou [Mon, 20 Apr 2020 19:22:50 +0000 (21:22 +0200)] 
[3.8] bpo-40330: Fix utf-8 size check in ShareableList (GH-19606) (GH-19625)

The item size must be checked after encoding to bytes, not before.

Automerge-Triggered-By: @pitrou.
(cherry picked from commit eba9f6155df59c9beed97fb5764c9f01dd941af0)

Co-authored-by: Antoine Pitrou <antoine@python.org>
5 years agobpo-40260: Revert breaking changes made in modulefinder (GH-19595)
Miss Islington (bot) [Mon, 20 Apr 2020 15:18:11 +0000 (08:18 -0700)] 
bpo-40260: Revert breaking changes made in modulefinder (GH-19595)

(cherry picked from commit 9b0b5d2baebd0b6a545317200c313a6a7408731e)

Co-authored-by: Barry <barry@barrys-emacs.org>
5 years agoFix typo in Lib/tracepack.py (GH-19605)
Miss Islington (bot) [Mon, 20 Apr 2020 02:36:03 +0000 (19:36 -0700)] 
Fix typo in Lib/tracepack.py (GH-19605)

Typo fix: "emites" -> "emit".
(cherry picked from commit df8913f7c48d267efd662e8ffd9496595115eee8)

Co-authored-by: Galden <wudenggang0@163.com>
5 years agobpo-39285: Clarify example for PurePath.match (GH-19458)
Miss Islington (bot) [Sun, 19 Apr 2020 10:03:35 +0000 (03:03 -0700)] 
bpo-39285: Clarify example for PurePath.match (GH-19458)

Fixes Issue39285

The example incorrectly returned True for match.

Furthermore the example is ambiguous in its usage of PureWindowsPath.
Windows is case-insensitve, however the underlying match functionality
utilizes fnmatch.fnmatchcase.

Automerge-Triggered-By: @pitrou
(cherry picked from commit c12375aa0b838d34067efa3f1b9a1fbc632d0413)

Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
5 years agobpo-27635: Fix pickle documentation about `__new__` not being called. (GH-19269)
Miss Islington (bot) [Sat, 18 Apr 2020 18:14:55 +0000 (11:14 -0700)] 
bpo-27635: Fix pickle documentation about `__new__` not being called. (GH-19269)

Automerge-Triggered-By: @pitrou
(cherry picked from commit 482259d0dcf27714a84cf56b93977320bea7e093)

Co-authored-by: Furkan Önder <furkantahaonder@gmail.com>
5 years ago[3.8] bpo-40179: Fix translation of #elif in Argument Clinic (GH-19364) (GH-19583)
Serhiy Storchaka [Sat, 18 Apr 2020 16:11:48 +0000 (19:11 +0300)] 
[3.8] bpo-40179: Fix translation of #elif in Argument Clinic (GH-19364) (GH-19583)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
(cherry picked from commit 12446e6a605f066d837d3a595d0a73e4f3b43b65)

5 years agoFix two typos in multiprocessing (GH-19571) (GH-19578)
Miss Islington (bot) [Sat, 18 Apr 2020 07:24:15 +0000 (00:24 -0700)] 
Fix two typos in multiprocessing (GH-19571) (GH-19578)

(cherry picked from commit c606624af8d4cb3b4a052fb263bb983b3f87585b)

Co-authored-by: Galden <wudenggang0@163.com>
Co-authored-by: Galden <wudenggang0@163.com>
5 years agobpo-40287: Fix SpooledTemporaryFile.seek() return value (GH-19540)
Miss Islington (bot) [Fri, 17 Apr 2020 07:14:55 +0000 (00:14 -0700)] 
bpo-40287: Fix SpooledTemporaryFile.seek() return value (GH-19540)

It has not returned the file position after the seek.
(cherry picked from commit 485e715cb1ff92bc9882cd51ec32589f9cb30503)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542)
Miss Islington (bot) [Fri, 17 Apr 2020 02:29:50 +0000 (19:29 -0700)] 
bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542)

(cherry picked from commit a75e730075cd25be1143e6183006f3b1d61bb80f)

Co-authored-by: Jeffrey Quesnelle <jquesnelle@gmail.com>
5 years agoFix parameter names in assertIn() docs (GH-18829)
Miss Islington (bot) [Fri, 17 Apr 2020 02:06:11 +0000 (19:06 -0700)] 
Fix parameter names in assertIn() docs (GH-18829)

The names "member" and "container" for the arguments are also used in the module and shown with the help() function, and are immediately understandable in this context, contrary to "first" and "second".
(cherry picked from commit a388bbd3f129364c39843f63e92f08bc53c71905)

Co-authored-by: Christoph Zwerschke <cito@online.de>
5 years agobpo-39793: use the same domain on make_msgid tests (GH-18698) (GH-19554)
Miss Islington (bot) [Thu, 16 Apr 2020 18:07:52 +0000 (11:07 -0700)] 
bpo-39793: use the same domain on make_msgid tests (GH-18698) (GH-19554)

(cherry picked from commit 5565c30f0b25996a0e73477fc0e1e1aced52b926)

Co-authored-by: Batuhan Taşkaya <batuhanosmantaskaya@gmail.com>
5 years ago[3.8] bpo-39667: Sync zipp 3.0 (GH-18540) (GH-18701)
Miss Islington (bot) [Wed, 15 Apr 2020 18:45:25 +0000 (11:45 -0700)] 
[3.8] bpo-39667: Sync zipp 3.0 (GH-18540) (GH-18701)

* bpo-39667: Sync zipp 3.0 (GH-18540)

* bpo-39667: Improve pathlib.Path compatibility on zipfile.Path and correct performance degradation as found in zipp 3.0

* 📜🤖 Added by blurb_it.

* Update docs for new zipfile.Path.open

* Rely on dict, faster than OrderedDict.

* Syntax edits on docs

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 0aeab5c4381f0cc11479362af2533b3a391312ac)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Clarify the change in behavior with a couple of workaround options.

* Restore API compatibility while backporting performance improvements.

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
5 years agobpo-40260: Update modulefinder to use io.open_code() and respect coding comments...
Miss Islington (bot) [Tue, 14 Apr 2020 19:34:41 +0000 (12:34 -0700)] 
bpo-40260: Update modulefinder to use io.open_code() and respect coding comments (GH-19488)

(cherry picked from commit d42e5820631cd66ee1eab8f610d4b58f3dfdd81c)

Co-authored-by: Barry <barry@barrys-emacs.org>
5 years agobpo-32033: Fix test_pwd failures on Android (GH-19502)
Miss Islington (bot) [Tue, 14 Apr 2020 18:31:00 +0000 (11:31 -0700)] 
bpo-32033: Fix test_pwd failures on Android (GH-19502)

(cherry picked from commit 96515e9f6785328c52ebc5d4ce60e0087a9adc2d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years ago[3.8] Update libregrtest from master (GH-19516)
Victor Stinner [Tue, 14 Apr 2020 17:51:18 +0000 (19:51 +0200)] 
[3.8] Update libregrtest from master (GH-19516)

* bpo-37531: regrtest now catchs ProcessLookupError (GH-16827)

Fix a warning on a race condition on TestWorkerProcess.kill(): ignore
silently ProcessLookupError rather than logging an useless warning.

(cherry picked from commit a661392f8fb5ac4fc095aa1845d1eb7a25c4e9be)

* bpo-38502: regrtest uses process groups if available (GH-16829)

test.regrtest now uses process groups in the multiprocessing mode
(-jN command line option) if process groups are available: if
os.setsid() and os.killpg() functions are available.

(cherry picked from commit ecb035cd14c11521276343397151929a94018a22)

* bpo-37957: Allow regrtest to receive a file with test (and subtests) to ignore (GH-16989)

When building Python in some uncommon platforms there are some known tests that will fail. Right now, the test suite has the ability to ignore entire tests using the -x option and to receive a filter file using the --matchfile filter. The problem with the --matchfile option is that it receives a file with patterns to accept and when you want to ignore a couple of tests and subtests, is too cumbersome to lists ALL tests that are not the ones that you want to accept and he problem with -x is that is not easy to ignore just a subtests that fail and the whole test needs to be ignored.

For these reasons, add a new option to allow to ignore a list of test and subtests for these situations.

(cherry picked from commit e0cd8aa70a3ce19c3d3712568940aa0cbd9aa97b)

* regrtest: log timeout at startup (GH-19514)

Reduce also worker timeout.

(cherry picked from commit 4cf65a630a8d45bad3fe5cdc4c2632ec64e7ba27)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agocloses bpo-40266, closes bpo-39953: Use numeric lib code if compiling against old...
Miss Islington (bot) [Tue, 14 Apr 2020 03:31:18 +0000 (20:31 -0700)] 
closes bpo-40266, closes bpo-39953: Use numeric lib code if compiling against old OpenSSL. (GH-19506)

(cherry picked from commit 584a3cfda4d7a65ea0c1ea1ee541378bb7be46ca)

Co-authored-by: Benjamin Peterson <benjamin@python.org>