]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agobpo-30780: Add IDLE configdialog tests (GH-3592)
Miss Islington (bot) [Mon, 27 Jan 2020 22:35:08 +0000 (14:35 -0800)] 
bpo-30780: Add IDLE configdialog tests (GH-3592)

Expose dialog buttons to test code and complete their test coverage.
Complete test coverage for highlights and keys tabs.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit dd023ad1619b6f1ab313986e8953eea32c18f50c)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
5 years agoIgnore NEWS snippets in code coverage stats (GH-18194)
Miss Islington (bot) [Mon, 27 Jan 2020 16:27:59 +0000 (08:27 -0800)] 
Ignore NEWS snippets in code coverage stats (GH-18194)

(cherry picked from commit 7023288dc500008609e7a4d12ae710c2093c3fc6)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
5 years ago[3.8] bpo-39082: Allow AsyncMock to correctly patch static/class methods (GH-18190)
Matthew Kokotovich [Sun, 26 Jan 2020 15:30:27 +0000 (09:30 -0600)] 
[3.8] bpo-39082: Allow AsyncMock to correctly patch static/class methods (GH-18190)

(cherry picked from commit 62865f4532094017a9b780b704686ca9734bc329)

Co-authored-by: Matthew Kokotovich <mkokotovich@gmail.com>
5 years agobpo-36018: Add another example for NormalDist() (GH-18191) (GH-18192)
Miss Islington (bot) [Sun, 26 Jan 2020 05:24:13 +0000 (21:24 -0800)] 
bpo-36018: Add another example for NormalDist() (GH-18191) (GH-18192)

5 years agobpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872) (GH...
Miss Islington (bot) [Sat, 25 Jan 2020 19:40:27 +0000 (11:40 -0800)] 
bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872) (GH-17875)

(cherry picked from commit 2e9012a3e1e316c54e27f51ba5849ba06eab7da2)

Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
5 years agobpo-36654: Add examples for using tokenize module programmatically (GH-18187)
Miss Islington (bot) [Sat, 25 Jan 2020 19:34:36 +0000 (11:34 -0800)] 
bpo-36654: Add examples for using tokenize module programmatically (GH-18187)

(cherry picked from commit 4b09dc79f4d08d85f2cc945563e9c8ef1e531d7b)

Co-authored-by: Windson yang <wiwindson@outlook.com>
5 years agobpo-15243: Document __prepare__ as classmethod (GH-17124)
Miss Islington (bot) [Sat, 25 Jan 2020 19:04:16 +0000 (11:04 -0800)] 
bpo-15243: Document __prepare__ as classmethod (GH-17124)

(cherry picked from commit 7de617455ed788e6730c40cf854c4b72b0432194)

Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
5 years agoUpdate 3.8.rst (GH-18173) (#18182)
Miss Islington (bot) [Sat, 25 Jan 2020 17:33:36 +0000 (09:33 -0800)] 
Update 3.8.rst (GH-18173) (#18182)

Fixed the name of the contributor (@selik).
(cherry picked from commit 9bfb4a7061a3bc4fc5632bccfdf9ed61f62679f7)

Co-authored-by: fireattack <human.peng@gmail.com>
5 years agobpo-38473: Handle autospecced functions and methods used with attach_mock (GH-16784...
Miss Islington (bot) [Sat, 25 Jan 2020 14:53:08 +0000 (06:53 -0800)] 
bpo-38473: Handle autospecced functions and methods used with attach_mock (GH-16784) (GH-18167)

If an autospecced object is attached using attach_mock the
child would be a function with mock object as attribute from
which signature has to be derived.

(cherry picked from commit 66b00a9d3aacf6ed49412f48743e4913104a2bb3)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
5 years agobpo-39388: IDLE: Fix bug when cancelling out of configdialog (GH-18068)
Miss Islington (bot) [Sat, 25 Jan 2020 09:17:54 +0000 (01:17 -0800)] 
bpo-39388: IDLE: Fix bug when cancelling out of configdialog (GH-18068)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit d0d9fa8c5e30aff71b6d5e8b2673396622f33270)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
5 years agobpo-39430: Fix race condition in lazy imports in tarfile. (GH-18161)
Miss Islington (bot) [Fri, 24 Jan 2020 20:10:42 +0000 (12:10 -0800)] 
bpo-39430: Fix race condition in lazy imports in tarfile. (GH-18161)

Use `from ... import ...` to ensure module is fully loaded before accessing its attributes.
(cherry picked from commit 9017e0bd5e124ae6d2ed94b9e9cacb2e86270980)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agoImprove test coverage for AsyncMock. (GH-17906)
Miss Islington (bot) [Fri, 24 Jan 2020 13:27:04 +0000 (05:27 -0800)] 
Improve test coverage for AsyncMock. (GH-17906)

* Add test for nested async decorator patch.
* Add test for side_effect and wraps with a function.
* Add test for side_effect with an exception in the iterable.
(cherry picked from commit 54f743eb315f00b0ff45e115dde7a5d506034153)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
5 years agobpo-39426: Fix outdated default and highest protocols in docs (GH-18154)
Miss Islington (bot) [Fri, 24 Jan 2020 10:20:35 +0000 (02:20 -0800)] 
bpo-39426: Fix outdated default and highest protocols in docs (GH-18154)

Some portions of the pickle documentation hadn't been updated for the pickle protocol changes in Python 3.8 (new protocol 5, default protocol 4). This PR fixes those docs.

https://bugs.python.org/issue39426
(cherry picked from commit e9652e8d58392f5022759ba06b444ce970eb12db)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
5 years ago[3.8] bpo-35182: fix communicate() crash after child closes its pipes (GH-18117)...
Alex Rebert [Thu, 23 Jan 2020 23:31:29 +0000 (18:31 -0500)] 
[3.8] bpo-35182: fix communicate() crash after child closes its pipes (GH-18117) (GH-18148)

When communicate() is called in a loop, it crashes when the child process
has already closed any piped standard stream, but still continues to be running

Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com>.
(cherry picked from commit d3ae95e1e945ed20297e1c38ba43a18b7a868ab6)

Co-authored-by: Alex Rebert <alex@forallsecure.com>
https://bugs.python.org/issue35182

5 years agobpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
Miss Islington (bot) [Thu, 23 Jan 2020 18:22:36 +0000 (10:22 -0800)] 
bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)

(cherry picked from commit 7142df5ea23b4ce0efb72746b4b3b65414e8dcb1)

Co-authored-by: Shanavas M <shanavas.m2@gmail.com>
5 years agobpo-39421: Fix posible crash in heapq with custom comparison operators (GH-18118)
Miss Islington (bot) [Thu, 23 Jan 2020 15:22:25 +0000 (07:22 -0800)] 
bpo-39421: Fix posible crash in heapq with custom comparison operators (GH-18118)

* bpo-39421: Fix posible crash in heapq with custom comparison operators

* fixup! bpo-39421: Fix posible crash in heapq with custom comparison operators

* fixup! fixup! bpo-39421: Fix posible crash in heapq with custom comparison operators
(cherry picked from commit 79f89e6e5a659846d1068e8b1bd8e491ccdef861)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-32989: IDLE - remove unneeded parameter (GH-18138)
Miss Islington (bot) [Thu, 23 Jan 2020 05:13:41 +0000 (21:13 -0800)] 
bpo-32989: IDLE - remove unneeded parameter  (GH-18138)

IDLE does not pass a non-default _synchre in any of its calls to
pyparse.find_good_parse_start.
(cherry picked from commit f9e07e116c32b6dc4561d0bdeb452ccde13b0e7c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-39050: The Help button in IDLE's config menu works again (GH-17611)
Miss Islington (bot) [Thu, 23 Jan 2020 04:13:29 +0000 (20:13 -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>
5 years agobpo-39425: Fix list.count performance regression (GH-18119) (GH-18120)
Miss Islington (bot) [Wed, 22 Jan 2020 18:11:22 +0000 (10:11 -0800)] 
bpo-39425: Fix list.count performance regression (GH-18119) (GH-18120)

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>
5 years agobpo-39413: os.unsetenv() is not available on Windows (GH-18108)
Victor Stinner [Wed, 22 Jan 2020 12:50:40 +0000 (13:50 +0100)] 
bpo-39413: os.unsetenv() is not available on Windows (GH-18108)

Update os.unsetenv() documentation: it is not available on Windows.

5 years agocloses bpo-39415: Remove unused codes from longobject.c complexobject.c floatobject...
Miss Islington (bot) [Wed, 22 Jan 2020 03:26:34 +0000 (19:26 -0800)] 
closes bpo-39415: Remove unused codes from longobject.c complexobject.c floatobject.c. (GH-18105)

(cherry picked from commit 0d5eac8c327251f8edde5261cee43975d81311f6)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
5 years agoPyLong_AsLongLong() docs should say 'long long' (GH-18082) (GH-18110)
Miss Islington (bot) [Tue, 21 Jan 2020 19:22:21 +0000 (11:22 -0800)] 
PyLong_AsLongLong() docs should say 'long long' (GH-18082) (GH-18110)

(cherry picked from commit 47be7d0108b4021ede111dbd15a095c725be46b7)

Co-authored-by: Keith Erskine <toastie604@gmail.com>
Co-authored-by: Keith Erskine <toastie604@gmail.com>
5 years agoMove test_math tests (GH-18098) (GH-18102)
Victor Stinner [Tue, 21 Jan 2020 14:04:33 +0000 (15:04 +0100)] 
Move test_math tests (GH-18098) (GH-18102)

testPerm() and testComb() belong to MathTests, not to IsCloseTests().

(cherry picked from commit 59e2d26b258c12f18d8d2e789ef741703d6c52d5)

5 years agobpo-39389: gzip: fix compression level metadata (GH-18077)
Miss Islington (bot) [Tue, 21 Jan 2020 11:42:49 +0000 (03:42 -0800)] 
bpo-39389: gzip: fix compression level metadata (GH-18077)

As described in RFC 1952, section 2.3.1, the XFL (eXtra FLags) byte of a
gzip member header should indicate whether the DEFLATE algorithm was
tuned for speed or compression ratio. Prior to this patch, archives
emitted by the `gzip` module always indicated maximum compression.
(cherry picked from commit eab3b3f1c60afecfb4db3c3619109684cb04bd60)

Co-authored-by: William Chargin <wchargin@gmail.com>
5 years agobpo-32989: IDLE - fix bad editor call of pyparse method (GH-5968)
Miss Islington (bot) [Tue, 21 Jan 2020 10:29:39 +0000 (02:29 -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>
5 years agoimprove the documentation of the LOAD_METHOD and CALL_METHOD (GH-18079)
Miss Islington (bot) [Tue, 21 Jan 2020 01:12:07 +0000 (17:12 -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>
5 years agobpo-39383: Mention Darwin as a potential value for platform.system() (GH-18054)
Miss Islington (bot) [Mon, 20 Jan 2020 23:28:43 +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>
5 years agobpo-39386: Prevent double awaiting of async iterator (GH-18081)
Miss Islington (bot) [Mon, 20 Jan 2020 23:06:40 +0000 (15:06 -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>
5 years agoFix asyncio.get_event_loop() documentation (GH-18051)
Miss Islington (bot) [Mon, 20 Jan 2020 22:52:35 +0000 (14:52 -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>
5 years agobpo-38400 Don't check for NULL linked list pointers in _PyObject_IsFreed (GH-16630)
Miss Islington (bot) [Sun, 19 Jan 2020 23:43:37 +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>
5 years agobpo-35561: Supress valgrind false alarm on epoll_ctl(event) (GH-18060)
Miss Islington (bot) [Sun, 19 Jan 2020 22:44:35 +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>
5 years agoFix typo from base to based (GH-18055)
Miss Islington (bot) [Sun, 19 Jan 2020 10:48:04 +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>
5 years agoFix Lock.locked() to remove extra bold highlighting (GH-18042) (#18043)
Miss Islington (bot) [Fri, 17 Jan 2020 23:02:06 +0000 (15:02 -0800)] 
Fix Lock.locked() to remove extra bold highlighting (GH-18042) (#18043)

(cherry picked from commit ef8844f1bcbea994a2a69b5a70309369d08b555c)

Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
5 years agobpo-39348: Fix code highlight for the SOCK_NONBLOCK example (GH-18018)
Miss Islington (bot) [Thu, 16 Jan 2020 00:01:21 +0000 (16:01 -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>
5 years ago[3.8] Fix typo in multiprocessing.pool.AsyncResult.successful doc. (GH-17932) (GH...
Miss Islington (bot) [Wed, 15 Jan 2020 20:19:21 +0000 (12:19 -0800)] 
[3.8] Fix typo in multiprocessing.pool.AsyncResult.successful doc. (GH-17932) (GH-18015)

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
5 years agoFix compiler warning on Windows (GH-18012)
Miss Islington (bot) [Wed, 15 Jan 2020 17:07:09 +0000 (09:07 -0800)] 
Fix compiler warning on Windows (GH-18012)

Python-ast.h contains a macro named Yield that conflicts with the Yield macro
in Windows system headers. While Python-ast.h has an "undef Yield" directive
to prevent this, it means that Python-ast.h must be included before Windows
header files or we run into a re-declaration warning. In commit c96be811fa7d
an include for pycore_pystate.h was added which indirectly includes Windows
header files. In this commit we re-order the includes to fix this warning.
(cherry picked from commit e92d39303feb1d3b4194c6a8275b1fc63b2153b2)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
5 years agoFix documentation in code.py (GH-17988)
Miss Islington (bot) [Tue, 14 Jan 2020 20:13:59 +0000 (12:13 -0800)] 
Fix documentation in code.py (GH-17988)

(cherry picked from commit b4cdb3f60e71888d7f3d4e0d40cb31e968ea160c)

Co-authored-by: Kyle Pollina <kylepollina@protonmail.com>
5 years ago[3.8] bpo-39033: Fix NameError in zipimport during hash validation (GH-17588) (GH...
Karthikeyan Singaravelan [Tue, 14 Jan 2020 11:39:19 +0000 (17:09 +0530)] 
[3.8] bpo-39033: Fix NameError in zipimport during hash validation (GH-17588) (GH-17642)

Fix `NameError` in `zipimport` during hash validation and add a regression test.

(cherry picked from commit 79f02fee1a542c440fd906fd54154c73fc0f8235)

https://bugs.python.org/issue39033

5 years agobpo-39310: Update sys.float_info documentation (GH-17982)
Victor Stinner [Mon, 13 Jan 2020 19:24:12 +0000 (20:24 +0100)] 
bpo-39310: Update sys.float_info documentation (GH-17982)

Specify that sys.float_info.min is only the minimum normalized float.

5 years agobpo-39307: Fix memory leak on error path in parsetok (GH-17953)
Miss Islington (bot) [Mon, 13 Jan 2020 10:54:24 +0000 (02:54 -0800)] 
bpo-39307: Fix memory leak on error path in parsetok (GH-17953)

(cherry picked from commit 7ba6f18de2582755ae31888ba6a4237d96dddc48)

Co-authored-by: Alex Henrie <alexhenrie24@gmail.com>
5 years ago[3.8] Fix typos in Misc/NEWS.d (GH-17930)
toonarmycaptain [Sun, 12 Jan 2020 22:56:26 +0000 (16:56 -0600)] 
[3.8] Fix typos in Misc/NEWS.d (GH-17930)

5 years agobpo-3530: Add advice on when to correctly use fix_missing_locations in the AST docs...
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>
5 years agobpo-38293: Allow shallow and deep copying of property objects (GH-16438)
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>
5 years agobpo-16575: Disabled checks for union types being passed by value. (GH-17960) (GH...
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)

5 years agobpo-38356: Fix ThreadedChildWatcher thread leak in test_asyncio (GH-16552)
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>
5 years agobpo-39233: Update positional-only section in the glossary (GH-17874)
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>
5 years agobpo-39297: Update for importlib_metadata 1.4. (GH-17947) (GH-17952)
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>
5 years agoFix host in address of socket.create_server example. (GH-17706)
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>
5 years ago[3.8] Add test cases for dataclasses. (GH-17909) (GH-17919)
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
5 years agobpo-39235: Fix end location for genexp in call args (GH-17925)
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>
5 years agoFix typo in test's docstring (GH-17856) (GH-17923)
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>
5 years agobpo-25172: Reduce scope of crypt import tests (GH-17881)
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>
5 years agobpo-39161: Document multi-phase init modules under Py_NewInterpreter() (GH-17896)
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>
5 years agocloses bpo-39262: Use specific out-of-memory message in _sharedexception_bind. (GH...
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>
5 years agobpo-39242: Updated the Gmane domain into news.gmane.io (GH-17903)
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>
5 years agobpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780)
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>
5 years agobpo-39198: Ensure logging global lock is released on exception in isEnabledFor (GH...
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)

5 years ago[3.8] bpo-39191: Fix RuntimeWarning in asyncio test (GH-17863) (#17894)
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>
5 years agobpo-38623: Doc: Add section for site module CLI. (GH-17858)
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>
5 years agoDoc: Change Python 2 status to EOL. (GH-17885)
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>
5 years agobpo-39041: Fix coverage upload command for GitHub Actions (GH-17873)
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>
5 years agobpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818)
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>
5 years agobpo-39041: Add GitHub Actions support (GH-17594)
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>
5 years agobpo-39209: Manage correctly multi-line tokens in interactive mode (GH-17860)
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>
5 years agobpo-38907: Suppress any exception when attempting to set V6ONLY. (GH-17864) (GH-17865)
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>
5 years agobpo-38907: In http.server script, restore binding to IPv4 on Windows. (GH-17851)...
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>
5 years agoMinor formatting improvements and fixes to idle.rst (GH-17165)
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>
5 years agobpo-39130: Dict reversed was added in v3.8 so should say in the doc as well (GH-17694)
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>
5 years agoFix the parameter list of object. _rpow_ (GH-GH-16477)
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>
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>