]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Thu, 23 Jan 2020 04:11:53 +0000 (20:11 -0800)]
bpo-39050: The Help button in IDLE's config menu works again (GH-17611)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
2e43b64c94e49f7133b9c26e84c9519935c49063 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Wed, 22 Jan 2020 18:11:30 +0000 (10:11 -0800)]
bpo-39425: Fix list.count performance regression (GH-18119) (GH-18121)
https://bugs.python.org/issue39425
Automerge-Triggered-By: @pablogsal
(cherry picked from commit
14d80d0b605d8b148e14458e4c1853a940071462 )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Miss Islington (bot) [Wed, 22 Jan 2020 12:56:22 +0000 (04:56 -0800)]
bpo-39413: os.unsetenv() is not available on Windows (GH-18108)
Update os.unsetenv() documentation: it is not available on Windows.
(cherry picked from commit
f84f65be5602e561fef04b66bb487fbc4e560db5 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 21 Jan 2020 19:21:41 +0000 (11:21 -0800)]
PyLong_AsLongLong() docs should say 'long long' (GH-18082) (#18109)
(cherry picked from commit
47be7d0108b4021ede111dbd15a095c725be46b7 )
Co-authored-by: Keith Erskine <toastie604@gmail.com>
Co-authored-by: Keith Erskine <toastie604@gmail.com>
Miss Islington (bot) [Tue, 21 Jan 2020 10:28:48 +0000 (02:28 -0800)]
bpo-32989: IDLE - fix bad editor call of pyparse method (GH-5968)
Fix comments and add tests for editor newline_and_indent_event method.
Remove unused None default for function parameter of pyparse find_good_parse_start method
and code triggered by that default.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
ec64640a2c5236d7a5d5470d759172a3d93eab0b )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Miss Islington (bot) [Tue, 21 Jan 2020 01:04:36 +0000 (17:04 -0800)]
improve the documentation of the LOAD_METHOD and CALL_METHOD (GH-18079)
(cherry picked from commit
8698b34b68065b80bd9bd18b8decb425208fa386 )
Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
Miss Islington (bot) [Mon, 20 Jan 2020 23:28:18 +0000 (15:28 -0800)]
bpo-39383: Mention Darwin as a potential value for platform.system() (GH-18054)
(cherry picked from commit
8d57a4182f0aa68e16d66dea31ba59e732612b4f )
Co-authored-by: Peter Bittner <django@bittner.it>
Miss Islington (bot) [Mon, 20 Jan 2020 23:07:54 +0000 (15:07 -0800)]
bpo-39386: Prevent double awaiting of async iterator (GH-18081)
(cherry picked from commit
a96e06db77dcbd3433d39761ddb4615d7d96284a )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Mon, 20 Jan 2020 22:51:57 +0000 (14:51 -0800)]
Fix asyncio.get_event_loop() documentation (GH-18051)
Mention that the function implicitly creates new event loop only if called from the main thread.
(cherry picked from commit
2c49becc69c05934996a00b902e4a4f089b91954 )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Sun, 19 Jan 2020 23:43:12 +0000 (15:43 -0800)]
bpo-38400 Don't check for NULL linked list pointers in _PyObject_IsFreed (GH-16630)
Some objects like Py_None are not initialized with conventional means
that prepare the circular linked list pointers, leaving them unlinked
from the rest of the objects. For those objects, NULL pointers does
not mean that they are freed, so we need to skip the check in those
cases.
(cherry picked from commit
36e33c360ed7716a2b5ab2b53210da81f8ce1295 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sun, 19 Jan 2020 22:44:04 +0000 (14:44 -0800)]
bpo-35561: Supress valgrind false alarm on epoll_ctl(event) (GH-18060)
Update Misc/valgrind-python.supp to suppress the false alarm.
(cherry picked from commit
d8ef64422a75f40cecdb1a7ee43492607d3daaf6 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Sun, 19 Jan 2020 10:48:40 +0000 (02:48 -0800)]
Fix typo from base to based (GH-18055)
(cherry picked from commit
558f07891170fe5173f277d3749e92d844de0a27 )
Co-authored-by: Michael Haas <micha2718l@gmail.com>
Miss Islington (bot) [Fri, 17 Jan 2020 23:00:47 +0000 (15:00 -0800)]
Fix Lock.locked() to remove extra bold highlighting (GH-18042) (#18044)
(cherry picked from commit
ef8844f1bcbea994a2a69b5a70309369d08b555c )
Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
Miss Islington (bot) [Thu, 16 Jan 2020 00:00:32 +0000 (16:00 -0800)]
bpo-39348: Fix code highlight for the SOCK_NONBLOCK example (GH-18018)
The previous double colon was wrongly place directly after Therefore.
Which produced a block without syntax highlighting. This fixes it
by separating the double colon from the text. As a result, sphinx now
properly highlights the python code.
https://bugs.python.org/issue39348
(cherry picked from commit
fad8b5674c66d9e00bb788e30adddb0c256c787b )
Co-authored-by: Oz N Tiram <oz.tiram@noris.de>
Miss Islington (bot) [Wed, 15 Jan 2020 20:19:39 +0000 (12:19 -0800)]
[3.7] Fix typo in multiprocessing.pool.AsyncResult.successful doc. (GH-17932) (GH-18016)
Since 3.7 `successful` raises a `ValueError` as explained in the next text block from the documentation:
_Changed in version 3.7: If the result is not ready, ValueError is raised instead of AssertionError._
No issue associated with this PR.
Should be backported in 3.7 and 3.8.
(cherry picked from commit
dc0284ee8f7a270b6005467f26d8e5773d76e959 )
Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
Automerge-Triggered-By: @pitrou
Miss Islington (bot) [Tue, 14 Jan 2020 20:14:56 +0000 (12:14 -0800)]
Fix documentation in code.py (GH-17988)
(cherry picked from commit
b4cdb3f60e71888d7f3d4e0d40cb31e968ea160c )
Co-authored-by: Kyle Pollina <kylepollina@protonmail.com>
Miss Islington (bot) [Mon, 13 Jan 2020 19:30:00 +0000 (11:30 -0800)]
bpo-39310: Update sys.float_info documentation (GH-17982)
Specify that sys.float_info.min is only the minimum normalized float.
(cherry picked from commit
9362f8526e42157baf27df982b16f23f212c3c3a )
Co-authored-by: Victor Stinner <vstinner@python.org>
Vinay Sajip [Sun, 12 Jan 2020 20:55:54 +0000 (20:55 +0000)]
[3.7] bpo-16575: Disabled checks for union types being passed by value. (GH-17960) (GH-17970)
Although the underlying libffi issue remains open, adding these
checks have caused problems in third-party projects which are in
widespread use. See the issue for examples.
The corresponding tests have also been skipped.
(cherry picked from commit
c12440c371025bea9c3bfb94945f006c486c2c01 )
Miss Islington (bot) [Sun, 12 Jan 2020 20:44:22 +0000 (12:44 -0800)]
bpo-3530: Add advice on when to correctly use fix_missing_locations in the AST docs (GH-17172)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit
6680f4a9f5d15ab82b2ab6266c6f917cb78c919a )
Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
Miss Islington (bot) [Sun, 12 Jan 2020 18:00:27 +0000 (10:00 -0800)]
bpo-38293: Allow shallow and deep copying of property objects (GH-16438)
Copying property objects results in a TypeError. Steps to reproduce:
```
>>> import copy
>>> obj = property()
>>> copy.copy(obj)
````
This affects both shallow and deep copying.
My idea for a fix is to add property objects to the list of "atomic" objects in the copy module.
These already include types like functions and type objects.
I also added property objects to the unit tests test_copy_atomic and test_deepcopy_atomic. This is my first PR, and it's highly likely I've made some mistake, so please be kind :)
https://bugs.python.org/issue38293
(cherry picked from commit
9f3fc6c5b4993f2b362263b494f84793a21aa073 )
Co-authored-by: Guðni Natan Gunnarsson <1493259+GudniNatan@users.noreply.github.com>
Miss Islington (bot) [Fri, 10 Jan 2020 12:12:30 +0000 (04:12 -0800)]
[3.7] Add test cases for dataclasses. (GH-17909) (GH-17920)
* Add test cases for dataclasses.
* Add test for repr output of field.
* Add test for ValueError to be raised when both default and default_factory are passed.
(cherry picked from commit
eef1b027ab70704bcaa60a089e4ae1592c504b86 )
Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Automerge-Triggered-By: @ericvsmith
Miss Islington (bot) [Wed, 8 Jan 2020 15:47:25 +0000 (07:47 -0800)]
bpo-39242: Updated the Gmane domain into news.gmane.io (GH-17903)
(cherry picked from commit
2e6a8efa837410327b593dc83c57492253b1201e )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Miss Islington (bot) [Tue, 7 Jan 2020 17:47:51 +0000 (09:47 -0800)]
bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780)
Correctly parenthesize filter-based statements that contain lambda
expressions in lib2to3.
(cherry picked from commit
b821173b5458d137c8d5edb6e9b4997aac800a38 )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Miss Islington (bot) [Tue, 7 Jan 2020 17:03:49 +0000 (09:03 -0800)]
bpo-39198: Ensure logging global lock is released on exception in isEnabledFor (GH-17689) (GH-17898)
(cherry picked from commit
950c6795aa0ffa85e103a13e7a04e08cb34c66ad )
Miss Islington (bot) [Tue, 7 Jan 2020 08:04:32 +0000 (00:04 -0800)]
bpo-38623: Doc: Add section for site module CLI. (GH-17858)
(cherry picked from commit
ca94677a6216e2d41b04574986ce49d31a0b329c )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Tue, 7 Jan 2020 06:58:19 +0000 (22:58 -0800)]
Doc: Change Python 2 status to EOL. (GH-17885)
(cherry picked from commit
f4800b8ed3dbe15a0078869a836d968ab3362b8c )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Mon, 6 Jan 2020 21:42:37 +0000 (13:42 -0800)]
bpo-39041: Fix coverage upload command for GitHub Actions (GH-17873)
https://bugs.python.org/issue39041
Automerge-Triggered-By: @zooba
(cherry picked from commit
b1ce22d086660d2505010694c8813cc67adf8f9e )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 6 Jan 2020 16:47:06 +0000 (08:47 -0800)]
bpo-39041: Add GitHub Actions support (GH-17594)
(cherry picked from commit
a76ba362c4d86adf5e7f8254398135d12d7afd25 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 6 Jan 2020 08:24:25 +0000 (00:24 -0800)]
Minor formatting improvements and fixes to idle.rst (GH-17165)
(cherry picked from commit
d6c08db8538d046d783db44fe4e70a60af0fb02e )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Sun, 5 Jan 2020 22:37:37 +0000 (14:37 -0800)]
Fix the parameter list of object. _rpow_ (GH-GH-16477)
(cherry picked from commit
abc0c4fa9970931849b3da598c5980a5b170661e )
Co-authored-by: HongWeipeng <961365124@qq.com>
Miss Islington (bot) [Sun, 5 Jan 2020 22:13:44 +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>
Miss Islington (bot) [Sun, 5 Jan 2020 16:49:48 +0000 (08:49 -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>
Miss Islington (bot) [Sun, 5 Jan 2020 12:34:58 +0000 (04:34 -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>
Miss Islington (bot) [Sun, 5 Jan 2020 12:32:45 +0000 (04:32 -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>
Miss Islington (bot) [Sun, 5 Jan 2020 12:31:44 +0000 (04:31 -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>
Andrew Svetlov [Sat, 4 Jan 2020 09:49:32 +0000 (11:49 +0200)]
[3.7] bpo-39191: Don't spawn a task before failing (GH-17796) (#17821)
(cherry picked from commit
3a5de511596f17575de082dcb8d43d63b2bd2da9 )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Fri, 3 Jan 2020 03:47:00 +0000 (19:47 -0800)]
Update copyright year in macOS installer license copy (GH-17806)
(cherry picked from commit
32f1443aa98db769d87db497b45bd0dcb732445b )
Co-authored-by: Ned Deily <nad@python.org>
Benjamin Peterson [Fri, 3 Jan 2020 03:39:21 +0000 (19:39 -0800)]
[3.7] Bring Python into the next decade. (GH-17801). (GH-17803)
(cherry picked from commit
946b29ea0b3b386ed05e87e60b8617c9dc19cd53 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Wed, 1 Jan 2020 22:32:17 +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>
Miss Islington (bot) [Wed, 1 Jan 2020 20:07:31 +0000 (12:07 -0800)]
bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773) (GH-17786)
(cherry picked from commit
46abfc1416ff8e450999611ef8f231ff871ab133 )
Miss Islington (bot) [Tue, 31 Dec 2019 18:51:23 +0000 (10:51 -0800)]
Fix idlelib README typo. (GH-17770)
(cherry picked from commit
ba82ee894cf0f6ec9e9f6a313c870ffd2db377e6 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Dong-hee Na [Tue, 31 Dec 2019 04:15:10 +0000 (13:15 +0900)]
[3.7] bpo-38588: Fix possible crashes in dict and list when calling P… (GH-17765)
* [3.7] 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>
* methane's suggestion
methane's suggestion
Co-Authored-By: Inada Naoki <songofacandy@gmail.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Mon, 30 Dec 2019 22:22:24 +0000 (14:22 -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>
Pablo Galindo [Mon, 30 Dec 2019 19:58:31 +0000 (19:58 +0000)]
[3.7] bpo-38610: Fix possible crashes in several list methods (GH-17022) (GH-17759)
Hold strong references to list elements while calling PyObject_RichCompareBool()..
(cherry picked from commit
d9e561d23d994e3ed15f4fcbd7ee5c8fe50f190b )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Sun, 29 Dec 2019 22:19:54 +0000 (14:19 -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>
Terry Jan Reedy [Sun, 29 Dec 2019 06:40:49 +0000 (01:40 -0500)]
[3.7] bpo-39136: Fixed typos (GH-17720)
focusses -> focuses; follwing -> following; Excape -> Escape.
(cherry picked from commit
6c7bb38 )
Éric Araujo [Sat, 28 Dec 2019 20:41:48 +0000 (15:41 -0500)]
Reorder entries in Misc/ACKS (GH-17663) (GH-17672)
Miss Islington (bot) [Sat, 28 Dec 2019 02:51:37 +0000 (18:51 -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>
Miss Islington (bot) [Fri, 27 Dec 2019 03:08:30 +0000 (19:08 -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>
Miss Islington (bot) [Wed, 25 Dec 2019 04:35:20 +0000 (20:35 -0800)]
Minor C API documentation improvements. (GH-17698)
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>
Bar Harel [Mon, 23 Dec 2019 18:31:15 +0000 (20:31 +0200)]
[3.7] bpo-38878: Fix os.PathLike __subclasshook__ (GH-17336) (GH-17685)
https://bugs.python.org/issue38878
Miss Islington (bot) [Fri, 20 Dec 2019 19:26:16 +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>
Batuhan Taşkaya [Thu, 19 Dec 2019 14:41:49 +0000 (17:41 +0300)]
[3.7] bpo-38316: Fix co_stacksize documentation (GH-16983). (GH-17660)
(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
Ned Deily [Thu, 19 Dec 2019 01:47:58 +0000 (20:47 -0500)]
Post release updates
Ned Deily [Thu, 19 Dec 2019 01:41:32 +0000 (20:41 -0500)]
Merge tag 'v3.7.6' into 3.7
Miss Islington (bot) [Wed, 18 Dec 2019 20:51:09 +0000 (12:51 -0800)]
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 )
(cherry picked from commit
b0eb046cbd0dbb7b17f16aad6de20fac5305f387 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Ned Deily [Wed, 18 Dec 2019 18:48:49 +0000 (13:48 -0500)]
3.7.6
Miss Islington (bot) [Tue, 17 Dec 2019 09:23:55 +0000 (01:23 -0800)]
bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636)
(cherry picked from commit
bf3aa1060a29a05813abbe877193af16e3e7131e )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 17 Dec 2019 04:12:28 +0000 (20:12 -0800)]
Fix warnings in test_asyncio.test_base_events (GH-17577) (GH-17580)
Co-authored-by: tirkarthi
(cherry picked from commit
1988344a6bff253f017e053f69318ecf03587294 )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Kyle Stanley [Tue, 17 Dec 2019 04:08:49 +0000 (23:08 -0500)]
[3.7] Add whatsnew for removal of asyncio.loop.create_datagram_endpoint()'s *reuse_address* parameter (GH-17595). (GH-17631)
(cherry picked from commit
f501db2b93a9d3d840b6fb38d6bdda8bcc400d4a )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Inada Naoki [Sat, 14 Dec 2019 14:02:20 +0000 (23:02 +0900)]
bpo-39035: travis: Don't use beta group (GH-17604)
Inada Naoki [Sat, 14 Dec 2019 10:53:43 +0000 (19:53 +0900)]
Add PYTHONUTF8 to commandline usage. (GH-17587) (GH-17599)
Co-Authored-By: Victor Stinner <vstinner@python.org>
(cherry picked from commit
95826c773a9004fc5b3c89de55f800504685ab21 )
Miss Islington (bot) [Tue, 17 Dec 2019 09:23:55 +0000 (01:23 -0800)]
bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636)
(cherry picked from commit
bf3aa1060a29a05813abbe877193af16e3e7131e )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 17 Dec 2019 04:12:28 +0000 (20:12 -0800)]
Fix warnings in test_asyncio.test_base_events (GH-17577) (GH-17580)
Co-authored-by: tirkarthi
(cherry picked from commit
1988344a6bff253f017e053f69318ecf03587294 )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Kyle Stanley [Tue, 17 Dec 2019 04:08:49 +0000 (23:08 -0500)]
[3.7] Add whatsnew for removal of asyncio.loop.create_datagram_endpoint()'s *reuse_address* parameter (GH-17595). (GH-17631)
(cherry picked from commit
f501db2b93a9d3d840b6fb38d6bdda8bcc400d4a )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Inada Naoki [Sat, 14 Dec 2019 14:02:20 +0000 (23:02 +0900)]
bpo-39035: travis: Don't use beta group (GH-17604)
Pablo Galindo [Sat, 14 Dec 2019 10:55:00 +0000 (10:55 +0000)]
[3.7] Fix elif start column offset when there is an else following (GH-17596) (GH-17601)
(cherry picked from commit
5936a4ce914d42af97b9238e5090dedc8d5b0bd2 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Inada Naoki [Sat, 14 Dec 2019 10:53:43 +0000 (19:53 +0900)]
Add PYTHONUTF8 to commandline usage. (GH-17587) (GH-17599)
Co-Authored-By: Victor Stinner <vstinner@python.org>
(cherry picked from commit
95826c773a9004fc5b3c89de55f800504685ab21 )
Miss Islington (bot) [Fri, 13 Dec 2019 23:30:04 +0000 (15:30 -0800)]
bpo-36406: Handle namespace packages in doctest (GH-12520) (GH-17592)
(cherry picked from commit
8289e27393395ee903bd096d42e07c112d7f15c6 )
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Pablo Galindo [Fri, 13 Dec 2019 14:04:14 +0000 (14:04 +0000)]
[3.7] bpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt (GH-17582) (#17584)
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>
Ned Deily [Wed, 11 Dec 2019 08:49:48 +0000 (03:49 -0500)]
Post release updates
Ned Deily [Wed, 11 Dec 2019 05:24:09 +0000 (00:24 -0500)]
3.7.6rc1
Ned Deily [Wed, 11 Dec 2019 04:49:23 +0000 (23:49 -0500)]
bpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR (GH-17311) (GH-17570)
(cherry picked from commit
ab513a38c98695f271e448fe2cb7c5e39eeaaaaf )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Miss Islington (bot) [Tue, 10 Dec 2019 00:46:14 +0000 (16:46 -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>
Miss Islington (bot) [Mon, 9 Dec 2019 23:40:09 +0000 (15:40 -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>
Miss Islington (bot) [Mon, 9 Dec 2019 16:07:54 +0000 (08:07 -0800)]
bpo-34776: Fix dataclasses to support __future__ "annotations" mode (GH-9518) (#17532)
(cherry picked from commit
d219cc4180e7589807ebbef7421879f095e72a98 )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Mon, 9 Dec 2019 14:20:27 +0000 (06:20 -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>
Miss Islington (bot) [Mon, 9 Dec 2019 13:52:07 +0000 (05:52 -0800)]
bpo-38916: Document array.array deprecation (GH-17523)
array.array: Document that tostring() and fromstring() deprecated
aliases will be removed in Python 3.9.
(cherry picked from commit
0381ea79ac2da03179c8512c581cac588b69cff9 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 9 Dec 2019 11:38:36 +0000 (03:38 -0800)]
bpo-38673: dont switch to ps2 if the line starts with comment or whitespace (GH-17421) (GH-17522)
https://bugs.python.org/issue38673
(cherry picked from commit
109fc2792a490ee5cd8a423e17d415fbdedec5c8 )
Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
Miss Islington (bot) [Mon, 9 Dec 2019 11:15:07 +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>
Miss Islington (bot) [Mon, 9 Dec 2019 06:59:23 +0000 (22:59 -0800)]
bpo-38669: patch.object now raises a helpful error (GH17511)
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>
Miss Islington (bot) [Sun, 8 Dec 2019 11:53:07 +0000 (03:53 -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>
Miss Islington (bot) [Sat, 7 Dec 2019 17:20:43 +0000 (09:20 -0800)]
[3.7] bpo-38820: OpenSSL 3.0.0 compatibility. (GH-17190) (GH-17500)
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
Miss Islington (bot) [Sat, 7 Dec 2019 12:45:07 +0000 (04:45 -0800)]
bpo-37404: Raising value error if an SSLSocket is passed to asyncio functions (GH-16457)
https://bugs.python.org/issue37404
(cherry picked from commit
892f9e0777f262d366d4747a54c33a1c15a49da6 )
Co-authored-by: idomic <michael.ido@gmail.com>
Andrew Svetlov [Sat, 7 Dec 2019 11:46:18 +0000 (13:46 +0200)]
[3.7] Make repr of C accelerated TaskWakeupMethWrapper the same as of pure Python version (GH-17484) (GH-17494)
(cherry picked from commit
969ae7aca809a8dacafee04c261110eea0ac1945 )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Fri, 6 Dec 2019 15:01:31 +0000 (07:01 -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>
Miss Islington (bot) [Wed, 4 Dec 2019 20:29:22 +0000 (12:29 -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>
Inada Naoki [Wed, 4 Dec 2019 10:26:22 +0000 (19:26 +0900)]
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>
Miss Islington (bot) [Tue, 3 Dec 2019 23:36:47 +0000 (15:36 -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>
Miss Islington (bot) [Mon, 2 Dec 2019 22:43:15 +0000 (14:43 -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>
Miss Islington (bot) [Mon, 2 Dec 2019 16:35:50 +0000 (08:35 -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>
Miss Islington (bot) [Sun, 1 Dec 2019 23:23:32 +0000 (15:23 -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>
Miss Islington (bot) [Sun, 1 Dec 2019 20:13:18 +0000 (12:13 -0800)]
document threading.Lock.locked() (GH-17427)
(cherry picked from commit
fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388 )
Co-authored-by: idomic <michael.ido@gmail.com>
Miss Islington (bot) [Thu, 28 Nov 2019 05:28:37 +0000 (21:28 -0800)]
bpo-38524: clarify example a bit and improve formatting (GH-17406)
(cherry picked from commit
02519f75d15b063914a11351da30178ca4ceb54b )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Inada Naoki [Thu, 28 Nov 2019 05:23:58 +0000 (14:23 +0900)]
bpo-26730: Fix SpooledTemporaryFile data corruption (GH-17400)
SpooledTemporaryFile.rollback() might cause data corruption
when it is in text mode.
Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>.
(cherry picked from commit
ea9835c5d154ab6a54eed627958473b6768b28cc )
Miss Islington (bot) [Wed, 27 Nov 2019 08:52:39 +0000 (00:52 -0800)]
bpo-38524: document implicit and explicit calling of descriptors' __set_name__ (GH-17364)
(cherry picked from commit
1bddf890e595a865414645c6041733043c4081f8 )
Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
Terry Jan Reedy [Wed, 27 Nov 2019 01:12:56 +0000 (20:12 -0500)]
[3.7] bpo-38862: IDLE Strip Trailing Whitespace fixes end newlines (GH-17366) (#17379)
Extra newlines are removed at the end of non-shell files. If the file only has newlines after stripping other trailing whitespace, all are removed, as is done by patchcheck.py.
(cherry picked from commit
6bf644ec82f14cceae68278dc35bafb00875efae )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 26 Nov 2019 20:02:24 +0000 (12:02 -0800)]
bpo-21063: Improve module synopsis for distutils (GH-17363) (#17381)
(cherry picked from commit
f8a6316778faff3991144c3aec4fa92d7b30a72b )
Co-authored-by: Sanchit Khurana <54467174+GeniusLearner@users.noreply.github.com>
Miss Islington (bot) [Tue, 26 Nov 2019 06:37:31 +0000 (22:37 -0800)]
Remove use of deprecated `array.fromstring` method (GH-17332)
(cherry picked from commit
386d00cc341b549800776b906bfc6b20ea40c7db )
Co-authored-by: David Coles <coles.david@gmail.com>
Miss Islington (bot) [Fri, 22 Nov 2019 23:38:37 +0000 (15:38 -0800)]
bpo-38686: fix HTTP Digest handling in request.py (GH-17045)
* fix HTTP Digest handling in request.py
There is a bug triggered when server replies to a request with `WWW-Authenticate: Digest` where `qop="auth,auth-int"` rather than mere `qop="auth"`. Having both `auth` and `auth-int` is legitimate according to the `qop-options` rule in §3.2.1 of [[https://www.ietf.org/rfc/rfc2617.txt|RFC 2617]]:
> qop-options = "qop" "=" <"> 1GH-qop-value <">
> qop-value = "auth" | "auth-int" | token
> **qop-options**: [...] If present, it is a quoted string **of one or more** tokens indicating the "quality of protection" values supported by the server. The value `"auth"` indicates authentication; the value `"auth-int"` indicates authentication with integrity protection
This is description confirmed by the definition of the [//n//]`GH-`[//m//]//rule// extended-BNF pattern defined in §2.1 of [[https://www.ietf.org/rfc/rfc2616.txt|RFC 2616]] as 'a comma-separated list of //rule// with at least //n// and at most //m// items'.
When this reply is parsed by `get_authorization`, request.py only tests for identity with `'auth'`, failing to recognize it as one of the supported modes the server announced, and claims that `"qop 'auth,auth-int' is not supported"`.
* 📜🤖 Added by blurb_it.
* bpo-38686 review fix: remember why.
* fix trailing space in Lib/urllib/request.py
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
(cherry picked from commit
14a89c47983f2fb9e7fdf33c769e622eefd3a14a )
Co-authored-by: PypeBros <PypeBros@users.noreply.github.com>