]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years ago[3.9] bpo-41697: Correctly handle KeywordOrStarred when parsing arguments in the...
Pablo Galindo [Thu, 3 Sep 2020 15:35:17 +0000 (16:35 +0100)] 
[3.9] bpo-41697: Correctly handle KeywordOrStarred when parsing arguments in the parser (GH-22077) (GH-22079)

(cherry picked from commit 315a61f7a9418d904e0eea14b1f054fac3a90e9f)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-39883: Use BSD0 license for code in docs (GH-17635) (GH-22073)
Miss Islington (bot) [Thu, 3 Sep 2020 14:40:10 +0000 (07:40 -0700)] 
bpo-39883: Use BSD0 license for code in docs (GH-17635) (GH-22073)

The PSF board approved this use.
(cherry picked from commit e223d06a8b2067c68e9f97c4628c2b0f056dcae6)

Co-authored-by: Todd <toddrjen@gmail.com>
5 years ago[3.9] bpo-41690: Use a loop to collect args in the parser instead of recursion (GH...
Pablo Galindo [Wed, 2 Sep 2020 20:30:51 +0000 (21:30 +0100)] 
[3.9] bpo-41690: Use a loop to collect args in the parser instead of recursion (GH-22053) (GH-22067)

This program can segfault the parser by stack overflow:

```
import ast

code = "f(" + ",".join(['a' for _ in range(100000)]) + ")"
print("Ready!")
ast.parse(code)
```

the reason is that the rule for arguments has a simple recursion when collecting args:

args[expr_ty]:
    [...]
    | a=named_expression b=[',' c=args { c }] {
        [...] }.
(cherry picked from commit 4a97b1517a6b5ff22e2984b677a680b07ff0ce11)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[3.9] bpo-39349: Add cancel_futures to Executor.shutdown base class (GH-22023) (GH...
Shantanu [Wed, 2 Sep 2020 19:28:28 +0000 (12:28 -0700)] 
[3.9] bpo-39349: Add cancel_futures to Executor.shutdown base class (GH-22023) (GH-22048)

* Add cancel_futures parameter to the Executor base class, since it was missed in the original PR (https://github.com/python/cpython/pull/18057) that added cancel_futures.
(cherry picked from commit 17dc1b7)

5 years agoFix invalid escape sequences in the peg_highlight Sphinx extension (GH-22047) (GH...
Miss Islington (bot) [Wed, 2 Sep 2020 16:43:43 +0000 (09:43 -0700)] 
Fix invalid escape sequences in the peg_highlight Sphinx extension (GH-22047) (GH-22065)

(cherry picked from commit 5a4a963a6c798fa9207a9998618a9c0ec3b6b6d7)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[doc] Remove references to PyChecker. (GH-22054)
Miss Islington (bot) [Wed, 2 Sep 2020 13:29:33 +0000 (06:29 -0700)] 
[doc] Remove references to PyChecker. (GH-22054)

(cherry picked from commit dea82b67315a6b873f7d4e558dd00a851137dcbb)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agoRemove reference to Boa Constructor. (GH-22056)
Miss Islington (bot) [Wed, 2 Sep 2020 13:29:16 +0000 (06:29 -0700)] 
Remove reference to Boa Constructor. (GH-22056)

(cherry picked from commit 1d25f5bf7b795b47e753aca56d7579d4ad7ee468)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agoFixed mistake in test for f-string error description (GH-22036) (GH-22059) (GH-22060)
Miss Islington (bot) [Wed, 2 Sep 2020 12:13:39 +0000 (05:13 -0700)] 
Fixed mistake in test for f-string error description (GH-22036) (GH-22059) (GH-22060)

(cherry picked from commit 749ed85e4446f548e22934931241f644a33d81ce)

Co-authored-by: han-solo <hanish0019@gmail.com>
Co-authored-by: han-solo <hanish0019@gmail.com>
5 years agoNote the buffer slots can be set with PyType_Spec with the unlimited API. (GH-22052)
Miss Islington (bot) [Wed, 2 Sep 2020 03:18:21 +0000 (20:18 -0700)] 
Note the buffer slots can be set with PyType_Spec with the unlimited API. (GH-22052)

Follow up to f7c4e236429606e1c982cacf24e10fc86ef4462f.
(cherry picked from commit 700fa1b836f315048e8b89ede5018a0c0a213946)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years ago[3.9] bpo-41654: Fix deallocator of MemoryError to account for subclasses (GH-22020...
Pablo Galindo [Tue, 1 Sep 2020 20:40:57 +0000 (21:40 +0100)] 
[3.9] bpo-41654: Fix deallocator of MemoryError to account for subclasses (GH-22020) (GH-22045)

When allocating MemoryError classes, there is some logic to use
pre-allocated instances in a freelist only if the type that is being
allocated is not a subclass of MemoryError. Unfortunately in the
destructor this logic is not present so the freelist is altered even
with subclasses of MemoryError..
(cherry picked from commit 9b648a95ccb4c3b14f1e87158f5c9f5dbb2f62c0)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-41617: Fix pycore_byteswap.h to support clang 3.0 (GH-22042) (GH-22044)
Victor Stinner [Tue, 1 Sep 2020 18:54:37 +0000 (20:54 +0200)] 
bpo-41617: Fix pycore_byteswap.h to support clang 3.0 (GH-22042) (GH-22044)

__builtin_bswap16() is not available in LLVM clang 3.0.

(cherry picked from commit e6905e4c82cc05897dc1bf5ab2b5b94b2b043a7f)

5 years agobpo-41681: Fix for `f-string/str.format` error description when using 2 `,` in format...
Miss Islington (bot) [Tue, 1 Sep 2020 15:45:59 +0000 (08:45 -0700)] 
bpo-41681: Fix for `f-string/str.format` error description when using 2 `,` in format specifier (GH-22036) (GH-22041)

* Fixed `f-string/str.format` error description when using two `,` in format specifier.

Co-authored-by: millefalcon <hanish0019@hmail.com>
(cherry picked from commit 0d6aa7f0ee38eb453bc8f73bf4830e6172be2f35)

Co-authored-by: han-solo <hanish0019@gmail.com>
Co-authored-by: han-solo <hanish0019@gmail.com>
5 years agobpo-41344: Raise ValueError when creating shared memory of size 0 (GH-21556) (GH...
Miss Islington (bot) [Sun, 30 Aug 2020 19:42:22 +0000 (12:42 -0700)] 
bpo-41344: Raise ValueError when creating shared memory of size 0 (GH-21556) (GH-22018)

(cherry picked from commit 475a5fbb5644ea200c990d85d8c264e78ab6c7ea)

Co-authored-by: Vinay Sharma <vinay04sharma@icloud.com>
Co-authored-by: Vinay Sharma <vinay04sharma@icloud.com>
5 years agobpo-41524: fix pointer bug in PyOS_mystr{n}icmp (GH-21845) (GH-21978)
Miss Islington (bot) [Sun, 30 Aug 2020 06:53:09 +0000 (23:53 -0700)] 
bpo-41524: fix pointer bug in PyOS_mystr{n}icmp (GH-21845) (GH-21978)

5 years agobpo-41634: Fix a typo in the curses documentation (GH-21958)
Miss Islington (bot) [Sat, 29 Aug 2020 22:33:48 +0000 (15:33 -0700)] 
bpo-41634: Fix a typo in the curses documentation (GH-21958)

(cherry picked from commit 398575c210f79627830c5c470184f54ace950ac6)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-19521: Fix parallel build race condition on AIX (GH-22001)
Miss Islington (bot) [Sat, 29 Aug 2020 16:36:40 +0000 (09:36 -0700)] 
bpo-19521: Fix parallel build race condition on AIX (GH-22001)

Patch by Michael Haubenwallner.
(cherry picked from commit e6dcd371b2c54a94584dd124e8c592a496d46a47)

Co-authored-by: Stefan Krah <skrah@bytereef.org>
5 years ago[3.9] bpo-41624: fix documentation of typing.Coroutine (GH-21952) (#21982)
Karthikeyan Singaravelan [Fri, 28 Aug 2020 15:06:31 +0000 (20:36 +0530)] 
[3.9] bpo-41624: fix documentation of typing.Coroutine (GH-21952) (#21982)

(cherry picked from commit 8c58d2a)

Co-authored-by: MingZhe Hu <humingzhework@163.com>
Co-authored-by: MingZhe Hu <humingzhework@163.com>
5 years agobpo-41609: Fix output of pdb's whatis command for instance methods (GH-21935) (#21977)
Miss Islington (bot) [Thu, 27 Aug 2020 01:17:40 +0000 (18:17 -0700)] 
bpo-41609: Fix output of pdb's whatis command for instance methods (GH-21935) (#21977)

(cherry picked from commit 022bc7572f061e1d1132a4db9d085b29707701e7)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
5 years agobpo-33660: Fix PosixPath to resolve a relative path on root (#21974)
Miss Islington (bot) [Thu, 27 Aug 2020 00:51:44 +0000 (17:51 -0700)] 
bpo-33660: Fix PosixPath to resolve a relative path on root (#21974)

(cherry picked from commit 94ad6c674f7687ef22853cb8d42b440d6b42ddc8)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
5 years agobpo-37658: Fix asyncio.wait_for() to respect waited task status (GH-21894) (GH-21964)
Miss Islington (bot) [Wed, 26 Aug 2020 17:15:35 +0000 (10:15 -0700)] 
bpo-37658: Fix asyncio.wait_for() to respect waited task status (GH-21894) (GH-21964)

Currently, if `asyncio.wait_for()` itself is cancelled it will always
raise `CancelledError` regardless if the underlying task is still
running.  This is similar to a race with the timeout, which is handled
already.
(cherry picked from commit a2118a14627256197bddcf4fcecad4c264c1e39d)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
5 years agobpo-32751: Wait for task cancel in asyncio.wait_for() when timeout <= 0 (GH-21895...
Miss Islington (bot) [Wed, 26 Aug 2020 17:14:59 +0000 (10:14 -0700)] 
bpo-32751: Wait for task cancel in asyncio.wait_for() when timeout <= 0 (GH-21895) (GH-21963)

When I was fixing bpo-32751 back in GH-7216 I missed the case when
*timeout* is zero or negative.  This takes care of that.

Props to @aaliddell for noticing the inconsistency.
(cherry picked from commit c517fc712105c8e5930cb42baaebdbe37fc3e15f)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
5 years agoDocument vars behavior when __dict__ is missing (GH-21466) (GH-21939)
Miss Islington (bot) [Sat, 22 Aug 2020 18:55:00 +0000 (11:55 -0700)] 
Document vars behavior when __dict__ is missing (GH-21466) (GH-21939)

(cherry picked from commit 802726acf6048338394a6a4750835c2cdd6a947b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agoFix grammar in Doc/tutorial/controlflow.rst (GH-21885) (#21922)
Miss Islington (bot) [Sat, 22 Aug 2020 09:08:02 +0000 (02:08 -0700)] 
Fix grammar in Doc/tutorial/controlflow.rst (GH-21885) (#21922)

Automerge-Triggered-By: @csabella
(cherry picked from commit 0be7c216e16f0d459f1c8f6209734c9b2b82fbd4)

Co-authored-by: Denis Ovsienko <denis@ovsienko.info>
5 years agobpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH...
Miss Islington (bot) [Sat, 22 Aug 2020 09:06:54 +0000 (02:06 -0700)] 
bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH-21880) (#21926)

Use a less surprising document structure.

Automerge-Triggered-By: @csabella
(cherry picked from commit 2ce39631f679e14132a54dc90ce764259d26e166)

Co-authored-by: Sydney Pemberton <46042811+sydneypemberton1986@users.noreply.github.com>
5 years agobpo-41573: Update release versions in General FAQ (GH-21915) (#21938)
Miss Islington (bot) [Sat, 22 Aug 2020 07:47:37 +0000 (00:47 -0700)] 
bpo-41573: Update release versions in General FAQ (GH-21915) (#21938)

(cherry picked from commit 7173fc84e61b80b19261e47fca38030206a3a78e)
Co-authored-by: wyz23x2 <52805709+wyz23x2@users.noreply.github.com>
5 years agobpo-41572: Fix grammar in BaseTransport.close docstring (GH-21914) (#21929)
Miss Islington (bot) [Fri, 21 Aug 2020 12:19:40 +0000 (05:19 -0700)] 
bpo-41572: Fix grammar in BaseTransport.close docstring (GH-21914) (#21929)

Fix grammar in BaseTransport.close docstring.

https://bugs.python.org/issue41572

Signed-off-by: Cleber Rosa <crosa@redhat.com>
(cherry picked from commit 1afb42cfa82dad0ddd726f59c6c5fcb3962314db)

Co-authored-by: Cleber Rosa <cleber.gnu@gmail.com>
5 years agoDoc: add a missing period (GH-21819) (#21932)
Miss Islington (bot) [Thu, 20 Aug 2020 20:40:57 +0000 (13:40 -0700)] 
Doc: add a missing period (GH-21819) (#21932)

(cherry picked from commit 12695f4c6d1167c0863098a586f3dfeb77a7cb9a)

Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
5 years ago[3.9] bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844) (GH-21901)
Victor Stinner [Wed, 19 Aug 2020 17:25:22 +0000 (19:25 +0200)] 
[3.9] bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844) (GH-21901)

* bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844)

Enable Sphinx 3.2 "c_allow_pre_v3" option and disable the
c_warn_on_allowed_pre_v3 option to make the documentation compatible
with Sphinx 2 and Sphinx 3.

(cherry picked from commit 423e77d6de497931585d1883805a9e3fa4096b0b)

* bpo-40204: Fix Sphinx sytanx in howto/instrumentation.rst (GH-21858)

Use generic '.. object::' to declare markers, rather than abusing
'..  c:function::' which fails on Sphinx 3.

(cherry picked from commit 43577c01a2ab49122db696e9eaec6cb31d11cc81)

* bpo-40204: Fix duplicates in the documentation (GH-21857)

Fix two Sphinx 3 issues:

Doc/c-api/buffer.rst:304: WARNING: Duplicate C declaration, also defined in 'c-api/buffer'.
Declaration is 'PyBUF_ND'.

Doc/c-api/unicode.rst:1603: WARNING: Duplicate C declaration, also defined in 'c-api/unicode'.
Declaration is 'PyObject* PyUnicode_Translate(PyObject *str, PyObject *table, const char *errors)'.

(cherry picked from commit 46d10b1237c67ff8347f533eda6a5468d098f7eb)

* bpo-40204: Add :noindex: in the documentation (GH-21859)

Add :noindex: to duplicated documentation to fix "duplicate object
description" errors.

For example, fix this Sphinx 3 issue:

Doc/library/configparser.rst:1146: WARNING: duplicate object
description of configparser.ConfigParser.optionxform, other instance
in library/configparser, use :noindex: for one of them

(cherry picked from commit d3ded080482beae578faa704b13534a62d066f9f)

* bpo-40204, doc: Fix syntax of C variables (GH-21846)

For example, fix the following Sphinx 3 errors:

Doc/c-api/buffer.rst:102: WARNING: Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 5]
  void \*obj
  -----^

Doc/c-api/arg.rst:130: WARNING: Unparseable C cross-reference: 'PyObject*'
Invalid C declaration: Expected end of definition. [error at 8]
  PyObject*
  --------^

The modified documentation is compatible with Sphinx 2 and Sphinx 3.

(cherry picked from commit 474652fe9346382dbf793f20b671eb74668bebde)

* bpo-40204: Fix reference to terms in the doc (GH-21865)

Sphinx 3 requires to refer to terms with the exact case.

For example, fix the Sphinx 3 warning:

Doc/library/pkgutil.rst:71: WARNING: term Loader not found in case
sensitive match.made a reference to loader instead.

(cherry picked from commit bb0b08540cc93e56f3f1bde1b39ce086d9e35fe1)

* bpo-40204: Fix duplicated productionlist names in the doc (GH-21900)

Sphinx 3 disallows having more than one productionlist markup with
the same name. Simply remove names in this case, since names are not
shown anyway. For example, fix the Sphinx 3 warning:

Doc/reference/introduction.rst:96: duplicate token description
of *:name, other instance in reference/expressions

(cherry picked from commit 1abeda80f760134b4233608e2c288790f955b95a)

5 years agobpo-41568: Fix refleaks in zoneinfo subclasses (GH-21907)
Miss Islington (bot) [Mon, 17 Aug 2020 23:24:15 +0000 (16:24 -0700)] 
bpo-41568: Fix refleaks in zoneinfo subclasses (GH-21907)

* Fix refleak in C module __init_subclass__

This was leaking a reference to the weak cache dictionary for every
ZoneInfo subclass created.

* Fix refleak in ZoneInfo subclass's clear_cache

The previous version of the code accidentally cleared the global
ZONEINFO_STRONG_CACHE variable (and inducing `ZoneInfo` to create a new
strong cache) on calls to a subclass's `clear_cache()`. This would not
affect guaranteed behavior, but it's still not the right thing to do
(and it caused reference leaks).
(cherry picked from commit c3dd7e45cc5d36bbe2295c2840faabb5c75d83e4)

Co-authored-by: Paul Ganssle <paul@ganssle.io>
5 years agobpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a...
Miss Islington (bot) [Mon, 17 Aug 2020 14:40:26 +0000 (07:40 -0700)] 
bpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a coroutine (GH-21852)

asyncio.AbstractEventLoop.run_in_executor should be a method that returns an asyncio Future, not an async method.
This matches the concrete implementations, and the documentation better.
(cherry picked from commit 29f84294d88ec493c2de9d6e8dbc12fae3778771)

Co-authored-by: James Weaver <james.barrett@bbc.co.uk>
5 years ago[3.9] bpo-41503: Fix race between setTarget and flush in logging.handlers.MemoryHandl...
Miss Islington (bot) [Sun, 16 Aug 2020 15:34:27 +0000 (08:34 -0700)] 
[3.9] bpo-41503: Fix race between setTarget and flush in logging.handlers.MemoryHandler (GH-21765) (GH-21897)

(cherry picked from commit 2353d77fad7ed9d11d8a4d66b5dd1306cdb94125)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Automerge-Triggered-By: @vsajip
5 years agobpo-41540: AIX: skip test that is flaky with a default ulimit. (GH-21890) (#21893)
Miss Islington (bot) [Sat, 15 Aug 2020 18:40:14 +0000 (11:40 -0700)] 
bpo-41540: AIX: skip test that is flaky with a default ulimit. (GH-21890) (#21893)

- AIX has extreme over-allocation that is in no relation to the physical
    RAM and swap.

(cherry picked from commit 39dab24621122338d01c1219bb0acc46ba9c9956)

Authored-by: Stefan Krah <skrah@bytereef.org>
5 years agobpo-40878: xlc cannot handle C99 extern inline. (GH-21891)
Miss Islington (bot) [Sat, 15 Aug 2020 18:37:08 +0000 (11:37 -0700)] 
bpo-40878: xlc cannot handle C99 extern inline. (GH-21891)

This applies to the default "extc99" mode.  Python does not compile with "stdc99".

(cherry picked from commit 40e700ad042089120456cc2ee79b8ca69479416b)

Authored-by: Stefan Krah <skrah@bytereef.org>
5 years agobpo-31122: ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when...
Miss Islington (bot) [Sat, 15 Aug 2020 17:44:57 +0000 (10:44 -0700)] 
bpo-31122: ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation (GH-18772)

[bpo-31122](): ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation

Reproducer: http://tiny.cc/f4ztnz (tiny url because some bot keeps renaming b.p.o.-nnn as bpo links)
(cherry picked from commit 495bd035662fda29639f9d52bb6baebea31d72fa)

Co-authored-by: Dima Tisnek <dimaqq@gmail.com>
5 years agoFix typo in typing doc (GH-21879)
Miss Islington (bot) [Fri, 14 Aug 2020 23:10:14 +0000 (16:10 -0700)] 
Fix typo in typing doc (GH-21879)

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

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
5 years agobpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965) (GH-21876)
Miss Islington (bot) [Fri, 14 Aug 2020 15:18:24 +0000 (08:18 -0700)] 
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965) (GH-21876)

Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:

    TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument

https://bugs.python.org/issue41025
(cherry picked from commit 87d8287865e5c9f137f6b5cf8c34c2c509eb5e9d)

Co-authored-by: Paul Ganssle <paul@ganssle.io>
5 years agobpo-41410: Fix outdated info in mkstemp docs (GH-21701)
Miss Islington (bot) [Fri, 14 Aug 2020 01:53:43 +0000 (18:53 -0700)] 
bpo-41410: Fix outdated info in mkstemp docs (GH-21701)

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

Co-authored-by: Rishav Kundu <rk@rishav.io>
5 years agobpo-41526: Fixed layout of final page of the installer (GH-21871)
Miss Islington (bot) [Thu, 13 Aug 2020 23:55:37 +0000 (16:55 -0700)] 
bpo-41526: Fixed layout of final page of the installer (GH-21871)

(cherry picked from commit 6444ca946984c638c67a72aac22fd6d3cc650c16)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agoFixed comment about pathlib.link_to: it was added in 3.8, not changed. (GH-21851)
Miss Islington (bot) [Thu, 13 Aug 2020 20:54:48 +0000 (13:54 -0700)] 
Fixed comment about pathlib.link_to: it was added in 3.8, not changed. (GH-21851)

(cherry picked from commit a3eae43aeedb6e6a31adeab3c0c90961d05ab113)

Co-authored-by: Facundo Batista <facundo@taniquetil.com.ar>
5 years agobpo-41066: Update the comparison section for os vs pathlib (GH-21261)
Miss Islington (bot) [Thu, 13 Aug 2020 19:59:07 +0000 (12:59 -0700)] 
bpo-41066: Update the comparison section for os vs pathlib (GH-21261)

(cherry picked from commit 0eb9deb4a62e6d9daa82bc2f67d1075864ca8ece)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
5 years ago[3.9] bpo-41520: Fix second codeop regression (GH-21848)
Terry Jan Reedy [Thu, 13 Aug 2020 18:21:32 +0000 (14:21 -0400)] 
[3.9] bpo-41520: Fix second codeop regression (GH-21848)

Fix the repression introduced by the initial regression fix.

(cherry picked from commit c818b15fa59039de67022c29085d439fa5d3ef95)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years ago[3.9] bpo-40979: refactored typing.rst; (mostly) same content, new sub-sections and...
Guido van Rossum [Wed, 12 Aug 2020 18:10:12 +0000 (11:10 -0700)] 
[3.9] bpo-40979: refactored typing.rst; (mostly) same content, new sub-sections and ordering (GH-21574) (#21843)

Also added PEP 585 deprecation notes.

(cherry picked from commit ab72fdeb82)

Co-authored-by: Luciano Ramalho <luciano@ramalho.org>
5 years agobpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)
Miss Islington (bot) [Wed, 12 Aug 2020 13:13:09 +0000 (06:13 -0700)] 
bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)

(cherry picked from commit 369a1cbdee14d9f27356fb3a8bb21e4fde289d25)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agoPost 3.9.0rc1
Łukasz Langa [Tue, 11 Aug 2020 21:29:16 +0000 (23:29 +0200)] 
Post 3.9.0rc1

5 years agoMerge tag 'v3.9.0rc1' into 3.9
Łukasz Langa [Tue, 11 Aug 2020 21:28:53 +0000 (23:28 +0200)] 
Merge tag 'v3.9.0rc1' into 3.9

Python 3.9.0rc1

5 years ago[3.9] bpo-41504: Add links to asttokens, leoAst, LibCST and parso to ast docs (GH...
Guido van Rossum [Tue, 11 Aug 2020 21:04:26 +0000 (14:04 -0700)] 
[3.9] bpo-41504: Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773) (GH-21830)

(cherry picked from commit e3c971ccfa58afcb2656b71b95e10b9703f2ad32)

Co-authored-by: Edward K. Ream <edreamleo@gmail.com>
Co-authored-by: Edward K. Ream <edreamleo@gmail.com>
5 years agoPython 3.9.0rc1 v3.9.0rc1
Łukasz Langa [Tue, 11 Aug 2020 17:14:36 +0000 (19:14 +0200)] 
Python 3.9.0rc1

5 years agobpo-41475: Fix note in "What's new in 3.7" (GH-21733) (#21832)
Miss Islington (bot) [Tue, 11 Aug 2020 17:03:21 +0000 (10:03 -0700)] 
bpo-41475: Fix note in "What's new in 3.7" (GH-21733) (#21832)

(cherry picked from commit 76643c10ede2813ca921464fe839e81caee21a84)

Co-authored-by: Ram Rachum <ram@rachum.com>
5 years agoAdd PEP 573 additions to What's New (GH-21374) (GH-21831)
Miss Islington (bot) [Tue, 11 Aug 2020 16:34:20 +0000 (09:34 -0700)] 
Add PEP 573 additions to What's New (GH-21374) (GH-21831)

(cherry picked from commit af3a6a8caefc2b202c831ab908677c1a4371cc27)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
5 years agobpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718) (GH...
Victor Stinner [Tue, 11 Aug 2020 15:03:33 +0000 (17:03 +0200)] 
bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718) (GH-21827)

regrtest_unraisable_hook() temporarily replaces sys.stderr with
sys.__stderr__ to help to display errors when a test captures stderr.

(cherry picked from commit 701b63894fdb75b12865b9be6261ce4913da76f5)

5 years agobpo-40548: Fix "Check for source changes (pull_request)" GH Action job (GH-21806)
Miss Islington (bot) [Mon, 10 Aug 2020 17:09:41 +0000 (10:09 -0700)] 
bpo-40548: Fix "Check for source changes (pull_request)" GH Action job (GH-21806)

On Git 2.28, "git diff master..." (3 dots) no longer works when
"fetch --depth=1" is used, whereas it works on Git 2.26.

Replace "..." (3 dots) with ".." (2 dots) in the "git diff" command
computing the list of modified files between the base branch and the
PR branch.
(cherry picked from commit eaa551702d80fd67219c48ee6a13ffb571ca360b)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41514: Fix buggy IDLE test (GH-21808)
Miss Islington (bot) [Mon, 10 Aug 2020 14:05:02 +0000 (07:05 -0700)] 
bpo-41514: Fix buggy IDLE test (GH-21808)

test_run method test_fatal_error failed when run twice, as with
python -m test -m test_fatal_error test_idle test_idle
because func.called was not reinitialized to 0.
This bug caused a failure on a refleak buildbot.
(cherry picked from commit 416f0b71ba84fe83ee2ba4399b8a28712702980b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years ago[3.9] bpo-41194: Convert _ast extension to PEP 489 (GH-21807)
Victor Stinner [Mon, 10 Aug 2020 13:55:54 +0000 (15:55 +0200)] 
[3.9] bpo-41194: Convert _ast extension to PEP 489 (GH-21807)

* bpo-41194: Convert _ast extension to PEP 489 (GH-21293)

Convert the _ast extension module to PEP 489 "Multiphase
initialization". Replace the global _ast state with a module state.

(cherry picked from commit b1cc6ba73a51d5cc3aeb113b5e7378fb50a0e20a)

* bpo-41204: Fix compiler warning in ast_type_init() (GH-21307)

(cherry picked from commit 1f76453173267887ed05bb3783e862cb22365ae8)

5 years agoUpdate macOS installer welcome files for 3.9.0rc. (GH-21804)
Ned Deily [Mon, 10 Aug 2020 07:04:13 +0000 (03:04 -0400)] 
Update macOS installer welcome files for 3.9.0rc. (GH-21804)

5 years agobpo-41468: Improve and test IDLE run error exit (GH-21798)
Miss Islington (bot) [Sun, 9 Aug 2020 20:26:21 +0000 (13:26 -0700)] 
bpo-41468: Improve and test IDLE run error exit  (GH-21798)

A message box pops up when an unexpected error stops the run process.  Tell users it is likely a random glitch, but report it if not.
(cherry picked from commit f2e161c27964a59bc5ab20d96f87ba5862c6222d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agoDoc: Add output to example code in programming FAQ (GH-21346)
Miss Islington (bot) [Sun, 9 Aug 2020 18:54:26 +0000 (11:54 -0700)] 
Doc: Add output to example code in programming FAQ (GH-21346)

Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.htmlGH-how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.
(cherry picked from commit 67acf74c4eaf64a860cc1bcda6efe6e9cb01f89b)

Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>
5 years agoImprove renamed test_run.RecursionLimitTest (GH-21794)
Miss Islington (bot) [Sun, 9 Aug 2020 17:35:48 +0000 (10:35 -0700)] 
Improve renamed test_run.RecursionLimitTest (GH-21794)

PEP 8 style and new comments.
(cherry picked from commit 8b67bf907c51846853127176cbb2982d102a2c2d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41455: Provide a link to how the third generation is collected in the GC docs...
Miss Islington (bot) [Sat, 8 Aug 2020 18:55:15 +0000 (11:55 -0700)] 
bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703)

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

Co-authored-by: Yaroslav Pankovych <31005942+P-Alban@users.noreply.github.com>
5 years agobpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)
Miss Islington (bot) [Sat, 8 Aug 2020 03:24:12 +0000 (20:24 -0700)] 
bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)

(cherry picked from commit a4084b9d1e40c1c9259372263d1fe8c8a562b093)

Co-authored-by: Konge <zkonge@outlook.com>
5 years agoDoc: Add a link to tutorial page from `open()` doc (GH-21737)
Miss Islington (bot) [Sat, 8 Aug 2020 03:03:56 +0000 (20:03 -0700)] 
Doc: Add a link to tutorial page from `open()` doc (GH-21737)

Adds a link to the "Reading and Writing Files" page so users can
more easily discover how file handles are handled with the `with`
context manager vs without it.
(cherry picked from commit 705f14556545699ab615ec98f707b438f9603767)

Co-authored-by: Benjamin Kane <bbkane@users.noreply.github.com>
5 years agobpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 (GH-21774)
Steve Dower [Fri, 7 Aug 2020 23:47:40 +0000 (00:47 +0100)] 
bpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 (GH-21774)

5 years agoUpdate Azure Pipelines build to use Ubuntu 18.04 and move triggers into YAML files...
Miss Islington (bot) [Fri, 7 Aug 2020 23:01:44 +0000 (16:01 -0700)] 
Update Azure Pipelines build to use Ubuntu 18.04 and move triggers into YAML files (GH-21776)

(cherry picked from commit 102b4988b1a10d5a61034381aea15521d17c210c)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
Miss Islington (bot) [Fri, 7 Aug 2020 16:18:29 +0000 (09:18 -0700)] 
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)

gdb 9.2 on Fedora Rawhide is not reliable, see:

* https://bugs.python.org/issue41473
* https://bugzilla.redhat.com/show_bug.cgi?id=1866884
(cherry picked from commit e27a51c11e10d5df79b3e48dc3e7bfedfad5a794)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41098: Doc: Add missing deprecated directives (GH-21162)
Miss Islington (bot) [Fri, 7 Aug 2020 07:49:53 +0000 (00:49 -0700)] 
bpo-41098: Doc: Add missing deprecated directives (GH-21162)

PyUnicodeEncodeError_Create has been deprecated with
`Py_DEPRECATED` macro. But it was not documented.
(cherry picked from commit 46e19b61d31ba99f049258efa4ff1334856a3643)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-39871: Fix an error in a news entry (GH-21749)
Miss Islington (bot) [Fri, 7 Aug 2020 05:45:49 +0000 (22:45 -0700)] 
bpo-39871: Fix an error in a news entry (GH-21749)

(cherry picked from commit 54636355805dd2877bb54fbad8d967e1ddd8b553)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)
Miss Islington (bot) [Thu, 6 Aug 2020 16:54:52 +0000 (09:54 -0700)] 
bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)

(cherry picked from commit 777b611c8c5676b80898a429f71d28e59bddc49d)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)
Miss Islington (bot) [Wed, 5 Aug 2020 21:52:59 +0000 (14:52 -0700)] 
bpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)

(cherry picked from commit 52f98424a55e14f05dfa7483cc0faf634a61c9ff)

Co-authored-by: Eric L. Frederich <eric.frederich@gmail.com>
5 years agobpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)
Miss Islington (bot) [Wed, 5 Aug 2020 13:52:29 +0000 (06:52 -0700)] 
bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)

(cherry picked from commit 8f4380d2f5839a321475104765221a7394a9d649)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
5 years agobpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)
Miss Islington (bot) [Wed, 5 Aug 2020 01:56:08 +0000 (18:56 -0700)] 
bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)

See PEP 623 for detail.
(cherry picked from commit 270b4ad4df795783d417ba15080da8f95e598689)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-41467: Fix asyncio recv_into() on Windows (GH-21720)
Miss Islington (bot) [Tue, 4 Aug 2020 01:00:29 +0000 (18:00 -0700)] 
bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)

On Windows, fix asyncio recv_into() return value when the socket/pipe
is closed (BrokenPipeError): return 0 rather than an empty byte
string (b'').
(cherry picked from commit 602a971a2af3a685d625c912c400cadd452718b1)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)
Miss Islington (bot) [Tue, 4 Aug 2020 00:56:54 +0000 (17:56 -0700)] 
bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)

incr cannot be larger than INT_MAX: downcast to int explicitly.
(cherry picked from commit bde48fd8110cc5f128d5db44810d17811e328a24)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41425: Make tkinter doc example runnable (GH-21706)
Miss Islington (bot) [Mon, 3 Aug 2020 04:25:30 +0000 (21:25 -0700)] 
bpo-41425: Make tkinter doc example runnable (GH-21706)

Co-authored-by: Ankit Chandawala <achandaw@amazon.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit c36dbac588e1d99975f285a874bb20e9f5040af4)

5 years agobpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)
Miss Islington (bot) [Mon, 3 Aug 2020 02:19:48 +0000 (19:19 -0700)] 
bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)

(cherry picked from commit ecaf949cc487887883c14dff7a96e09ac9404994)

Co-authored-by: Nathan M <nathanmaynes@gmail.com>
5 years ago[3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694) (GH...
Karthikeyan Singaravelan [Fri, 31 Jul 2020 14:17:18 +0000 (19:47 +0530)] 
[3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694) (GH-21697)

(cherry picked from commit cadda52d974937069eeebea1cca4229e2bd400df)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
5 years agobpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)
Miss Islington (bot) [Wed, 29 Jul 2020 18:43:54 +0000 (11:43 -0700)] 
bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)

Automerge-Triggered-By: @brettcannon
(cherry picked from commit ba18c0b13ba3c08077ea3db6658328523823a33f)

Co-authored-by: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
5 years agoRemove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21667)
Miss Islington (bot) [Wed, 29 Jul 2020 01:39:10 +0000 (18:39 -0700)] 
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21667)

5 years agocloses bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)
Miss Islington (bot) [Wed, 29 Jul 2020 01:16:19 +0000 (18:16 -0700)] 
closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)

This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.

 I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
(cherry picked from commit a74eea238f5baba15797e2e8b570d153bc8690a7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years ago[3.9] Improve blake2 comment for Victor (GH-20981) (GH-20982)
Miss Islington (bot) [Tue, 28 Jul 2020 19:29:46 +0000 (12:29 -0700)] 
[3.9] Improve blake2 comment for Victor (GH-20981) (GH-20982)

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

Co-authored-by: Christian Heimes <christian@python.org>
5 years agoFix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
Miss Islington (bot) [Tue, 28 Jul 2020 16:58:30 +0000 (09:58 -0700)] 
Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)

(cherry picked from commit 34cd3e9f6a87f9c50edac893b0d5ae46c4e48ee3)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
5 years agobpo-41412 and bpo-40948: Windows installer updates (GH-21656)
Miss Islington (bot) [Tue, 28 Jul 2020 15:55:38 +0000 (08:55 -0700)] 
bpo-41412 and bpo-40948: Windows installer updates (GH-21656)

Prevent installation on Windows 8 and earlier.
Download UCRT on demand when required (non-updated Windows 8.1 only)
Add reference to py launcher to post-install message
(cherry picked from commit 37a06cbe5c17c2aa6ad938339fd42531a8a0bea0)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)
Miss Islington (bot) [Tue, 28 Jul 2020 14:56:15 +0000 (07:56 -0700)] 
bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)

(cherry picked from commit 5e3826785dcc64f8e1a8a7bde11b88fbb40943be)

Co-authored-by: Dmytro Litvinov <litvinov.dmytro.it@gmail.com>
5 years ago[3.9] Validate the AST produced by the parser in debug mode (GH-21643) (GH-21646)
Pablo Galindo [Mon, 27 Jul 2020 23:12:31 +0000 (00:12 +0100)] 
[3.9] Validate the AST produced by the parser in debug mode (GH-21643) (GH-21646)

This will improve the debug experience if something fails in the produced AST. Previously, errors in the produced AST can be felt much later like in the garbage collector or the compiler, making debugging them much more difficult..
(cherry picked from commit 1332226b32da44087a55e1d71990ee6899dfd28a)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[3.9] bpo-41045: Document debug feature of f-strings ('=') (GH-21509) (GH-21645)
Guido van Rossum [Mon, 27 Jul 2020 23:01:49 +0000 (16:01 -0700)] 
[3.9] bpo-41045: Document debug feature of f-strings ('=') (GH-21509) (GH-21645)

Co-Authored-By: Rishi <rishi93dev@gmail.com>
(cherry picked from commit 13efaec)

Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
5 years ago[3.9] bpo-40939: Use the new grammar for the grammar specification documentation...
Guido van Rossum [Mon, 27 Jul 2020 19:00:42 +0000 (12:00 -0700)] 
[3.9] bpo-40939: Use the new grammar for the grammar specification documentation (GH-19969) (#21641)

(We censor the heck out of actions and some other stuff using a custom "highlighter".)

(cherry picked from commit 72cabb2aa636272e608285f5a6ba83b62be9be4e)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)
Miss Islington (bot) [Mon, 27 Jul 2020 02:14:12 +0000 (19:14 -0700)] 
bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)

... when an unknown option is passed.  TypeError was being raised because a 2to3 fix was missing.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit f1d40f941a6483b1d4ea10f1051ace7b426fb8e7)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
5 years agobpo-41182 selector: use DefaultSelector based upon implementation (GH-21257)
Miss Islington (bot) [Sun, 26 Jul 2020 15:32:25 +0000 (08:32 -0700)] 
bpo-41182 selector: use DefaultSelector based upon implementation (GH-21257)

On some platform such as VMware ESXi, DefaultSelector fails
to detect selector due to default value.
This fix adds a check and uses the correct selector depending upon
select implementation and actual call.

Fixes: [bpo-41182]()
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit bcd47837a9bf4806e559b40df73869493efcce27)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years agobpo-41341: Recursive evaluation of ForwardRef in get_type_hints (GH-21553)
Miss Islington (bot) [Sun, 26 Jul 2020 15:31:24 +0000 (08:31 -0700)] 
bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (GH-21553)

The issue raised by recursive evaluation is infinite recursion with
recursive types. In that case, only the first recursive ForwardRef is
evaluated.
(cherry picked from commit 653f420b53a3aa87316cef59de8d3f5d9e11deb4)

Co-authored-by: wyfo <joperez@hotmail.fr>
5 years agobpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)
Miss Islington (bot) [Sun, 26 Jul 2020 07:38:52 +0000 (00:38 -0700)] 
bpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)

(cherry picked from commit b1a87300a06324c9fc7d6553906ed914489465aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-37309: NEWS for GH-41373 (GH-21612)
Miss Islington (bot) [Sun, 26 Jul 2020 04:25:17 +0000 (21:25 -0700)] 
bpo-37309: NEWS for GH-41373 (GH-21612)

(cherry picked from commit af08db7bac3087aac313d052c1a6302bee7c9c89)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) (GH-18851)
Miss Islington (bot) [Sat, 25 Jul 2020 23:40:48 +0000 (16:40 -0700)] 
bpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) (GH-18851)

(cherry picked from commit f117cef25b5ffc4db9fbe373ddb65e14f59f0397)

Co-authored-by: Shankar Jha <shankarj67@gmail.com>
5 years agobpo-41314: fixed annotations __future__ version (GH-21616)
Miss Islington (bot) [Sat, 25 Jul 2020 22:00:48 +0000 (15:00 -0700)] 
bpo-41314: fixed annotations __future__ version (GH-21616)

PEP 563 was updated to change the release where `from __future__ import annotations` becomes the default (and only) behavior from 4.0 to 3.10. Update `__future__.py` and its docs to reflect this.
(cherry picked from commit 0028c14073109595e7532ec00bb1e8bf39ecfb4d)

Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
5 years agobpo-38731: Fix NameError in command-line interface of py_compile (GH-21617)
Berker Peksag [Sat, 25 Jul 2020 20:43:47 +0000 (23:43 +0300)] 
bpo-38731: Fix NameError in command-line interface of py_compile (GH-21617)

5 years agobpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines (GH-21597)
Miss Islington (bot) [Sat, 25 Jul 2020 03:39:31 +0000 (20:39 -0700)] 
bpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines (GH-21597)

Fixes regression in 3.8.4 and 3.9.0b4.

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-32528: Document the change in inheritance of asyncio.CancelledError (GH-21474)
Miss Islington (bot) [Fri, 24 Jul 2020 14:19:13 +0000 (07:19 -0700)] 
bpo-32528: Document the change in inheritance of asyncio.CancelledError (GH-21474)

GH-msg373510

[bpo-32528]()/GH-13528 changed `asyncio.CancelledError` such that it no longer inherits from `concurrent.futures.CancelledError`. As this affects existing code, specifically when catching the latter instead of the former in exception handling, it should be documented in the "What's new in 3.8?" document.

Automerge-Triggered-By: @1st1
(cherry picked from commit 2a5181829af394b82e8e8c917183c709ee72a2b7)

Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
5 years agobpo-41317: Remove reader on cancellation in asyncio.loop.sock_accept() (GH-21595)
Miss Islington (bot) [Thu, 23 Jul 2020 20:02:47 +0000 (13:02 -0700)] 
bpo-41317: Remove reader on cancellation in asyncio.loop.sock_accept() (GH-21595)

(cherry picked from commit 0dd98c2d00a75efbec19c2ed942923981bc06683)

Co-authored-by: Alex Grönholm <alex.gronholm@nextday.fi>
5 years agobpo-41366: Fix clang warning for sign conversion (GH-21592)
Miss Islington (bot) [Thu, 23 Jul 2020 08:59:21 +0000 (01:59 -0700)] 
bpo-41366: Fix clang warning for sign conversion (GH-21592)

(cherry picked from commit 680254a8dc64e3ada00f88a7c42d41eb02108353)

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
5 years agobpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)
Miss Islington (bot) [Thu, 23 Jul 2020 06:25:59 +0000 (23:25 -0700)] 
bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)

Also one in news log.
(cherry picked from commit 592527f3ee59616eca2bd1da771f7c14cee808d5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-41364: Reduce import overhead of uuid module (GH-21586)
Miss Islington (bot) [Wed, 22 Jul 2020 00:09:32 +0000 (17:09 -0700)] 
bpo-41364: Reduce import overhead of uuid module (GH-21586)

(cherry picked from commit bf2f76ec0976c09de79c8827764f30e3b6fba776)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-40741: Update Windows build to include SQLite 3.32.3 (GH-21570)
Miss Islington (bot) [Tue, 21 Jul 2020 00:10:32 +0000 (17:10 -0700)] 
bpo-40741: Update Windows build to include SQLite 3.32.3 (GH-21570)

(cherry picked from commit 84761c3cc4bac31d471e371c53a338686d4b0241)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agoPost 3.9.0b5
Łukasz Langa [Mon, 20 Jul 2020 19:34:58 +0000 (21:34 +0200)] 
Post 3.9.0b5