]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years ago[3.9] bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20613)
Victor Stinner [Wed, 3 Jun 2020 15:49:25 +0000 (17:49 +0200)] 
[3.9] bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20613)

* bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20579)

Fix GIL usage in PyOS_Readline(): lock the GIL to set an exception.

Pass tstate to my_fgets() and _PyOS_WindowsConsoleReadline(). Cleanup
these functions.

(cherry picked from commit c353764fd564e401cf47a5d9efab18c72c60014e)

* bpo-40826: Add _PyOS_InterruptOccurred(tstate) function (GH-20599)

my_fgets() now calls _PyOS_InterruptOccurred(tstate) to check for
pending signals, rather calling PyOS_InterruptOccurred().

my_fgets() is called with the GIL released, whereas
PyOS_InterruptOccurred() must be called with the GIL held.

test_repl: use text=True and avoid SuppressCrashReport in
test_multiline_string_parsing().

Fix my_fgets() on Windows: fgets(fp) does crash if fileno(fp) is closed.

(cherry picked from commit fa7ab6aa0f9a4f695e5525db5a113cd21fa93787)

5 years agoUpdate error message in _zoneinfo.py to use f-string (GH-20577)
Miss Islington (bot) [Wed, 3 Jun 2020 15:09:49 +0000 (08:09 -0700)] 
Update error message in _zoneinfo.py to use f-string (GH-20577)

Inline with the rest of the file, updated error message to use f-string.
(cherry picked from commit 5b9fbbabacca0378755fd9cadc4a7cc01a71eaef)

Co-authored-by: aboddie <64019758+aboddie@users.noreply.github.com>
5 years agobpo-40767: Allow pure Wayland to get default XDG web browser (GH-20382)
Miss Islington (bot) [Wed, 3 Jun 2020 13:04:29 +0000 (06:04 -0700)] 
bpo-40767: Allow pure Wayland to get default XDG web browser (GH-20382)

Would be nice to backport to python 3.7+. I don't think it's worth the hassle to backport this all the way down to 3.10. But I'll let the maintainers decide.

This is hard to test because the test setup already includes this [environment variable](https://github.com/python/cpython/blob/master/Lib/test/pythoninfo.pyGH-L292)

Let me know if something doesn't match the PR guidelines. This is my first PR in the python source code.
(cherry picked from commit c822efeda9a0afe87cf3429724732fc8e19a01fb)

Co-authored-by: Jeremy Attali <jeremy.attali@gmail.com>
5 years ago[3.9] Fix MSVC warnings in pythonrun.c (GH-20587) (GH-20592)
Ammar Askar [Wed, 3 Jun 2020 07:34:55 +0000 (07:34 +0000)] 
[3.9] Fix MSVC warnings in pythonrun.c (GH-20587) (GH-20592)

(cherry picked from commit 90d297012b3848454)

5 years agobpo-40241: What's New in Python 3.9: opaque PyGC_Head (GH-20586)
Miss Islington (bot) [Tue, 2 Jun 2020 10:09:28 +0000 (03:09 -0700)] 
bpo-40241: What's New in Python 3.9: opaque PyGC_Head (GH-20586)

(cherry picked from commit 337d3103a2344e1fec75985e85fabcbdedac7d26)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-40244: Remove XLC's support from the noreturn flag (GH-20588)
Miss Islington (bot) [Tue, 2 Jun 2020 08:39:55 +0000 (01:39 -0700)] 
bpo-40244: Remove XLC's support from the noreturn flag (GH-20588)

Automerge-Triggered-By: @pablogsal
(cherry picked from commit 033d10bd21d962a59c6c4fc503092046baa451a1)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
5 years agoEnsure correct version of Sphinx is used for Windows builds (GH-20582)
Miss Islington (bot) [Mon, 1 Jun 2020 21:24:10 +0000 (14:24 -0700)] 
Ensure correct version of Sphinx is used for Windows builds (GH-20582)

(cherry picked from commit fe5dd78182dbf4937bcc2b113ca7526bfad0192b)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years ago[3.9] bpo-40630: Add tracemalloc.reset_peak (GH-20102) (GH-20545)
Huon Wilson [Mon, 1 Jun 2020 17:26:22 +0000 (03:26 +1000)] 
[3.9] bpo-40630: Add tracemalloc.reset_peak (GH-20102) (GH-20545)

* bpo-40630: Add tracemalloc.reset_peak (GH-20102, cherrypick 8b62644)

The reset_peak function sets the peak memory size to the current size,
representing a resetting of that metric. This allows for recording the
peak of specific sections of code, ignoring other code that may have
had a higher peak (since the most recent `tracemalloc.start()` or
tracemalloc.clear_traces()` call).

* Adjust docs to point to 3.9

5 years agoMake sure that keyword arguments are merged into the arguments dictionary when dict...
Miss Islington (bot) [Mon, 1 Jun 2020 16:07:32 +0000 (09:07 -0700)] 
Make sure that keyword arguments are merged into the arguments dictionary when dict unpacking and keyword arguments are interleaved. (GH-20553) (GH-20569)

(cherry picked from commit db64f12e4deda2abbafb6d2bd5c06762fca991ff)

Co-authored-by: Mark Shannon <mark@hotpy.org>
5 years agobpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)
Miss Islington (bot) [Mon, 1 Jun 2020 15:53:27 +0000 (08:53 -0700)] 
bpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)

(cherry picked from commit c8966667bbdb284c3780ef6cec8a3870935a6bb7)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-30008: Fix OpenSSL no-deprecated compilation (GH-20397)
Miss Islington (bot) [Mon, 1 Jun 2020 07:18:39 +0000 (00:18 -0700)] 
bpo-30008: Fix OpenSSL no-deprecated compilation (GH-20397)

Fix :mod:`ssl`` code to be compatible with OpenSSL 1.1.x builds that use
``no-deprecated`` and ``--api=1.1.0``.

Note: Tests assume full OpenSSL API and fail with limited API.

Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Mark Wright <gienah@gentoo.org>
(cherry picked from commit a871f692b4a2e6c7d45579693e787edc0af1a02c)

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-17005: Move topological sort functionality to its own module (GH-20558)
Miss Islington (bot) [Mon, 1 Jun 2020 00:01:37 +0000 (17:01 -0700)] 
bpo-17005: Move topological sort functionality to its own module (GH-20558)

The topological sort functionality that was introduced initially in the
functools module has been moved to a new graphlib module to
better accommodate the new tools and keep the original scope of the
functools module.
(cherry picked from commit 2f172d8f1525defe9bba4d49e967fdfc69151731)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agoFix typo in "What's new in Python 3.9" (GH-20559)
Miss Islington (bot) [Sun, 31 May 2020 23:35:24 +0000 (16:35 -0700)] 
Fix typo in "What's new in Python 3.9" (GH-20559)

Automerge-Triggered-By: @pablogsal
(cherry picked from commit 491a3d3a75b656c8317d8ce343aea767978b946c)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years agobpo-40759: Deprecate the symbol module (GH-20364)
Miss Islington (bot) [Sun, 31 May 2020 22:23:29 +0000 (15:23 -0700)] 
bpo-40759: Deprecate the symbol module (GH-20364)

Automerge-Triggered-By: @pablogsal
(cherry picked from commit cf88871d6a9c12e7b7e5f4d65abc2ec6e2fe952e)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
5 years agoFix asyncio.to_thread() documented return type (GH-20547)
Miss Islington (bot) [Sun, 31 May 2020 07:26:20 +0000 (00:26 -0700)] 
Fix asyncio.to_thread() documented return type (GH-20547)

When I wrote the documentation for `asyncio.to_thread()`, I mistakenly assumed that `return await loop.run_in_executor(...)` within an async def function would return a Future. In reality, it returns a coroutine.

This likely won't affect typical usage of `asyncio.to_thread()`, but it's important for the documentation to be correct here. In general, we also tend to avoid returning futures from high-level APIs in asyncio.
(cherry picked from commit 2b201369b435a4266bda5b895e3b615dbe28ea6e)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
5 years agobpo-40829: Add a what's new entry about deprecation of shuffle's random parameter...
Miss Islington (bot) [Sat, 30 May 2020 22:33:06 +0000 (15:33 -0700)] 
bpo-40829: Add a what's new entry about deprecation of shuffle's random parameter (GH-20541) (GH-20544)

5 years agobpo-40798: Generate a different message for already removed elements (GH-20483)
Miss Islington (bot) [Sat, 30 May 2020 07:54:28 +0000 (00:54 -0700)] 
bpo-40798: Generate a different message for already removed elements (GH-20483)

(cherry picked from commit 735d902b363b759df9ff00e58bbf4f7e2bde78cd)

Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
5 years agocloses bpo-29017: Update the bindings for Qt information with PySide2 (GH-20149)
Miss Islington (bot) [Sat, 30 May 2020 02:04:25 +0000 (19:04 -0700)] 
closes bpo-29017: Update the bindings for Qt information with PySide2 (GH-20149)

Reference to PySide has been removed has it is for Qt 4, which has reached end of life.
(cherry picked from commit 4649202ea75d48e1496e99911709824ca2d3170e)

Co-authored-by: Samuel Gaist <samuel.gaist@idiap.ch>
5 years agobpo-39885: Make IDLE context menu cut and copy work again (GH-18951)
Miss Islington (bot) [Fri, 29 May 2020 23:13:21 +0000 (16:13 -0700)] 
bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)

Leave selection when right click within.  This exception to clearing selections when right-clicking was omitted from the previous commit, 4ca060d.  I did not realize that this completely disabled the context menu entries, and  I should have merged a minimal fix immediately.  An automated test should follow.
(cherry picked from commit 97e4e0f53d6690db6b942678489716a30925b8af)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agoFurther de-linting of zoneinfo module (GH-20499)
Miss Islington (bot) [Fri, 29 May 2020 13:53:52 +0000 (06:53 -0700)] 
Further de-linting of zoneinfo module (GH-20499)

* Remove unused imports in zoneinfo

* Remove unused variables in zoneinfo

* Remove else after raise
(cherry picked from commit 364b5ead1584583db91ef7f9d9f87f01bfbb5774)

Co-authored-by: Paul Ganssle <paul@ganssle.io>
5 years agobpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435) (GH-20514)
Miss Islington (bot) [Fri, 29 May 2020 13:46:54 +0000 (06:46 -0700)] 
bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435) (GH-20514)

* Fix failure of _Py_dg_dtoa to remove trailing zeros

* Add regression test and news entry

* Add explanation about why it's safe to strip trailing zeros

* Make code safer, clean up comments, add change note at top of file

* Nitpick: avoid implicit int-to-float conversion in tests
(cherry picked from commit 895c9c1d438367722f74f437fda96767d770662b)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
5 years agobpo-40784: Fix sqlite3 deterministic test (GH-20448)
Miss Islington (bot) [Fri, 29 May 2020 12:46:52 +0000 (05:46 -0700)] 
bpo-40784: Fix sqlite3 deterministic test (GH-20448)

(cherry picked from commit c610d970f5373b143bf5f5900d4645e6a90fb460)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
5 years agobpo-39040: Fix parsing of email mime headers with whitespace between encoded-words...
Miss Islington (bot) [Fri, 29 May 2020 11:43:06 +0000 (04:43 -0700)] 
bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. (gh-17620)

* bpo-39040: Fix parsing of email headers with encoded-words inside a quoted string.

It is fairly common to find malformed mime headers (especially content-disposition
headers) where the parameter values, instead of being encoded to RFC
standards, are "encoded" by doing RFC 2047 "encoded word" encoding, and
then enclosing the whole thing in quotes.  The processing of these malformed
headers was incorrectly leaving the spaces between encoded words in the decoded
text (whitespace between adjacent encoded words is supposed to be stripped on
decoding).  This changeset fixes the encoded word processing inside quoted strings
(bare-quoted-string) to do correct RFC 2047 decoding by stripping that
whitespace.
(cherry picked from commit 21017ed904f734be9f195ae1274eb81426a9e776)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
5 years agoIndicate that abs() method accept argument that implement __abs__(), just like call...
Miss Islington (bot) [Fri, 29 May 2020 11:42:40 +0000 (04:42 -0700)] 
Indicate that abs() method accept argument that implement __abs__(), just like call() method in the docs (GH-20509)

(cherry picked from commit 28316422124206f63ddd4b91f2e19c54b6e9cd9d)

Co-authored-by: Windson yang <wiwindson@outlook.com>
5 years agobpo-30064: Properly skip unstable loop.sock_connect() racing test (GH-20494)
Miss Islington (bot) [Thu, 28 May 2020 22:17:33 +0000 (15:17 -0700)] 
bpo-30064: Properly skip unstable loop.sock_connect() racing test (GH-20494)

(cherry picked from commit dc4eee9e266267498a6b783a0abccc23c06f2b87)

Co-authored-by: Fantix King <fantix.king@gmail.com>
5 years agoNote the output ordering of combinatoric functions (GH-19732) (GH-20501)
Miss Islington (bot) [Thu, 28 May 2020 20:32:36 +0000 (13:32 -0700)] 
Note the output ordering of combinatoric functions (GH-19732) (GH-20501)

5 years agobpo-40806: itertools.product immediately consumes its inputs (GH-20492) (GH-20498)
Miss Islington (bot) [Thu, 28 May 2020 16:58:33 +0000 (09:58 -0700)] 
bpo-40806: itertools.product immediately consumes its inputs (GH-20492) (GH-20498)

5 years ago[3.9] bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-time (GH...
Miss Islington (bot) [Thu, 28 May 2020 16:41:41 +0000 (09:41 -0700)] 
[3.9] bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-time (GH-20493) (GH-20495)

Recent changes to _datetimemodule broke compilation on mingw; see the comments in this change for details.

FWIW, @corona10: this issue is why `PyType_FromModuleAndSpec` & friends take the `bases` argument at run time.
(cherry picked from commit 459acc551656785bc4a3363d65c7a60f822da8e3)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
5 years agobpo-1294959: Try to clarify the meaning of platlibdir (GH-20332)
Miss Islington (bot) [Thu, 28 May 2020 16:41:31 +0000 (09:41 -0700)] 
bpo-1294959: Try to clarify the meaning of platlibdir (GH-20332)

Try to make the meaning of platlibdir clear.  The previous wording could
be misinterpreted to suggest that it will be used to find all shared
libraries on the system, and not just Python extensions.  Furthermore,
it was unclear whether it affects third-party (site-packages) extensions
or not.  The new wording tries to make its dual purpose clear,
and provide the additional example of extensions in site-packages.
(cherry picked from commit 242d95659b6b4ff4fb54b58a30454dafa311d4e9)

Co-authored-by: Michał Górny <mgorny@gentoo.org>
5 years agobpo-37878: PyThreadState_DeleteCurrent() was not removed (GH-20489)
Miss Islington (bot) [Thu, 28 May 2020 16:34:47 +0000 (09:34 -0700)] 
bpo-37878: PyThreadState_DeleteCurrent() was not removed (GH-20489)

Update What's New in Python 3.9.

PyThreadState_DeleteCurrent was not removed, but excluded from the limited C API.
(cherry picked from commit fda7f6d61b13c68f59806db674e892fda4013348)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types...
Miss Islington (bot) [Thu, 28 May 2020 15:12:23 +0000 (08:12 -0700)] 
bpo-40217:  Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (reverts GH-19414) (GH-20264)

Heap types now always visit the type in tp_traverse. See added docs for details.

This reverts commit 0169d3003be3d072751dd14a5c84748ab63a249f.

Automerge-Triggered-By: @encukou
(cherry picked from commit 1cf15af9a6f28750f37b08c028ada31d38e818dd)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-30064: Fix unstable asyncio "racing" socket tests (GH-20485)
Miss Islington (bot) [Thu, 28 May 2020 14:28:17 +0000 (07:28 -0700)] 
bpo-30064: Fix unstable asyncio "racing" socket tests (GH-20485)

Skip new "racing" socket tests which fail randomly until someone fix
them, to ease analysis of buildbot failures (skip tests which are
known to be broken/unstable).
(cherry picked from commit 84ee7e1573d166fe7a9be676813e12523b62ab24)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.9] bpo-40791: Use CRYPTO_memcmp() for compare_digest (GH-20456) (GH-20461)
Christian Heimes [Thu, 28 May 2020 12:09:38 +0000 (14:09 +0200)] 
[3.9] bpo-40791: Use CRYPTO_memcmp() for compare_digest (GH-20456) (GH-20461)

hashlib.compare_digest uses OpenSSL's CRYPTO_memcmp() function
when OpenSSL is available.

Note: The _operator module is a builtin module. I don't want to add
libcrypto dependency to libpython. Therefore I duplicated the wrapper
function and added a copy to _hashopenssl.c..
(cherry picked from commit db5aed931f8a617f7b63e773f62db468fe9c5ca1)

Co-authored-by: Christian Heimes <christian@python.org>
5 years agoImprove IO tutorial's "Old string formatting" section (GH-16251)
Miss Islington (bot) [Thu, 28 May 2020 01:41:38 +0000 (18:41 -0700)] 
Improve IO tutorial's "Old string formatting" section (GH-16251)

* Use a more universal explanation of string interpolation rather than specifically referencing sprintf(), which depends on the reader having a C background.

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

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
5 years agobpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 (GH-20473...
Miss Islington (bot) [Thu, 28 May 2020 01:24:33 +0000 (18:24 -0700)] 
bpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 (GH-20473) (GH-20474)

(cherry picked from commit 56853d8ec6ed89bf5a9b81c3781a4df46ac391d3)

Co-authored-by: Elazar Gershuni <elazarg@gmail.com>
Co-authored-by: Elazar Gershuni <elazarg@gmail.com>
5 years agobpo-40795: ctypes calls unraisablehook with an exception (GH-20452)
Miss Islington (bot) [Wed, 27 May 2020 23:00:01 +0000 (16:00 -0700)] 
bpo-40795: ctypes calls unraisablehook with an exception (GH-20452)

If ctypes fails to convert the result of a callback or if a ctypes
callback function raises an exception, sys.unraisablehook is now
called with an exception set. Previously, the error was logged into
stderr by PyErr_Print().
(cherry picked from commit 10228bad0452d94e66c964b625a0b61befa08e59)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agoFix compiler warnings in _zoneinfo.c (GH-20342)
Miss Islington (bot) [Wed, 27 May 2020 21:08:20 +0000 (14:08 -0700)] 
Fix compiler warnings in _zoneinfo.c (GH-20342)

```
D:\a\cpython\cpython\Modules\_zoneinfo.c(903,52): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [D:\a\cpython\cpython\PCbuild\_zoneinfo.vcxproj]
D:\a\cpython\cpython\Modules\_zoneinfo.c(904,44): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [D:\a\cpython\cpython\PCbuild\_zoneinfo.vcxproj]
D:\a\cpython\cpython\Modules\_zoneinfo.c(1772,31): warning C4244: '=': conversion from 'ssize_t' to 'uint8_t', possible loss of data [D:\a\cpython\cpython\PCbuild\_zoneinfo.vcxproj]
```
(cherry picked from commit e4799b95945b44eb0e2eea26473db8e0a49ed0ee)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[3.9] bpo-40614: Respect feature version for f-string debug expressions (GH-20196...
Pablo Galindo [Wed, 27 May 2020 21:01:11 +0000 (22:01 +0100)] 
[3.9] bpo-40614: Respect feature version for f-string debug expressions (GH-20196) (GH-20464)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
(cherry picked from commit c116c94)

Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
5 years agobpo-30064: Fix asyncio loop.sock_* race condition issue (GH-20369)
Miss Islington (bot) [Wed, 27 May 2020 20:39:03 +0000 (13:39 -0700)] 
bpo-30064: Fix asyncio loop.sock_* race condition issue (GH-20369)

(cherry picked from commit 210a137396979d747c2602eeef46c34fc4955448)

Co-authored-by: Fantix King <fantix.king@gmail.com>
5 years ago[3.9] Backport GH-20440: Set p->error_indicator in more places (GH-20457)
Lysandros Nikolaou [Wed, 27 May 2020 20:20:43 +0000 (23:20 +0300)] 
[3.9] Backport GH-20440: Set p->error_indicator in more places (GH-20457)

5 years ago[3.9] Backport GH-20370 and GH-20436: Soft keywords (GH-20458)
Lysandros Nikolaou [Wed, 27 May 2020 20:20:07 +0000 (23:20 +0300)] 
[3.9] Backport GH-20370 and GH-20436: Soft keywords (GH-20458)

5 years agobpo-13097: ctypes: limit callback to 1024 arguments (GH-19914)
Miss Islington (bot) [Wed, 27 May 2020 15:46:57 +0000 (08:46 -0700)] 
bpo-13097: ctypes: limit callback to 1024 arguments (GH-19914)

ctypes now raises an ArgumentError when a callback
is invoked with more than 1024 arguments.

The ctypes module allocates arguments on the stack in
ctypes_callproc() using alloca(), which is problematic
when large numbers of arguments are passed. Instead
of a stack overflow, this commit raises an ArgumentError
if more than 1024 parameters are passed.
(cherry picked from commit 29a1384c040d39659e7d01f1fd7b6eb71ef2634e)

Co-authored-by: Sean Gillespie <sean@swgillespie.me>
5 years agoFix the link to ncurses patch download in macos installer build script (GH-20421)
Miss Islington (bot) [Wed, 27 May 2020 10:32:25 +0000 (03:32 -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:33 +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 agobpo-38580: Document that select() accepts iterables, not just sequences (GH-16832)
Miss Islington (bot) [Tue, 26 May 2020 13:38:18 +0000 (06:38 -0700)] 
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 agobpo-40737: Fix possible reference leak for sqlite3 initialization (GH-20323)
Miss Islington (bot) [Tue, 26 May 2020 12:38:51 +0000 (05:38 -0700)] 
bpo-40737: Fix possible reference leak for sqlite3 initialization (GH-20323)

(cherry picked from commit 5eb45d7d4e812e89d77da84cc619e9db81561a34)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
5 years agobpo-40637: Fix test_pbkdf2_hmac_py for missing sha1 (GH-20422)
Miss Islington (bot) [Tue, 26 May 2020 10:46:24 +0000 (03:46 -0700)] 
bpo-40637: Fix test_pbkdf2_hmac_py for missing sha1 (GH-20422)

(cherry picked from commit be63019ed726b2da045bf232782062830bb6c27d)

Co-authored-by: Christian Heimes <christian@python.org>
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:10 +0000 (01:33 -0700)] 
bpo-39301: State that floor division is used for right shift operations (GH-20347) (GH-20414)

* 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>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-35714: Reject null characters in struct format strings (GH-16928)
Miss Islington (bot) [Tue, 26 May 2020 07:04:59 +0000 (00:04 -0700)] 
bpo-35714: Reject null characters in struct format strings (GH-16928)

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

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agoSimplify creation of the __new__ method in namedtuple() (GH-20361) (GH-20409)
Miss Islington (bot) [Tue, 26 May 2020 05:00:31 +0000 (22:00 -0700)] 
Simplify creation of the __new__ method in namedtuple() (GH-20361) (GH-20409)

5 years agoFix peg_generator compiler warnings under MSVC (GH-20405)
Miss Islington (bot) [Tue, 26 May 2020 04:52:21 +0000 (21:52 -0700)] 
Fix peg_generator compiler warnings under MSVC (GH-20405)

(cherry picked from commit a2bbedc8b18c001d2f9e702e6e678efbb2990daa)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
5 years agobpo-40745: Fix typos in NewType docs (GH-20379)
Miss Islington (bot) [Tue, 26 May 2020 04:52:14 +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 ago[3.9] closes bpo-40774: Fix docs indentation for asyncio.create_subprocess_shell...
Benjamin Peterson [Tue, 26 May 2020 04:19:42 +0000 (23:19 -0500)] 
[3.9] closes bpo-40774: Fix docs indentation for asyncio.create_subprocess_shell() (GH-20403) (#20407)

(cherry picked from commit 4a0ac42)

Co-authored-by: sth <sth.dev@tejp.de>
5 years ago[3.9] bpo-38964: Print correct filename on a SyntaxError in an fstring (GH-20399...
Lysandros Nikolaou [Tue, 26 May 2020 01:24:31 +0000 (04:24 +0300)] 
[3.9] bpo-38964: Print correct filename on a SyntaxError in an fstring (GH-20399) (GH-20404)

When a `SyntaxError` in the expression part of a fstring is found,
the filename attribute of the `SyntaxError` is always `<fstring>`.
With this commit, it gets changed to always have the name of the file
the fstring resides in.

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

5 years agobpo-40246: Fix test_fstring when run with the old parser (GH-20402)
Lysandros Nikolaou [Tue, 26 May 2020 00:10:00 +0000 (03:10 +0300)] 
bpo-40246: Fix test_fstring when run with the old parser (GH-20402)

5 years agobpo-40688: Use the correct parser in the peg_generator scripts (GH-20235)
Miss Islington (bot) [Mon, 25 May 2020 20:11:36 +0000 (13:11 -0700)] 
bpo-40688: Use the correct parser in the peg_generator scripts (GH-20235)

The scripts in `Tools/peg_generator/scripts` mostly assume that
`ast.parse` and `compile` use the old parser, since this was the
state of things, while we were developing them. They need to be
updated to always use the correct parser. `_peg_parser` is being
extended to support both parsing and compiling with both parsers.
(cherry picked from commit 9645930b5bc1833ef495891d22052d1ba65ab7ea)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years agobpo-23082: Better error message for PurePath.relative_to() from pathlib (GH-19611)
Miss Islington (bot) [Mon, 25 May 2020 20:01:20 +0000 (13:01 -0700)] 
bpo-23082: Better error message for PurePath.relative_to() from pathlib (GH-19611)

Co-authored-by: Sadhana Srinivasan <rotuna@Sadhanas-MBP.fritz.box>
(cherry picked from commit 448325369ff73011d34d6c3a493014fe3ead8843)

Co-authored-by: Rotuna <sadhanasrinivasan@protonmail.com>
5 years agobpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not defined...
Miss Islington (bot) [Mon, 25 May 2020 19:37:56 +0000 (12:37 -0700)] 
bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not defined (GH-20393)

(cherry picked from commit deb4355a37e41edf1199920789fe9572c1fb43c2)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-40750: Support -d flag in the new parser (GH-20340)
Miss Islington (bot) [Mon, 25 May 2020 17:58:03 +0000 (10:58 -0700)] 
bpo-40750: Support -d flag in the new parser (GH-20340)

(cherry picked from commit 800a35c623bbcdb5793c7d7a4974524286311479)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-39245: Fix docs links to the stable ABI (GH-20388)
Miss Islington (bot) [Mon, 25 May 2020 15:49:35 +0000 (08:49 -0700)] 
bpo-39245: Fix docs links to the stable ABI (GH-20388)

Automerge-Triggered-By: @vstinner
(cherry picked from commit e50883ccc4bfa198c3d5e3367306324fc49730cb)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 years agobpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)
Miss Islington (bot) [Mon, 25 May 2020 15:13:49 +0000 (08:13 -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-40671: Prepare _hashlib for PEP 489 (GH-20180)
Miss Islington (bot) [Mon, 25 May 2020 12:18:49 +0000 (05:18 -0700)] 
bpo-40671: Prepare _hashlib for PEP 489 (GH-20180)

(cherry picked from commit 20c22db602bf2a51f5231433b9054290f8069b90)

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-40695: Limit hashlib builtin hash fallback (GH-20259)
Miss Islington (bot) [Mon, 25 May 2020 09:07:35 +0000 (02:07 -0700)] 
bpo-40695: Limit hashlib builtin hash fallback (GH-20259)

:mod:`hashlib` no longer falls back to builtin hash implementations when
OpenSSL provides a hash digest and the algorithm is blocked by security
policy.

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

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-40334: Support suppressing of multiple optional variables in Pegen (GH-20367)
Miss Islington (bot) [Sun, 24 May 2020 22:38:47 +0000 (15:38 -0700)] 
bpo-40334: Support suppressing of multiple optional variables in Pegen (GH-20367)

(cherry picked from commit cba503151056b448b7a3730dc36ef6655550ade5)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
5 years agobpo-36290: Fix keytword collision handling in AST node constructors (GH-12382)
Miss Islington (bot) [Sun, 24 May 2020 21:32:32 +0000 (14:32 -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 agobpo-17050: Remove documentation on argparse.REMAINDER (GH-18661) (GH-20363)
Miss Islington (bot) [Sun, 24 May 2020 21:31:17 +0000 (14:31 -0700)] 
bpo-17050: Remove documentation on argparse.REMAINDER (GH-18661) (GH-20363)

5 years agobpo-40443: Remove unused imports in the zoneinfo (GH-20354)
Miss Islington (bot) [Sun, 24 May 2020 14:58:25 +0000 (07:58 -0700)] 
bpo-40443: Remove unused imports in the zoneinfo (GH-20354)

(cherry picked from commit 3436f5f899f272d7164add072beb18eebd46d777)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
5 years agobpo-40705: Fix use-after-free in _zoneinfo's module_free (GH-20280)
Miss Islington (bot) [Sun, 24 May 2020 14:43:02 +0000 (07:43 -0700)] 
bpo-40705: Fix use-after-free in _zoneinfo's module_free (GH-20280)

(cherry picked from commit 06a1b8915d6674e40f0dccc422ca2c06212392d8)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
5 years agobpo-37309: Update IDLE NEWS.txt (GH-20356)
Miss Islington (bot) [Sun, 24 May 2020 14:16:09 +0000 (07:16 -0700)] 
bpo-37309: Update IDLE NEWS.txt (GH-20356)

(cherry picked from commit 16ef3241939a3a64a447e5d7aabaf2e29deca621)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)
Miss Islington (bot) [Sun, 24 May 2020 11:14:17 +0000 (04:14 -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 agoRemove spurious NULL in descrobject.c (GH-20344)
Miss Islington (bot) [Sun, 24 May 2020 05:24:56 +0000 (22:24 -0700)] 
Remove spurious NULL in descrobject.c (GH-20344)

Co-authored-by: hai shi <shihai1991@126.com>
(cherry picked from commit 3f5f61409ebf95fa606bcbb15dfaaadad6084dc6)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
5 years agoUse Py_ssize_t for the column number in the PEG support code (GH-20341)
Miss Islington (bot) [Sun, 24 May 2020 05:20:44 +0000 (22:20 -0700)] 
Use Py_ssize_t for the column number in the PEG support code (GH-20341)

(cherry picked from commit b23d7adfdfa66dd8e6f98e968b1ba885692b67d6)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-40405: Fix asyncio.as_completed docs (GH-19753)
Miss Islington (bot) [Sat, 23 May 2020 23:23:53 +0000 (16:23 -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:19:13 +0000 (18:19 -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 agoReword aware/naive introduction sentence (GH-20175)
Miss Islington (bot) [Fri, 22 May 2020 22:30:47 +0000 (15:30 -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[3.9] bpo-39631: Adds NEWS entry (GH-20227) (GH-20241)
Miss Islington (bot) [Fri, 22 May 2020 22:29:13 +0000 (15:29 -0700)] 
[3.9] bpo-39631: Adds NEWS entry (GH-20227) (GH-20241)

(cherry picked from commit 92327a9913150f5bb55b2727a2c5d50f9b7b6e55)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-40696: Fix a hang that can arise after gen.throw() (GH-20287)
Miss Islington (bot) [Fri, 22 May 2020 21:35:22 +0000 (14:35 -0700)] 
bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287)

This updates _PyErr_ChainStackItem() to use _PyErr_SetObject()
instead of _PyErr_ChainExceptions(). This prevents a hang in
certain circumstances because _PyErr_SetObject() performs checks
to prevent cycles in the exception context chain while
_PyErr_ChainExceptions() doesn't.
(cherry picked from commit 7c30d12bd5359b0f66c4fbc98aa055398bcc8a7e)

Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
5 years agobpo-9216: hashlib usedforsecurity fixes (GH-20258)
Miss Islington (bot) [Fri, 22 May 2020 18:22:30 +0000 (11:22 -0700)] 
bpo-9216: hashlib usedforsecurity fixes (GH-20258)

func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor
``_hashlib.new()``. test_hashlib and test_smtplib handle strict security
policy better.

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

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-40730: Remove redundant 'to' (GH-20316) (GH-20318)
Miss Islington (bot) [Fri, 22 May 2020 15:26:54 +0000 (08:26 -0700)] 
bpo-40730: Remove redundant 'to' (GH-20316) (GH-20318)

@ericvsmith I guess it is correct to merge it into master and not 3.9 directly?

Automerge-Triggered-By: @ericvsmith
(cherry picked from commit 30d5a7364db9e65ccabbdce2c20b84fe2fb233fb)

Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
5 years agoFix the URL to fishshell.com (GH-20251)
Miss Islington (bot) [Fri, 22 May 2020 14:32:21 +0000 (07:32 -0700)] 
Fix the URL to fishshell.com (GH-20251)

(cherry picked from commit da7d1f04086598a29f77bd452beefe847d038344)

Co-authored-by: Jonathan Goble <jcgoble3@gmail.com>
5 years agobpo-40725: Restore missing column of digits (GH-20313) (GH-20315)
Miss Islington (bot) [Fri, 22 May 2020 14:18:01 +0000 (07:18 -0700)] 
bpo-40725: Restore missing column of digits (GH-20313) (GH-20315)

5 years agoFix debug output in PEG parser generator (GH-20308)
Miss Islington (bot) [Fri, 22 May 2020 02:05:20 +0000 (19:05 -0700)] 
Fix debug output in PEG parser generator (GH-20308)

(cherry picked from commit b831129123dbb4bfba49824ae893448b05398f27)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-40334: Produce better error messages for non-parenthesized genexps (GH-20153)
Miss Islington (bot) [Fri, 22 May 2020 01:14:55 +0000 (18:14 -0700)] 
bpo-40334: Produce better error messages for non-parenthesized genexps (GH-20153)

The error message, generated for a non-parenthesized generator expression
in function calls, was still the generic `invalid syntax`, when the generator expression wasn't appearing as the first argument in the call. With this patch, even on input like `f(a, b, c for c in d, e)`, the correct error message gets produced.
(cherry picked from commit ae145833025b0156ee2a28219e3370f3b27b2a36)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years ago[doc] Remove references to obsolete BuildApplet on macOS. (GH-20023) (GH-20304)
Miss Islington (bot) [Thu, 21 May 2020 23:01:41 +0000 (16:01 -0700)] 
[doc] Remove references to obsolete BuildApplet on macOS. (GH-20023) (GH-20304)

(cherry picked from commit 7864f11cdf12807555d62c7a132c191eb41ecc02)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-40715: Reject dict unpacking on dict comprehensions (GH-20292)
Miss Islington (bot) [Thu, 21 May 2020 22:58:16 +0000 (15:58 -0700)] 
bpo-40715: Reject dict unpacking on dict comprehensions (GH-20292)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
(cherry picked from commit b8a65ec1d3d4660d0ee38a9765d98f5cdcabdef5)

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
5 years ago[3.9] Fix typing problems reported by mypy in pegen (GH-20297) (GH-20300)
Pablo Galindo [Thu, 21 May 2020 21:09:43 +0000 (22:09 +0100)] 
[3.9] Fix typing problems reported by mypy in pegen (GH-20297) (GH-20300)

(cherry picked from commit d10fef35c6ce8a3193b974be7e8c8304b1146153)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[3.9] bpo-40176: Improve error messages for trailing comma on from import (GH-20294...
Pablo Galindo [Thu, 21 May 2020 21:04:54 +0000 (22:04 +0100)] 
[3.9] bpo-40176: Improve error messages for trailing comma on from import (GH-20294) (GH-20302)

(cherry picked from commit 72e0aa2)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
5 years ago[3.9] bpo-40714: Remove compile warning from _zoneinfo.c (GH-20291) (GH-20293)
Miss Islington (bot) [Thu, 21 May 2020 17:15:53 +0000 (10:15 -0700)] 
[3.9] bpo-40714: Remove compile warning from _zoneinfo.c (GH-20291) (GH-20293)

(cherry picked from commit a487a39dca4c41305928c7dfdbcb0b3aa344683b)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Automerge-Triggered-By: @corona10
5 years agobpo-32309: Add support for contextvars in asyncio.to_thread() (GH-20278)
Miss Islington (bot) [Thu, 21 May 2020 05:38:00 +0000 (22:38 -0700)] 
bpo-32309: Add support for contextvars in asyncio.to_thread() (GH-20278)

Allows contextvars from the main thread to be accessed in the separate thread used in `asyncio.to_thread()`. See the [discussion](https://github.com/python/cpython/pull/20143GH-discussion_r427808225) in GH-20143 for context.

Automerge-Triggered-By: @aeros
(cherry picked from commit 0f56263e62ba91d0baae40fb98947a3a98034a73)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
5 years agoUpdate whatsnew benchmark results for 3.9 (GH-20276) (GH-20277)
Miss Islington (bot) [Thu, 21 May 2020 02:11:28 +0000 (19:11 -0700)] 
Update whatsnew benchmark results for 3.9 (GH-20276) (GH-20277)

5 years agos/wakup/wakeup (GH-20250)
Miss Islington (bot) [Wed, 20 May 2020 17:58:47 +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:25 +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-40698: Improve distutils upload hash digests (GH-20260)
Miss Islington (bot) [Wed, 20 May 2020 14:57:08 +0000 (07:57 -0700)] 
bpo-40698: Improve distutils upload hash digests (GH-20260)

- Fix upload test on systems that blocks MD5
- Add SHA2-256 and Blake2b-256 digests based on new Warehous and twine
  specs.

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

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-34956: edit and format better NEWS item in 3.9.0b1 changelog (GH-20255)
Miss Islington (bot) [Wed, 20 May 2020 09:47:07 +0000 (02:47 -0700)] 
bpo-34956: edit and format better NEWS item in 3.9.0b1 changelog (GH-20255)

(cherry picked from commit bac170cd93bbae939fcb29ccc6b5d423f7f4a089)

Co-authored-by: Ned Deily <nad@python.org>
5 years agobpo-40291: Mention socket.CAN_J1939 in What's New (GH-20248)
Miss Islington (bot) [Wed, 20 May 2020 02:37:17 +0000 (19:37 -0700)] 
bpo-40291: Mention socket.CAN_J1939 in What's New (GH-20248)

This mentions the new CAN_J1939 implementation in the What's New
documentation for Python 3.9

Automerge-Triggered-By: @gvanrossum
(cherry picked from commit 550f30c8f33a2ba844db2ce3da8a897b3e882c9a)

Co-authored-by: karl ding <karlding@users.noreply.github.com>
5 years agobpo-40645: restrict HMAC key len to INT_MAX (GH-20238)
Miss Islington (bot) [Tue, 19 May 2020 22:52:54 +0000 (15:52 -0700)] 
bpo-40645: restrict HMAC key len to INT_MAX (GH-20238)

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

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-38870: invalid escape sequence (GH-20240)
Miss Islington (bot) [Tue, 19 May 2020 22:33:45 +0000 (15:33 -0700)] 
bpo-38870: invalid escape sequence (GH-20240)

`/home/isidentical/cpython/cpython/Lib/test/test_unparse.py:333: DeprecationWarning: invalid escape sequence \X`

Automerge-Triggered-By: @pablogsal
(cherry picked from commit dd74b6fde31aff9aa46c4fc2a830c569764e1b63)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
5 years ago[3.9] bpo-40514: Remove --with-experimental-isolated-subinterpreters in 3.9 (GH-20228)
Victor Stinner [Tue, 19 May 2020 22:27:46 +0000 (00:27 +0200)] 
[3.9] bpo-40514: Remove --with-experimental-isolated-subinterpreters in 3.9 (GH-20228)

Remove --with-experimental-isolated-subinterpreters configure option
in Python 3.9: the experiment continues in the master branch, but
it's no longer needed in 3.9.

5 years agoEnable GitHub Actions for 3.9 branch (GH-20231)
Miss Islington (bot) [Tue, 19 May 2020 17:24:52 +0000 (10:24 -0700)] 
Enable GitHub Actions for 3.9 branch (GH-20231)

(cherry picked from commit c105f7d8955ef9bf51125f6e44e8543e5f0618df)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
5 years agobpo-40683: Add zoneinfo to LIBSUBDIRS (GH-20229)
Miss Islington (bot) [Tue, 19 May 2020 16:13:15 +0000 (09:13 -0700)] 
bpo-40683: Add zoneinfo to LIBSUBDIRS (GH-20229)

Without this, only the _zoneinfo module is getting installed, not the
zoneinfo module. I believe this was not noticed earlier because
test.test_zoneinfo was also not being installed.
(cherry picked from commit 2abededbc4165d2daa14ae9d74b1f33cce0593d7)

Co-authored-by: Paul Ganssle <paul@ganssle.io>