]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sun, 12 Jan 2020 20:44:33 +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:04:18 +0000 (10:04 -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) [Sun, 12 Jan 2020 11:41:07 +0000 (03:41 -0800)]
bpo-16575: Disabled checks for union types being passed by value. (GH-17960) (GH-17964)
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 11:21:00 +0000 (03:21 -0800)]
bpo-38356: Fix ThreadedChildWatcher thread leak in test_asyncio (GH-16552)
Motivation for this PR (comment from @vstinner in bpo issue):
```
Warning seen o AMD64 Ubuntu Shared 3.x buildbot:
https://buildbot.python.org/all/GH-/builders/141/builds/2593
test_devnull_output (test.test_a=syncio.test_subprocess.SubprocessThreadedWatcherTests) ...
Warning -- threading_cleanup() failed to cleanup 1 threads (count: 1, dangling: 2)
```
The following implementation details for the new method are TBD:
1) Public vs private
2) Inclusion in `close()`
3) Name
4) Coroutine vs subroutine method
5) *timeout* parameter
If it's a private method, 3, 4, and 5 are significantly less important.
I started with the most minimal implementation that fixes the dangling threads without modifying the regression tests, which I think is particularly important. I typically try to avoid directly modifying existing tests as much as possible unless it's necessary to do so. However, I am open to changing any part of this.
https://bugs.python.org/issue38356
(cherry picked from commit
0ca7cc7fc0518c24dc9b78c38418e6064e64f148 )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Miss Islington (bot) [Sun, 12 Jan 2020 11:03:15 +0000 (03:03 -0800)]
bpo-39233: Update positional-only section in the glossary (GH-17874)
https://bugs.python.org/issue39233
(cherry picked from commit
9a669d58e8cb586fba38c84d5b631cd8a95d0c0c )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 11 Jan 2020 15:56:57 +0000 (07:56 -0800)]
bpo-39297: Update for importlib_metadata 1.4. (GH-17947) (GH-17952)
* bpo-39297: Update for importlib_metadata 1.4. Includes performance updates.
* 📜🤖 Added by blurb_it.
* Update blurb
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit
136735c1a2efb320e4cbb64b40f1191228745b39 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Sat, 11 Jan 2020 05:39:01 +0000 (21:39 -0800)]
Fix host in address of socket.create_server example. (GH-17706)
Host as None in address raises TypeError since it should be string, bytes or bytearray.
(cherry picked from commit
43682f1e39a3c61f0e8a638b887bcdcbfef766c5 )
Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Miss Islington (bot) [Fri, 10 Jan 2020 12:12:08 +0000 (04:12 -0800)]
[3.8] Add test cases for dataclasses. (GH-17909) (GH-17919)
* 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) [Thu, 9 Jan 2020 19:39:00 +0000 (11:39 -0800)]
bpo-39235: Fix end location for genexp in call args (GH-17925)
The fix changes copy_location() to require an extra node from which to extract the end location, and fixing all 5 call sites.
https://bugs.python.org/issue39235
(cherry picked from commit
a796d8ef9dd1af65f7e4d7a857b56f35b7cb6e78 )
Co-authored-by: Guido van Rossum <guido@python.org>
Miss Islington (bot) [Thu, 9 Jan 2020 17:33:05 +0000 (09:33 -0800)]
Fix typo in test's docstring (GH-17856) (GH-17923)
* Fix typo in test's docstring. contination -> continuation.
(cherry picked from commit
2f65aa465865930f8364645b1466d2751c4086d3 )
Co-authored-by: Daniel Hahler <git@thequod.de>
Co-authored-by: Daniel Hahler <github@thequod.de>
Miss Islington (bot) [Thu, 9 Jan 2020 17:19:59 +0000 (09:19 -0800)]
bpo-25172: Reduce scope of crypt import tests (GH-17881)
(cherry picked from commit
ed367815eeb9329c48a86a8a7fa3186e27a10f2c )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Thu, 9 Jan 2020 12:27:35 +0000 (04:27 -0800)]
bpo-39161: Document multi-phase init modules under Py_NewInterpreter() (GH-17896)
\+ this also adds a stronger warning against sharing objects between (sub-)interpreters.
https://bugs.python.org/issue39161
(cherry picked from commit
6c5d661342d12f6836580b0e75e3569c764527ae )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Thu, 9 Jan 2020 03:07:38 +0000 (19:07 -0800)]
closes bpo-39262: Use specific out-of-memory message in _sharedexception_bind. (GH-17908)
(cherry picked from commit
5cae042f686cc174e00093944dc118914c874b7c )
Co-authored-by: Alex Henrie <alexhenrie24@gmail.com>
Miss Islington (bot) [Wed, 8 Jan 2020 15:48:33 +0000 (07:48 -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:52:06 +0000 (09:52 -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:23 +0000 (09:03 -0800)]
bpo-39198: Ensure logging global lock is released on exception in isEnabledFor (GH-17689) (GH-17897)
(cherry picked from commit
950c6795aa0ffa85e103a13e7a04e08cb34c66ad )
Andrew Svetlov [Tue, 7 Jan 2020 14:55:19 +0000 (16:55 +0200)]
[3.8] bpo-39191: Fix RuntimeWarning in asyncio test (GH-17863) (#17894)
https://bugs.python.org/issue39191.
(cherry picked from commit
10ac0cded26d91c3468e5e5a87cecad7fc0bcebd )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Tue, 7 Jan 2020 08:04:43 +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:59:28 +0000 (22:59 -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:41:33 +0000 (13:41 -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 17:17:36 +0000 (09:17 -0800)]
bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
(cherry picked from commit
7b79dc9200a19ecbac667111dffd58e314be02a8 )
Co-authored-by: Anthony Wee <awee@box.com>
Miss Islington (bot) [Mon, 6 Jan 2020 16:46:55 +0000 (08:46 -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 16:26:13 +0000 (08:26 -0800)]
bpo-39209: Manage correctly multi-line tokens in interactive mode (GH-17860)
(cherry picked from commit
5ec91f78d59d9c39b984f284e00cd04b96ddb5db )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Mon, 6 Jan 2020 13:28:27 +0000 (05:28 -0800)]
bpo-38907: Suppress any exception when attempting to set V6ONLY. (GH-17864) (GH-17865)
Fixes error attempting to bind to IPv4 address.
(cherry picked from commit
7cdc31a14c824000cbe8b487900c9826a33f6940 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Mon, 6 Jan 2020 12:34:10 +0000 (04:34 -0800)]
bpo-38907: In http.server script, restore binding to IPv4 on Windows. (GH-17851) (#17854)
(cherry picked from commit
ee94bdb0598f9bc47d6a49e58fffc97aa617be96 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Mon, 6 Jan 2020 00:09:56 +0000 (16:09 -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:45:35 +0000 (14:45 -0800)]
bpo-39130: Dict reversed was added in v3.8 so should say in the doc as well (GH-17694)
To be consistent with document layout, it should say when the feature was added.
Although it's mentioned few other places in the doc but it's not explicitly say that at that place.
https://bugs.python.org/issue39130
(cherry picked from commit
94d9cfc4ed9dd3c4a3a359bc194b4dc3f6ba63eb )
Co-authored-by: Khalid Mammadov <khalidmammadov9@gmail.com>
Miss Islington (bot) [Sun, 5 Jan 2020 22:37:44 +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: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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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 )
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>
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>
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>
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>
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>
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>
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>
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>
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>
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 )
Éric Araujo [Sat, 28 Dec 2019 20:41:21 +0000 (15:41 -0500)]
Reorder entries in Misc/ACKS (GH-17663) (GH-17673)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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
Łukasz Langa [Thu, 19 Dec 2019 08:01:48 +0000 (09:01 +0100)]
Post 3.8.1
Ł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
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 )
Łukasz Langa [Wed, 18 Dec 2019 17:21:23 +0000 (18:21 +0100)]
Python 3.8.1
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 )
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
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)
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>
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>
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>
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>
Inada Naoki [Sat, 14 Dec 2019 14:01:54 +0000 (23:01 +0900)]
bpo-39035: travis: Don't use beta group (GH-17603)
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>
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>
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>
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>
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>
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>
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
Łukasz Langa [Tue, 10 Dec 2019 08:13:16 +0000 (09:13 +0100)]
Post 3.8.1rc1
Ł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
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>
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>
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>
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>
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>
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>
Łukasz Langa [Mon, 9 Dec 2019 17:47:55 +0000 (18:47 +0100)]
Python 3.8.1rc1
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>
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>
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>
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>
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>