]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agoReplace links in howto/pyporting.rst with sphinx references (GH-17781)
Miss Islington (bot) [Sun, 5 Jan 2020 22:13:57 +0000 (14:13 -0800)] 
Replace links in howto/pyporting.rst with sphinx references (GH-17781)

Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
(cherry picked from commit e6ae90dede07e8599cc6906417ca4aa99d8aa6e4)

Co-authored-by: Oleg Höfling <hoefling@users.noreply.github.com>
5 years agoFix constant folding optimization for positional only arguments (GH-17837)
Miss Islington (bot) [Sun, 5 Jan 2020 17:21:47 +0000 (09:21 -0800)] 
Fix constant folding optimization for positional only arguments (GH-17837)

(cherry picked from commit b121a4a45ff4bab8812a9b26ceffe5ad642f5d5a)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
5 years agobpo-39152: add missing ttk.Scale.configure return value (GH-17815)
Miss Islington (bot) [Sun, 5 Jan 2020 17:07:30 +0000 (09:07 -0800)] 
bpo-39152: add missing ttk.Scale.configure return value (GH-17815)

tkinter.ttk.Scale().configure([name]) now returns a configuration tuple for name
or a list thereof for all options. Based on patch Giovanni Lombardo.
(cherry picked from commit 5ea7bb25e3b192d6c49a49c9e3b316f8559602aa)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. (GH-17616)
Miss Islington (bot) [Sun, 5 Jan 2020 12:36:48 +0000 (04:36 -0800)] 
bpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. (GH-17616)

(cherry picked from commit b19c0d77e6f25ea831ab608c71f15d0d9266c8c4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-39056: Fix handling invalid warning category in the -W option. (GH-17618)
Miss Islington (bot) [Sun, 5 Jan 2020 12:33:08 +0000 (04:33 -0800)] 
bpo-39056: Fix handling invalid warning category in the -W option. (GH-17618)

No longer import the re module if it is not needed.
(cherry picked from commit 41ec17e45d54473d32f543396293256f1581e44d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619)
Miss Islington (bot) [Sun, 5 Jan 2020 12:32:00 +0000 (04:32 -0800)] 
bpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619)

Ignore leading dots and no longer ignore a trailing newline.
(cherry picked from commit 6a265f0d0c0a4b3b8fecf4275d49187a384167f4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agoFix SystemError when nested function has annotation on positional-only argument ...
Miss Islington (bot) [Sun, 5 Jan 2020 02:14:58 +0000 (18:14 -0800)] 
Fix SystemError when nested function has annotation on positional-only argument (GH-17826)

(cherry picked from commit ec007cb43faf5f33d06efbc28152c7fdcb2edb9c)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
5 years ago[3.8] bpo-39191: Don't spawn a task before failing (GH-17796) (GH-17820)
Andrew Svetlov [Sat, 4 Jan 2020 09:49:11 +0000 (11:49 +0200)] 
[3.8] bpo-39191: Don't spawn a task before failing (GH-17796) (GH-17820)

(cherry picked from commit 3a5de511596f17575de082dcb8d43d63b2bd2da9)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years agobpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-17811)
Miss Islington (bot) [Fri, 3 Jan 2020 12:50:11 +0000 (04:50 -0800)] 
bpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-17811)

(cherry picked from commit e02ab59fdffa0bb841182c30ef1355c89578d945)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agoUpdate copyright year in macOS installer license copy (GH-17806)
Miss Islington (bot) [Fri, 3 Jan 2020 03:49:59 +0000 (19:49 -0800)] 
Update copyright year in macOS installer license copy (GH-17806)

(cherry picked from commit 32f1443aa98db769d87db497b45bd0dcb732445b)

Co-authored-by: Ned Deily <nad@python.org>
5 years agoBring Python into the next decade. (GH-17801)
Miss Islington (bot) [Fri, 3 Jan 2020 03:15:37 +0000 (19:15 -0800)] 
Bring Python into the next decade. (GH-17801)

(cherry picked from commit 946b29ea0b3b386ed05e87e60b8617c9dc19cd53)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agobpo-39183: Fix formatting in library/ensurepip (GH-17787)
Miss Islington (bot) [Wed, 1 Jan 2020 22:32:23 +0000 (14:32 -0800)] 
bpo-39183: Fix formatting in library/ensurepip (GH-17787)

Remove extra space to fix formatting and avoid from splitting text in to strings.

https://bugs.python.org/issue39183
(cherry picked from commit 149175c6dfc8455023e4335575f3fe3d606729f9)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
5 years agobpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773) ...
Miss Islington (bot) [Wed, 1 Jan 2020 20:06:52 +0000 (12:06 -0800)] 
bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773) (GH-17785)

(cherry picked from commit 46abfc1416ff8e450999611ef8f231ff871ab133)

5 years agoDocument CodeType.replace (GH-17776)
Miss Islington (bot) [Wed, 1 Jan 2020 06:27:56 +0000 (22:27 -0800)] 
Document CodeType.replace (GH-17776)

(cherry picked from commit 22424c02e51fab3b62cbe255d0b87d1b55b9a6c3)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
5 years agobpo-39176: Improve error message for 'named assignment' (GH-17777) (GH-17778)
Miss Islington (bot) [Wed, 1 Jan 2020 03:28:08 +0000 (19:28 -0800)] 
bpo-39176: Improve error message for 'named assignment' (GH-17777) (GH-17778)

(cherry picked from commit 37143a8e3b2e9245d52f4ddebbdd1c6121c96884)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
5 years agoFix idlelib README typo. (GH-17770)
Miss Islington (bot) [Tue, 31 Dec 2019 18:52:38 +0000 (10:52 -0800)] 
Fix idlelib README typo. (GH-17770)

(cherry picked from commit ba82ee894cf0f6ec9e9f6a313c870ffd2db377e6)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years ago[3.8] bpo-38588: Fix possible crashes in dict and list when calling P… (GH-17764)
Dong-hee Na [Tue, 31 Dec 2019 04:15:36 +0000 (13:15 +0900)] 
[3.8] bpo-38588: Fix possible crashes in dict and list when calling P… (GH-17764)

* [3.8] bpo-38588: Fix possible crashes in dict and list when calling PyObject_RichCompareBool (GH-17734)

Take strong references before calling PyObject_RichCompareBool to protect against the case
where the object dies during the call.
(cherry picked from commit 2d5bf568eaa5059402ccce9ba5a366986ba27c8a)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* Update Objects/listobject.c

@methane's suggestion

Co-Authored-By: Inada Naoki <songofacandy@gmail.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agocloses bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)
Miss Islington (bot) [Tue, 31 Dec 2019 02:51:18 +0000 (18:51 -0800)] 
closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)

(cherry picked from commit d0c92e81aa2171228a23cb2bed36f7dab975257d)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
5 years agobpo-34118: memoryview, range, and tuple are classes (GH-17761)
Miss Islington (bot) [Mon, 30 Dec 2019 22:24:27 +0000 (14:24 -0800)] 
bpo-34118: memoryview, range, and tuple are classes  (GH-17761)

Tag memoryview, range, and tuple as classes, the same as list, etcetera, in
the library manual built-in functions list.
(cherry picked from commit ee9ff05ec22ecd47dbffdd361967ccd55963dad2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-38610: Fix possible crashes in several list methods (GH-17022)
Miss Islington (bot) [Mon, 30 Dec 2019 19:51:06 +0000 (11:51 -0800)] 
bpo-38610: Fix possible crashes in several list methods (GH-17022)

Hold strong references to list elements while calling PyObject_RichCompareBool().
(cherry picked from commit d9e561d23d994e3ed15f4fcbd7ee5c8fe50f190b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-39037: Fix lookup order of magic methods in with statement documentation (GH...
Miss Islington (bot) [Mon, 30 Dec 2019 05:31:18 +0000 (21:31 -0800)] 
bpo-39037: Fix lookup order of magic methods in with statement documentation (GH-17608)

* __enter__ is now looked up before __exit__ to give a more intuitive error message
* add pseudo-code equivalent for the with statement
* fix pseudo-code for the async with statement to use a finally clause
* use SUITE rather than BLOCK for consistency with the language grammar

Patch by Géry Ogam.
(cherry picked from commit 226e6e7d4326cf91ef37e13528eb1f62de1bb832)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
5 years agoFix typos and remove deprecated deprecation warning. (GH-17741)
Miss Islington (bot) [Sun, 29 Dec 2019 22:20:52 +0000 (14:20 -0800)] 
Fix typos and remove deprecated deprecation warning. (GH-17741)

(cherry picked from commit 32a12aed6da41f49a5ca05e6de34f5f93ea1dc33)

Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
5 years ago[3.8] bpo-39136: Fixed typos (GH-17720)
Terry Jan Reedy [Sun, 29 Dec 2019 00:05:15 +0000 (19:05 -0500)] 
[3.8] bpo-39136: Fixed typos (GH-17720)

funtion -> function; configuraton -> configuration; defintitions -> definitions;
focusses -> focuses; necesarily -> necessarily; follwing -> following;
Excape -> Escape,

(cherry picked from commit 6c7bb38ff2799ac218e6df598b2b262f89e2bc1e)

5 years agoReorder entries in Misc/ACKS (GH-17663) (GH-17673)
Éric Araujo [Sat, 28 Dec 2019 20:41:21 +0000 (15:41 -0500)] 
Reorder entries in Misc/ACKS (GH-17663) (GH-17673)

5 years agobpo-38731: Fix function signature of quiet in docs (GH-17719)
Miss Islington (bot) [Sat, 28 Dec 2019 02:58:47 +0000 (18:58 -0800)] 
bpo-38731: Fix function signature of quiet in docs (GH-17719)

(cherry picked from commit 98f0f04b5016e63561d313a3446b7b58f2c12611)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
5 years agobpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib...
Miss Islington (bot) [Sat, 28 Dec 2019 02:50:34 +0000 (18:50 -0800)] 
bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)

(cherry picked from commit ef7eaafc9d2e370cf79b3674e56f643bbfe239e2)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
5 years agocloses bpo-30364: Replace deprecated no_address_safety_analysis attribute. (GH-17702)
Miss Islington (bot) [Fri, 27 Dec 2019 03:10:52 +0000 (19:10 -0800)] 
closes bpo-30364: Replace deprecated no_address_safety_analysis attribute. (GH-17702)

(cherry picked from commit c0052f3fe3d19820b2d4f76e383035439affe32c)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
5 years ago[3.8] closes bpo-39135: Remove 'time.clock()' mention in docs. (GH-17713)
Benjamin Peterson [Fri, 27 Dec 2019 03:07:21 +0000 (21:07 -0600)] 
[3.8] closes bpo-39135: Remove 'time.clock()' mention in docs. (GH-17713)

`time.clock()` was removed in Python 3.8, but it was still mentioned
in the documentation for when `time.get_clock_info()` is given the
argument `'clock'`. This commit removes that mention.
(cherry picked from commit 91874bb07161bb481b6f5ea18ffafe69cb8cac30)

Co-authored-by: Michael Wayne Goodman <goodman.m.w@gmail.com>
5 years agobpo-33961: Adjusted dataclasses docs to correct exceptions raised. (GH-7917) (GH...
Miss Islington (bot) [Wed, 25 Dec 2019 22:51:22 +0000 (14:51 -0800)] 
bpo-33961: Adjusted dataclasses docs to correct exceptions raised. (GH-7917) (GH-17677)

(cherry picked from commit e28aff54d95236ea1b64b648d89a1516e446e621)

Co-authored-by: Fabio Sangiovanni <4040184+sanjioh@users.noreply.github.com>
5 years agoFix the miscellaneous typo (GH-17700)
Miss Islington (bot) [Wed, 25 Dec 2019 15:45:52 +0000 (07:45 -0800)] 
Fix the miscellaneous typo (GH-17700)

A character "i" is omitted.
(cherry picked from commit 527f9de6efdcf09983d0764be0b978ddc1fd1653)

Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
5 years agobpo-38753: AsyncMock added in version 3.8 (GH-17102)
Miss Islington (bot) [Wed, 25 Dec 2019 04:42:24 +0000 (20:42 -0800)] 
bpo-38753: AsyncMock added in version 3.8 (GH-17102)

(cherry picked from commit 279d8df5e5e8bbd4429420649359f7afcb4c8cce)

Co-authored-by: John Belmonte <john@neggie.net>
5 years agoMinor C API documentation improvements. (GH-17697)
Miss Islington (bot) [Wed, 25 Dec 2019 04:35:01 +0000 (20:35 -0800)] 
Minor C API documentation improvements. (GH-17697)

The added parentheses around the PyIter_Next assignment suppress the following warning which gcc throws without:
```
warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
```
The other change is a typo fix
(cherry picked from commit 5c7ed7550ec2da16d7679e538fcd7c1a5631811f)

Co-authored-by: William Ayd <william.ayd@icloud.com>
5 years agoFix import path for asyncio.TimeoutError (GH-17691)
Miss Islington (bot) [Tue, 24 Dec 2019 11:04:12 +0000 (03:04 -0800)] 
Fix import path for asyncio.TimeoutError (GH-17691)

(cherry picked from commit 025eeaa19607b2a80c979668dad405f567444573)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years ago[3.8] bpo-38878: Fix os.PathLike __subclasshook__ (GH-17336) (GH-17684)
Bar Harel [Mon, 23 Dec 2019 18:31:00 +0000 (20:31 +0200)] 
[3.8] bpo-38878: Fix os.PathLike __subclasshook__ (GH-17336) (GH-17684)

https://bugs.python.org/issue38878

5 years agoDoc typo (GH-17667) (#17668)
Miss Islington (bot) [Mon, 23 Dec 2019 15:52:29 +0000 (07:52 -0800)] 
Doc typo (GH-17667) (#17668)

(cherry picked from commit b0d4949f1fb04f83691e10a5453d1e10e4598bb9)

Co-authored-by: Jesús Cea <jcea@jcea.es>
Co-authored-by: Jesús Cea <jcea@jcea.es>
5 years ago[typo] fix dupe in datetime.fromisoformat docs (GH-17295)
Miss Islington (bot) [Mon, 23 Dec 2019 14:44:04 +0000 (06:44 -0800)] 
[typo] fix dupe in datetime.fromisoformat docs (GH-17295)

Fixes a nearly word for word duplication of a sentence that appears
earlier in the caution section of datetime.datetime.fromisoformat in
Doc/Library/datetime.rst.

No issue created as it's a trivial change.

Automerge-Triggered-By: @pganssle
(cherry picked from commit e7b406f4e20e248d24079f97d7c8b93e5a45249e)

Co-authored-by: Michael Morehouse <640167+yawpitch@users.noreply.github.com>
5 years agoAdd missing markup (GH-17680)
Miss Islington (bot) [Sun, 22 Dec 2019 17:54:33 +0000 (09:54 -0800)] 
Add missing markup (GH-17680)

"HH", "MM" and "ffffff" are enclosed with double back quotes, but "SS" is left being bare
(cherry picked from commit 068768faf6b82478de239d7ab903dfb249ad96a4)

Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
5 years agobpo-38918: Add __module__ entry for function & method type in inspect docs table...
Miss Islington (bot) [Fri, 20 Dec 2019 19:26:39 +0000 (11:26 -0800)] 
bpo-38918: Add __module__ entry for function & method type in inspect docs table (GH-17408)

Adds` __module__ ` entries for function & method types in inspect docs table.

https://bugs.python.org/issue38918
(cherry picked from commit f522a6ddb67a238bab5673608111f74ec4e22205)

Co-authored-by: Parth Sharma <parthsharma2@users.noreply.github.com>
5 years ago[3.8] bpo-38316: Fix co_stacksize documentation (GH-16983) (GH-17661)
Batuhan Taşkaya [Thu, 19 Dec 2019 14:44:27 +0000 (17:44 +0300)] 
[3.8] bpo-38316: Fix co_stacksize documentation (GH-16983) (GH-17661)

(cherry picked from commit d587272fe3b0fcad2f23a490e76f9f82ca7d64ef)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
https://bugs.python.org/issue38316

Automerge-Triggered-By: @vstinner
5 years agoPost 3.8.1
Łukasz Langa [Thu, 19 Dec 2019 08:01:48 +0000 (09:01 +0100)] 
Post 3.8.1

5 years agoMerge tag 'v3.8.1' into 3.8
Łukasz Langa [Thu, 19 Dec 2019 08:00:46 +0000 (09:00 +0100)] 
Merge tag 'v3.8.1' into 3.8

Python 3.8.1

5 years agobpo-38546: Fix concurrent.futures test_ressources_gced_in_workers() (GH-17652) (GH...
Victor Stinner [Wed, 18 Dec 2019 20:30:43 +0000 (21:30 +0100)] 
bpo-38546: Fix concurrent.futures test_ressources_gced_in_workers() (GH-17652) (GH-17655)

Fix test_ressources_gced_in_workers() of test_concurrent_futures:
explicitly stop the manager to prevent leaking a child process
running in the background after the test completes.

(cherry picked from commit 673c39331f844a80c465efd7cff88ac55c432bfb)

5 years agoPython 3.8.1 v3.8.1
Łukasz Langa [Wed, 18 Dec 2019 17:21:23 +0000 (18:21 +0100)] 
Python 3.8.1

5 years agobpo-38546: multiprocessing tests stop the resource tracker (GH-17641) (GH-17647)
Victor Stinner [Wed, 18 Dec 2019 09:11:05 +0000 (10:11 +0100)] 
bpo-38546: multiprocessing tests stop the resource tracker (GH-17641) (GH-17647)

Multiprocessing and concurrent.futures tests now stop the resource
tracker process when tests complete.

Add ResourceTracker._stop() method to
multiprocessing.resource_tracker.

Add _cleanup_tests() helper function to multiprocessing.util: share
code between multiprocessing and concurrent.futures tests.

(cherry picked from commit 9707e8e22d80ca97bf7a9812816701cecde6d226)

5 years ago[3.8] bpo-39080: Starred Expression's column offset fix when inside a CALL (GH-17645...
Pablo Galindo [Wed, 18 Dec 2019 01:41:58 +0000 (01:41 +0000)] 
[3.8] bpo-39080: Starred Expression's column offset fix when inside a CALL (GH-17645) (GH-17649)


Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 50d4f12958bf806a4e1a1021d70cfd5d448c5cba)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
https://bugs.python.org/issue39080

5 years agobpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina...
Ned Deily [Tue, 17 Dec 2019 09:05:41 +0000 (04:05 -0500)] 
bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636)

5 years agoFix warnings in test_asyncio.test_base_events (GH-17577) (GH-17579)
Miss Islington (bot) [Tue, 17 Dec 2019 04:11:11 +0000 (20:11 -0800)] 
Fix warnings in test_asyncio.test_base_events (GH-17577) (GH-17579)

Co-authored-by: tirkarthi
(cherry picked from commit 1988344a6bff253f017e053f69318ecf03587294)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
5 years ago[3.8] Add whatsnew for removal of asyncio.loop.create_datagram_endpoint()'s *reuse_ad...
Kyle Stanley [Tue, 17 Dec 2019 04:01:19 +0000 (23:01 -0500)] 
[3.8] Add whatsnew for removal of asyncio.loop.create_datagram_endpoint()'s *reuse_address* parameter (GH-17595). (#17630)

(cherry picked from commit f501db2b93a9d3d840b6fb38d6bdda8bcc400d4a)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
5 years agobpo-38811: Check for presence of os.link method in pathlib (GH-17225)
Miss Islington (bot) [Mon, 16 Dec 2019 12:42:20 +0000 (04:42 -0800)] 
bpo-38811: Check for presence of os.link method in pathlib (GH-17225)

Commit 6b5b013bcc22 ("bpo-26978: Implement pathlib.Path.link_to (Using
os.link) (GH-12990)") introduced a new link_to method in pathlib. However,
this makes pathlib crash when the 'os' module is missing a 'link' method.

Fix this by checking for the presence of the 'link' method on pathlib
module import, and if it's not present, turn it into a runtime error like
those emitted when there is no lchmod() or symlink().

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
(cherry picked from commit 092435e932dee1802784ec28f39454f50fdd879a)

Co-authored-by: Toke Høiland-Jørgensen <toke@redhat.com>
5 years agoThe comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586) 17624/head
Miss Islington (bot) [Sun, 15 Dec 2019 20:04:07 +0000 (12:04 -0800)] 
The comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586)

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

Co-authored-by: Guido van Rossum <guido@python.org>
5 years agobpo-39035: travis: Don't use beta group (GH-17603)
Inada Naoki [Sat, 14 Dec 2019 14:01:54 +0000 (23:01 +0900)] 
bpo-39035: travis: Don't use beta group (GH-17603)

5 years agoFix elif start column offset when there is an else following (GH-17596) (GH-17600)
Miss Islington (bot) [Sat, 14 Dec 2019 10:43:42 +0000 (02:43 -0800)] 
Fix elif start column offset when there is an else following (GH-17596) (GH-17600)

(cherry picked from commit 5936a4ce914d42af97b9238e5090dedc8d5b0bd2)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years agoAdd PYTHONUTF8 to commandline usage. (GH-17587)
Miss Islington (bot) [Sat, 14 Dec 2019 10:38:35 +0000 (02:38 -0800)] 
Add PYTHONUTF8 to commandline usage. (GH-17587)

Co-Authored-By: Victor Stinner <vstinner@python.org>
(cherry picked from commit 95826c773a9004fc5b3c89de55f800504685ab21)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-36406: Handle namespace packages in doctest (GH-12520) (GH-17591)
Miss Islington (bot) [Fri, 13 Dec 2019 23:30:41 +0000 (15:30 -0800)] 
bpo-36406: Handle namespace packages in doctest (GH-12520) (GH-17591)

(cherry picked from commit 8289e27393395ee903bd096d42e07c112d7f15c6)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
5 years agobpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt...
Miss Islington (bot) [Fri, 13 Dec 2019 16:21:54 +0000 (08:21 -0800)] 
bpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt (GH-17582) (GH-17589)

When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node.

https://bugs.python.org/issue39031

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

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years agobpo-39022, bpo-38594: Sync with importlib_metadata 1.3 (GH-17568) (GH-17569)
Miss Islington (bot) [Wed, 11 Dec 2019 01:47:06 +0000 (17:47 -0800)] 
bpo-39022, bpo-38594: Sync with importlib_metadata 1.3 (GH-17568) (GH-17569)

* bpo-39022, bpo-38594: Sync with importlib_metadata 1.3 including improved docs for custom finders and better serialization support in EntryPoints.

* 📜🤖 Added by blurb_it.

* Correct module reference
(cherry picked from commit b7a0109cd2bafaa21a4d50aad307e901c68f9156)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
5 years agobpo-39012: Fix RC version suffix for nuget release files (GH-17564)
Miss Islington (bot) [Tue, 10 Dec 2019 23:40:02 +0000 (15:40 -0800)] 
bpo-39012: Fix RC version suffix for nuget release files (GH-17564)

(cherry picked from commit d0802d07d2c864b95480a9b24c7cc050e19189d5)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years ago[3.8] Minor fixes to the NEWS entries (GH-17557)
Pablo Galindo [Tue, 10 Dec 2019 16:11:33 +0000 (16:11 +0000)] 
[3.8] Minor fixes to the NEWS entries (GH-17557)

Automerge-Triggered-By: @pablogsal
5 years agoPost 3.8.1rc1
Łukasz Langa [Tue, 10 Dec 2019 08:13:16 +0000 (09:13 +0100)] 
Post 3.8.1rc1

5 years agoMerge tag 'v3.8.1rc1' into 3.8
Łukasz Langa [Tue, 10 Dec 2019 08:12:15 +0000 (09:12 +0100)] 
Merge tag 'v3.8.1rc1' into 3.8

Python 3.8.1rc1

5 years agoFix Windows release builds (GH-17550)
Miss Islington (bot) [Tue, 10 Dec 2019 05:28:10 +0000 (21:28 -0800)] 
Fix Windows release builds (GH-17550)

(cherry picked from commit abdeb57a212556b4cd3568cca7d316d71a5b8cf0)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-39002: Fix simple typo: tranlation -> translation (GH-17517) (GH-17538)
Miss Islington (bot) [Tue, 10 Dec 2019 01:35:25 +0000 (17:35 -0800)] 
bpo-39002: Fix simple typo: tranlation -> translation (GH-17517) (GH-17538)

(cherry picked from commit c18b805ac6a2d22176240ca93982fa1fb6559ec7)

Co-authored-by: Tim Gates <tim.gates@iress.com>
5 years agobpo-38943: Fix IDLE autocomplete window not always appearing (GH-17416)
Miss Islington (bot) [Tue, 10 Dec 2019 00:48:20 +0000 (16:48 -0800)] 
bpo-38943: Fix IDLE autocomplete window not always appearing (GH-17416)

This has happened on some versions of Ubuntu.
(cherry picked from commit bbc4162bafe018f07bab0b624b37974cc33daad9)

Co-authored-by: JohnnyNajera <58344607+JohnnyNajera@users.noreply.github.com>
5 years agobpo-38944: Escape key now closes IDLE completion windows. (GH-17419)
Miss Islington (bot) [Mon, 9 Dec 2019 23:38:33 +0000 (15:38 -0800)] 
bpo-38944: Escape key now closes IDLE completion windows. (GH-17419)

(cherry picked from commit 232689b40d8fcbbac27c8705607ff482ea5b46f8)

Co-authored-by: JohnnyNajera <58344607+JohnnyNajera@users.noreply.github.com>
5 years agobpo-39007: Add auditing events to functions in winreg (GH-17541)
Miss Islington (bot) [Mon, 9 Dec 2019 19:36:25 +0000 (11:36 -0800)] 
bpo-39007: Add auditing events to functions in winreg (GH-17541)

Also allows winreg.CloseKey() to accept same types as other functions.
(cherry picked from commit ee17e3735634c5fe15a43f897707de8011618627)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-39008: Require Py_ssize_t for PySys_Audit formats rather than raise a deprecation...
Miss Islington (bot) [Mon, 9 Dec 2019 19:22:30 +0000 (11:22 -0800)] 
bpo-39008: Require Py_ssize_t for PySys_Audit formats rather than raise a deprecation warning (GH-17540)

(cherry picked from commit b8cbe74c3498c617f0e73fd0cdc5c07f2c532092)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agoPython 3.8.1rc1 v3.8.1rc1
Łukasz Langa [Mon, 9 Dec 2019 17:47:55 +0000 (18:47 +0100)] 
Python 3.8.1rc1

5 years agobpo-38992: avoid fsum test failure from constant-folding (GH-17513) (GH-17530)
Miss Islington (bot) [Mon, 9 Dec 2019 17:32:34 +0000 (09:32 -0800)] 
bpo-38992: avoid fsum test failure from constant-folding (GH-17513) (GH-17530)

* Issue 38992: avoid fsum test failure

* Add NEWS entry
(cherry picked from commit bba873e633f0f1e88ea12fb935cbd58faa77f976)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
5 years agoFix APPX registry key generation (GH-17489)
Miss Islington (bot) [Mon, 9 Dec 2019 17:02:22 +0000 (09:02 -0800)] 
Fix APPX registry key generation (GH-17489)

(cherry picked from commit e89e159b18cc9f32a0a4a818d080eb6a63d888a7)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-34776: Fix dataclasses to support __future__ "annotations" mode (GH-9518) (#17531)
Miss Islington (bot) [Mon, 9 Dec 2019 16:07:51 +0000 (08:07 -0800)] 
bpo-34776: Fix dataclasses to support __future__ "annotations" mode (GH-9518) (#17531)

(cherry picked from commit d219cc4180e7589807ebbef7421879f095e72a98)

Co-authored-by: Yury Selivanov <yury@magic.io>
5 years agobpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR (GH-17311...
Miss Islington (bot) [Mon, 9 Dec 2019 14:39:54 +0000 (06:39 -0800)] 
bpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR (GH-17311) (#17529)

(cherry picked from commit ab513a38c98695f271e448fe2cb7c5e39eeaaaaf)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
5 years agobpo-39006: Fix asyncio when the ssl module is missing (GH-17524)
Miss Islington (bot) [Mon, 9 Dec 2019 14:19:48 +0000 (06:19 -0800)] 
bpo-39006: Fix asyncio when the ssl module is missing (GH-17524)

Fix asyncio when the ssl module is missing: only check for
ssl.SSLSocket instance if the ssl module is available.
(cherry picked from commit 82b4950b5e92bec343a436b3f9c116400b66e1b9)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-38916: Document array.array deprecation (GH-17523)
Victor Stinner [Mon, 9 Dec 2019 13:46:33 +0000 (14:46 +0100)] 
bpo-38916: Document array.array deprecation (GH-17523)

array.array: Document that tostring() and fromstring() deprecated
aliases will be removed in Python 3.9.

5 years agobpo-38547: Fix test_pty if the process is the session leader (GH-17519)
Miss Islington (bot) [Mon, 9 Dec 2019 11:15:23 +0000 (03:15 -0800)] 
bpo-38547: Fix test_pty if the process is the session leader (GH-17519)

Fix test_pty: if the process is the session leader, closing the
master file descriptor raises a SIGHUP signal: simply ignore SIGHUP
when running the tests.
(cherry picked from commit a1838ec2592e5082c75c77888f2a7a3eb21133e5)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-38669: patch.object now raises a helpful error (GH17510)
Miss Islington (bot) [Mon, 9 Dec 2019 06:59:04 +0000 (22:59 -0800)] 
bpo-38669: patch.object now raises a helpful error (GH17510)

This means a clearer message is now shown when patch.object is called with two string arguments, rather than a class and a string argument.
(cherry picked from commit cd90a52983db34896a6335a572d55bdda274778f)

Co-authored-by: Elena Oat <oat.elena@gmail.com>
5 years agobpo-38673: dont switch to ps2 if the line starts with comment or whitespace (GH-17421)
Miss Islington (bot) [Mon, 9 Dec 2019 04:56:19 +0000 (20:56 -0800)] 
bpo-38673: dont switch to ps2 if the line starts with comment or whitespace (GH-17421)

https://bugs.python.org/issue38673
(cherry picked from commit 109fc2792a490ee5cd8a423e17d415fbdedec5c8)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
5 years agobpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504)
Miss Islington (bot) [Mon, 9 Dec 2019 02:12:50 +0000 (18:12 -0800)] 
bpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504)

Fix a potential IndexError when passing an empty value to the message-id
parser. Instead, HeaderParseError should be raised.
(cherry picked from commit 3ae4ea1931361dd2743e464790e739d9285501bf)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
5 years agobpo-38698: Add a new InvalidMessageID token to email header parser. (GH-17503)
Miss Islington (bot) [Mon, 9 Dec 2019 02:11:31 +0000 (18:11 -0800)] 
bpo-38698: Add a new InvalidMessageID token to email header parser. (GH-17503)

This adds a new InvalidMessageID token to the email header parser which can be
used to represent invalid message-id headers in the parse tree.
(cherry picked from commit 68157da8b42b26408af5d157d2dba4fcf29c6320)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
5 years agobpo-38979: fix ContextVar "__class_getitem__" method (GH-17497)
Miss Islington (bot) [Sun, 8 Dec 2019 12:49:07 +0000 (04:49 -0800)] 
bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497)

now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None.

https://bugs.python.org/issue38979

Automerge-Triggered-By: @asvetlov
(cherry picked from commit 28c91631c24e53713ad0e8a2bbae716373f5e53d)

Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
5 years ago[3.8] bpo-38820: OpenSSL 3.0.0 compatibility. (GH-17190) (GH-17499)
Miss Islington (bot) [Sat, 7 Dec 2019 17:20:27 +0000 (09:20 -0800)] 
[3.8] bpo-38820: OpenSSL 3.0.0 compatibility. (GH-17190) (GH-17499)

test_openssl_version now accepts version 3.0.0.

getpeercert() no longer returns IPv6 addresses with a trailing new line.

Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue38820
(cherry picked from commit 2b7de6696bf2f924cd2cd9ff0a539c8aa37c6244)

Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue38820

Automerge-Triggered-By: @tiran
5 years ago[3.8] bpo-37404: Raising value error if an SSLSocket is passed to asyncio functions...
Andrew Svetlov [Sat, 7 Dec 2019 12:44:20 +0000 (14:44 +0200)] 
[3.8] bpo-37404: Raising value error if an SSLSocket is passed to asyncio functions (GH-16457) (#17496)

https://bugs.python.org/issue37404
(cherry picked from commit 892f9e0777f262d366d4747a54c33a1c15a49da6)

Co-authored-by: idomic <michael.ido@gmail.com>
5 years agoMake repr of C accelerated TaskWakeupMethWrapper the same as of pure Python version...
Miss Islington (bot) [Sat, 7 Dec 2019 11:41:41 +0000 (03:41 -0800)] 
Make repr of C accelerated TaskWakeupMethWrapper the same as of pure Python version (GH-17484)

(cherry picked from commit 969ae7aca809a8dacafee04c261110eea0ac1945)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years agobpo-38529: Fix asyncio stream warning (GH-17474)
Miss Islington (bot) [Sat, 7 Dec 2019 11:39:57 +0000 (03:39 -0800)] 
bpo-38529: Fix asyncio stream warning (GH-17474)

(cherry picked from commit 7ddcd0caa4c2e6b43265df144f59c5aa508a94f2)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years agobpo-37931: Fix crash on OSX re-initializing os.environ (GH-15428)
Miss Islington (bot) [Fri, 6 Dec 2019 19:32:33 +0000 (11:32 -0800)] 
bpo-37931: Fix crash on OSX re-initializing os.environ (GH-15428)

On most platforms, the `environ` symbol is accessible everywhere.

In a dylib on OSX, it's not easily accessible, you need to find it with
_NSGetEnviron.

The code was caching the *value* of environ. But a setenv() can change the value,
leaving garbage at the old value. Fix: don't cache the value of environ, just
read it every time.
(cherry picked from commit 723f71abf7ab0a7be394f9f7b2daa9ecdf6fb1eb)

Co-authored-by: Benoit Hudson <benoit@imgspc.com>
5 years agobpo-33125: Add support for building and releasing Windows ARM64 packages (GH-17480)
Steve Dower [Fri, 6 Dec 2019 17:40:39 +0000 (09:40 -0800)] 
bpo-33125: Add support for building and releasing Windows ARM64 packages (GH-17480)

Note that the support is not actually enabled yet, and so we won't be publishing these packages. However, for those who want to build it themselves (even by reusing the Azure Pipelines definition), it's now relatively easy to enable.

5 years agobpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py (GH-13135)
Miss Islington (bot) [Fri, 6 Dec 2019 14:59:49 +0000 (06:59 -0800)] 
bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py (GH-13135)

Break cycle generated when saving an exception in socket.py, codeop.py and dyld.py as they keep alive not only the exception but user objects through the ``__traceback__`` attribute.

https://bugs.python.org/issue36820

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

Co-authored-by: Mario Corchero <mcorcherojim@bloomberg.net>
5 years agobpo-38698: Prevent UnboundLocalError to pop up in parse_message_id (GH-17277)
Miss Islington (bot) [Thu, 5 Dec 2019 17:42:01 +0000 (09:42 -0800)] 
bpo-38698: Prevent UnboundLocalError to pop up in parse_message_id (GH-17277)

parse_message_id() was improperly using a token defined inside an exception
handler, which was raising `UnboundLocalError` on parsing an invalid value.

https://bugs.python.org/issue38698
(cherry picked from commit bb815499af855b1759c02535f8d7a9d0358e74e8)

Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
5 years ago[3.8] bpo-38270: Fix indentation of test_hmac assertions (GH-17446) (GH-17450)
Miss Islington (bot) [Thu, 5 Dec 2019 16:51:30 +0000 (08:51 -0800)] 
[3.8] bpo-38270: Fix indentation of test_hmac assertions (GH-17446) (GH-17450)

Since https://github.com/python/cpython/commit/c64a1a61e6fc542cada40eb069a239317e1af36e two assertions were indented and thus ignored when running test_hmac.

This PR fixes it. As the change is quite trivial I didn't add a NEWS entry.

https://bugs.python.org/issue38270
(cherry picked from commit 894331838b256412c95d54051ec46a1cb96f52e7)

Co-authored-by: stratakis <cstratak@redhat.com>
https://bugs.python.org/issue38270

Automerge-Triggered-By: @tiran
5 years agobpo-38965: Fix faulthandler._stack_overflow() on GCC 10 (GH-17467)
Miss Islington (bot) [Wed, 4 Dec 2019 20:30:31 +0000 (12:30 -0800)] 
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10 (GH-17467)

Use the "volatile" keyword to prevent tail call optimization
on any compiler, rather than relying on compiler specific pragma.
(cherry picked from commit 8b787964e0a647caa0558b7c29ae501470d727d9)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-38634: Allow non-apple build to cope with libedit (GH-16986)
Miss Islington (bot) [Wed, 4 Dec 2019 16:21:16 +0000 (08:21 -0800)] 
bpo-38634: Allow non-apple build to cope with libedit (GH-16986)

The readline module now detects if Python is linked to libedit at runtime
on all platforms.  Previously, the check was only done on macOS.

If Python is used as a library by a binary linking to libedit, the linker
resolves the rl_initialize symbol required by the readline module against
libedit instead of libreadline, which leads to a segfault.

Take advantage of the existing supporting code to have readline module being
compatible with both situations.
(cherry picked from commit 7105319ada2e663659020cbe9fdf7ff38f421ab2)

Co-authored-by: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
5 years agobpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460)
Miss Islington (bot) [Wed, 4 Dec 2019 09:57:55 +0000 (01:57 -0800)] 
bpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460)

(cherry picked from commit 808769f3a4cbdc47cf1a5708dd61b1787bb192d4)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-27873: Update docstring for multiprocessing.Pool.map (GH-17436)
Miss Islington (bot) [Tue, 3 Dec 2019 23:37:40 +0000 (15:37 -0800)] 
bpo-27873: Update docstring for multiprocessing.Pool.map (GH-17436)

Update docstring for `multiprocessing.Pool.map` to mention `pool.starmap()`.

Prev PR: https://github.com/python/cpython/pull/17367  @aeros

https://bugs.python.org/issue27873
(cherry picked from commit eb48a451e3844185b9a8751c9badffbddc89689d)

Co-authored-by: An Long <aisk@users.noreply.github.com>
5 years agobpo-38945: UU Encoding: Don't let newline in filename corrupt the output format ...
Miss Islington (bot) [Mon, 2 Dec 2019 22:44:44 +0000 (14:44 -0800)] 
bpo-38945: UU Encoding: Don't let newline in filename corrupt the output format (GH-17418)

(cherry picked from commit a62ad4730c9b575f140f24074656c0257c86a09a)

Co-authored-by: Matthew Rollings <1211162+stealthcopter@users.noreply.github.com>
5 years agobpo-38815: Accept TLSv3 default in min max test (GH-NNNN) (GH-17437)
Miss Islington (bot) [Mon, 2 Dec 2019 16:34:44 +0000 (08:34 -0800)] 
bpo-38815: Accept TLSv3 default in min max test (GH-NNNN) (GH-17437)

Make ssl tests less strict and also accept TLSv3 as the default maximum
version. This change unbreaks test_min_max_version on Fedora 32.

https://bugs.python.org/issue38815
(cherry picked from commit 34864d1cffdbfc620f8517dab9a68ae9a37b8c53)

Co-authored-by: torsava <torsava@redhat.com>
5 years agobpo-38449: Add URL delimiters test cases (GH-16729)
Miss Islington (bot) [Sun, 1 Dec 2019 23:24:17 +0000 (15:24 -0800)] 
bpo-38449: Add URL delimiters test cases (GH-16729)

* bpo-38449: Add tricky test cases

* bpo-38449: Reflect codereview
(cherry picked from commit 2fe4c48917c2d1b40cf063c6ed22ae2e71f4cb62)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
5 years agodocument threading.Lock.locked() (GH-17427)
Miss Islington (bot) [Sun, 1 Dec 2019 20:14:26 +0000 (12:14 -0800)] 
document threading.Lock.locked() (GH-17427)

(cherry picked from commit fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388)

Co-authored-by: idomic <michael.ido@gmail.com>
5 years agoFix typos (GH-17423)
Miss Islington (bot) [Sun, 1 Dec 2019 05:52:39 +0000 (21:52 -0800)] 
Fix typos (GH-17423)

(cherry picked from commit 575d0b46d122292ca6e0576a91265d7abf7cbc3d)

Co-authored-by: Ofek Lev <ofekmeister@gmail.com>
5 years ago[3.8] Added missing coma after end of list in subprocess.rst (GH-17389)
Jules Lasne (jlasne) [Fri, 29 Nov 2019 04:47:45 +0000 (05:47 +0100)] 
[3.8] Added missing coma after end of list in subprocess.rst (GH-17389)

(cherry picked from commit f25875af425a3480e557aaedf49c3bb867bcbd5d)

5 years agobpo-38920: Add audit hooks for when sys.excepthook and sys.unraisablehook are invoked...
Steve Dower [Thu, 28 Nov 2019 16:46:23 +0000 (08:46 -0800)] 
bpo-38920: Add audit hooks for when sys.excepthook and sys.unraisablehook are invoked (GH-17392)

Also fixes some potential segfaults in unraisable hook handling.

5 years agobpo-38928: Remove upgrade_dependencies() from venv doc (GH-17410)
Tzu-ping Chung [Thu, 28 Nov 2019 15:44:08 +0000 (23:44 +0800)] 
bpo-38928: Remove upgrade_dependencies() from venv doc (GH-17410)