]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agobpo-41892: Clarify that an example in the ElementTree docs explicitly avoids modifyin...
Miss Skeleton (bot) [Sun, 4 Oct 2020 23:56:56 +0000 (16:56 -0700)] 
bpo-41892: Clarify that an example in the ElementTree docs explicitly avoids modifying an XML tree while iterating over it. (GH-22464) (GH-22554)

(cherry picked from commit 40db798692ca783fc2163656f196ac77e8b9e792)

Co-authored-by: scoder <stefan_ml@behnel.de>
Co-authored-by: scoder <stefan_ml@behnel.de>
5 years ago[3.9] bpo-41909: Enable previously disabled recursion checks. (GH-22536) (GH-22550)
Serhiy Storchaka [Sun, 4 Oct 2020 22:27:38 +0000 (01:27 +0300)] 
[3.9] bpo-41909: Enable previously disabled recursion checks. (GH-22536) (GH-22550)

Enable recursion checks which were disabled when get __bases__ of
non-type objects in issubclass() and isinstance() and when intern
strings. It fixes a stack overflow when getting __bases__ leads
to infinite recursion.

Originally recursion checks was disabled for PyDict_GetItem() which
silences all errors including the one raised in case of detected
recursion and can return incorrect result. But now the code uses
PyDict_GetItemWithError() and PyDict_SetDefault() instead.
(cherry picked from commit 9ece9cd65cdeb0a1f6e60475bbd0219161c348ac)

5 years agoTypo fix (GH-22496)
Miss Skeleton (bot) [Sun, 4 Oct 2020 21:51:38 +0000 (14:51 -0700)] 
Typo fix (GH-22496)

Multiple typo fixes in code comments

Automerge-Triggered-By: @Mariatta
(cherry picked from commit 619f98045d73859688e5cfdb946d183e6d493a64)

Co-authored-by: Manan Kumar Garg <62146744+MananKGarg@users.noreply.github.com>
5 years ago[3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544)
Pablo Galindo [Sun, 4 Oct 2020 17:11:10 +0000 (18:11 +0100)] 
[3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544)

(cherry picked from commit 2cc6dc9896771ef3615abbb5ba80939a2f644a08)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agoDelete extra 'the' from `Formatter` class docstring (GH-22530) (GH-22542)
Miss Skeleton (bot) [Sun, 4 Oct 2020 16:31:52 +0000 (09:31 -0700)] 
Delete extra 'the' from `Formatter` class docstring (GH-22530) (GH-22542)

(cherry picked from commit a619af43ccd10bab363b1e59814a2e2727422545)

5 years agobpo-41898: add caveat on root logger seeing all messages in assertLogs doc (GH-22526...
Miss Skeleton (bot) [Sun, 4 Oct 2020 15:38:03 +0000 (08:38 -0700)] 
bpo-41898: add caveat on root logger seeing all messages in assertLogs doc (GH-22526) (GH-22540)

(cherry picked from commit 1ed54435268b285964141fb74d47ceaa33ea79ab)

5 years ago[doc] Use list[int] instead of List[int] (etc.) in a few more places (GH-22524)
Miss Skeleton (bot) [Sat, 3 Oct 2020 22:33:30 +0000 (15:33 -0700)] 
[doc] Use list[int] instead of List[int] (etc.) in a few more places (GH-22524)

This changes a few occurrences left behind by GH-22340.

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

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years ago[3.9] bpo-41840: Report module-level globals as both local and global in the symtable...
Pablo Galindo [Sat, 3 Oct 2020 20:23:03 +0000 (21:23 +0100)] 
[3.9] bpo-41840: Report module-level globals as both local and global in the symtable module (GH-22391). (GH-22528)

(cherry picked from commit fb0a4651f1be4ad936f8277478f73f262d8eeb72)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[doc] Fix link to abc.collections.Iterable (GH-22520)
Miss Skeleton (bot) [Sat, 3 Oct 2020 16:13:14 +0000 (09:13 -0700)] 
[doc] Fix link to abc.collections.Iterable (GH-22520)

Missed this occurrence before, sorry. Also changed "the PEP" to "PEP".

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

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years ago[3.9] bpo-41867: List options for timespec in docstrings of isoformat methods (GH...
Miss Skeleton (bot) [Sat, 3 Oct 2020 11:42:16 +0000 (04:42 -0700)] 
[3.9] bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)

(cherry picked from commit 52301312bb9de2299b0c42468fd1936d869e651c)

Co-authored-by: Ram Rachum <ram@rachum.com>
5 years ago[3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)
Miss Skeleton (bot) [Sat, 3 Oct 2020 10:44:14 +0000 (03:44 -0700)] 
[3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)

(cherry picked from commit f97e42ef4d97dee64f45ed65170a6e77c8e46fdf)

Co-authored-by: Ram Rachum <ram@rachum.com>
5 years agobpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a default...
Miss Skeleton (bot) [Sat, 3 Oct 2020 06:41:35 +0000 (23:41 -0700)] 
bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a default namespace was defined. (GH-22474) (GH-22507)

(cherry picked from commit 6a412c94b6b68e7e3632562dc7358a12ffd1447f)

5 years ago[doc] Fix link to abc.collections.Iterable (GH-22502)
Miss Skeleton (bot) [Fri, 2 Oct 2020 23:36:51 +0000 (16:36 -0700)] 
[doc] Fix link to abc.collections.Iterable (GH-22502)

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

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agoTypo fix - "mesasge" should be "message" (GH-22498)
Miss Skeleton (bot) [Fri, 2 Oct 2020 20:43:44 +0000 (13:43 -0700)] 
Typo fix - "mesasge" should be "message" (GH-22498)

* Correct at 2 places in email module
(cherry picked from commit 9cd01ece78e63bf98a1d25f70d5a020adf07ca4a)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
5 years agobpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)
Miss Islington (bot) [Fri, 2 Oct 2020 16:39:20 +0000 (09:39 -0700)] 
bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)

(cherry picked from commit 20ce62f00957d11f24f6449cd5c0ef5dd67174d4)

Co-authored-by: Campbell Barton <ideasman42@gmail.com>
5 years agoFix grammar in secrets module documentation (GH-22467)
Miss Islington (bot) [Wed, 30 Sep 2020 22:49:52 +0000 (15:49 -0700)] 
Fix grammar in secrets module documentation (GH-22467)

From `In particularly,` to `In particular,`
(cherry picked from commit 63298930fb531ba2bb4f23bc3b915dbf1e17e9e1)

Co-authored-by: Max Smolens <msmolens@users.noreply.github.com>
5 years agobpo-41774: Add programming FAQ entry (GH-22402)
Miss Islington (bot) [Tue, 29 Sep 2020 05:27:06 +0000 (22:27 -0700)] 
bpo-41774: Add programming FAQ entry (GH-22402)

In the "Sequences (Tuples/Lists)" section, add
"How do you remove multiple items from a list".
(cherry picked from commit 5b0181d1f6474c2cb9b80bdaf3bc56a78bf5fbe7)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41875: Use __builtin_unreachable when possible (GH-22433)
Miss Islington (bot) [Mon, 28 Sep 2020 22:16:24 +0000 (15:16 -0700)] 
bpo-41875: Use __builtin_unreachable when possible (GH-22433)

(cherry picked from commit 24ba3b0df5e5f2f237d7b23b4017ba12f16320ae)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
5 years agobpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337)
Miss Islington (bot) [Mon, 28 Sep 2020 20:18:47 +0000 (13:18 -0700)] 
bpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337)

(cherry picked from commit ff9147d93b868f0e13b9fe14e2a76c2879f6787b)

Co-authored-by: Jan Mazur <16736821+mzr@users.noreply.github.com>
5 years ago[doc] Leverage the fact that the actual types can now be indexed for typing (GH-22340)
Miss Islington (bot) [Sun, 27 Sep 2020 19:42:29 +0000 (12:42 -0700)] 
[doc] Leverage the fact that the actual types can now be indexed for typing (GH-22340)

This shows users that they can use the actual types. Using deprecated types is confusing.

This also prefers colections.abc.Sized instead of the alias typing.Sized. I guess the aliases were created to make it convenient to import all collections related types from the same place.

This should be backported to 3.9.

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

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-41858: Clarify line in optparse doc (GH-22407)
Miss Islington (bot) [Sun, 27 Sep 2020 04:03:56 +0000 (21:03 -0700)] 
bpo-41858: Clarify line in optparse doc (GH-22407)

The existing line is easily read as being incomplete.
(cherry picked from commit 00eb063b6600fdb4ba5cfb99da83cc1660ec69bf)

Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
5 years agobpo-41775: Make 'IDLE Shell' the shell title (GH-22399)
Miss Islington (bot) [Thu, 24 Sep 2020 20:07:49 +0000 (13:07 -0700)] 
bpo-41775: Make 'IDLE Shell' the shell title  (GH-22399)

'Python Shell' may have contributed to some beginners confusing 'IDLE' with ' Python'.
(cherry picked from commit 05cc881cbcf5d73a312568c78c7149eae3195072)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years ago[3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pymain_run_module...
Łukasz Langa [Thu, 24 Sep 2020 14:34:21 +0000 (16:34 +0200)] 
[3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pymain_run_module (GH-21956) (#22397)

Closes bpo issue 41602.
(cherry picked from commit a68a2ad19c891faa891904b3da537911cc77df21)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
5 years agobpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
Miss Islington (bot) [Wed, 23 Sep 2020 15:51:50 +0000 (08:51 -0700)] 
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)

(cherry picked from commit 22b7616f26694ac707fd53ece500febfad665426)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-33822: Update IDLE section of What's New 3.8 (GH-22383)
Miss Islington (bot) [Wed, 23 Sep 2020 15:37:52 +0000 (08:37 -0700)] 
bpo-33822: Update IDLE section of What's New 3.8 (GH-22383)

(cherry picked from commit 9c4eac7f02ddcf32fc1cdaf7c08c37fe9718c1fb)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years ago[3.9] bpo-41841: Prepare IDLE News for 3.9 (GH-22380)
Terry Jan Reedy [Wed, 23 Sep 2020 14:07:19 +0000 (10:07 -0400)] 
[3.9] bpo-41841: Prepare IDLE News for 3.9 (GH-22380)

5 years agobpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22370)
Miss Islington (bot) [Wed, 23 Sep 2020 03:58:32 +0000 (20:58 -0700)] 
bpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22370)

(cherry picked from commit 62e40d8450b9c78346ec3617de7fe3f0ad381510)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
5 years agobpo-35764: Rewrite the IDLE Calltips doc section (GH-22363)
Miss Islington (bot) [Tue, 22 Sep 2020 18:35:38 +0000 (11:35 -0700)] 
bpo-35764: Rewrite the IDLE Calltips doc section  (GH-22363)

5 years agofix `EventType` bases
Miss Islington (bot) [Tue, 22 Sep 2020 18:31:22 +0000 (11:31 -0700)] 
fix `EventType` bases

`StrEnum` does not exist in 3.8, so use original `(str, enum.Enum)` bases.

5 years agobpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)
Miss Islington (bot) [Tue, 22 Sep 2020 06:05:07 +0000 (23:05 -0700)] 
bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)

The marker was added to the language in 3.8 and
3.7 only gets security patches.
(cherry picked from commit 40a0625792e795cd41c4ba20475e3b770b53817a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41815: SQLite: segfault if backup called on closed database (GH-22322)
Miss Islington (bot) [Mon, 21 Sep 2020 22:05:17 +0000 (15:05 -0700)] 
bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)

GH- [bpo-41815](): SQLite: fix segfault if backup called on closed database

Attempting to backup a closed database will trigger segfault:

```python
import sqlite3
target = sqlite3.connect(':memory:')
source = sqlite3.connect(':memory:')
source.close()
source.backup(target)
```
(cherry picked from commit bfee9fad84531a471fd7864e88947320669f68e2)

Co-authored-by: Peter McCormick <peter@pdmccormick.com>
5 years agoFix a compiler warning in pycore_pylifecycle.h (GH-22331)
Pablo Galindo [Mon, 21 Sep 2020 10:57:22 +0000 (11:57 +0100)] 
Fix a compiler warning in pycore_pylifecycle.h (GH-22331)

5 years agobpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)
Miss Islington (bot) [Mon, 21 Sep 2020 08:58:27 +0000 (01:58 -0700)] 
bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)

Fix the compiler warning:

format specifies type `wint_t` (aka `int`) but the argument has type `unsigned int`
(cherry picked from commit c322948892438a387d752ec18d1eb512699a4d67)

Co-authored-by: Samuel Marks <807580+SamuelMarks@users.noreply.github.com>
5 years agobpo-41811: create SortKey members using first given value (GH-22316) (GH-22325)
Miss Islington (bot) [Sat, 19 Sep 2020 19:56:13 +0000 (12:56 -0700)] 
bpo-41811: create SortKey members using first given value (GH-22316) (GH-22325)

(cherry picked from commit ae0d2a33ec05aece939a959d36fcf1df1e210a08)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
5 years agobpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309)
Victor Stinner [Fri, 18 Sep 2020 14:53:46 +0000 (16:53 +0200)] 
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309)

Doc/requirements.txt becomes the reference for packages and package
versions needed to build the Python documentation.

* Doc/Makefile now uses Doc/requirements.txt
* .travis.yml now uses "make env" of Doc/Makefile
* Update Sphinx to version 2.4.4

(cherry picked from commit 8394500cca56490cc347604d39ca40abcdce46c3)

5 years agobpo-35293: Remove RemovedInSphinx40Warning (GH-22198)
Miss Islington (bot) [Fri, 18 Sep 2020 09:38:41 +0000 (02:38 -0700)] 
bpo-35293: Remove RemovedInSphinx40Warning (GH-22198)

* bpo-35293: Remove RemovedInSphinx40Warning

* Update Misc/NEWS.d/next/Documentation/2020-09-12-17-37-13.bpo-35293._cOwPD.rst

Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-35293: Apply Victor's review

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 6595cb0af4c51c0381c233b97884fe916a4ddd35)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
5 years agobpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
Miss Islington (bot) [Fri, 18 Sep 2020 07:27:21 +0000 (00:27 -0700)] 
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)

Use an unique identifier for the different grammars documented using
the Sphinx productionlist markup.

productionlist markups of the same grammar, like "expressions" or
"compound statements", use the same identifier "python-grammar".
(cherry picked from commit 8af239eacfcf52e4e0e2b0223e7cea4672309483)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.9] Remove duplicated words words (GH-22298). (GH-22299)
Serhiy Storchaka [Fri, 18 Sep 2020 07:13:57 +0000 (10:13 +0300)] 
[3.9] Remove duplicated words words (GH-22298). (GH-22299)

(cherry picked from commit 27201cddf3b25be7df25bbe36966531539757d60)

5 years ago[3.9] Remove duplicated words words (GH-20413). (GH-22296)
Serhiy Storchaka [Fri, 18 Sep 2020 06:36:14 +0000 (09:36 +0300)] 
[3.9] Remove duplicated words words (GH-20413). (GH-22296)

(cherry picked from commit 1c5d1d7304a119040fd3118128bdb412f0cce6a6)

5 years ago[3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)
Terry Jan Reedy [Fri, 18 Sep 2020 00:47:22 +0000 (20:47 -0400)] 
[3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)

(cherry picked from commit a33f2c2bae759fc9d06e1c032fd2026135f2df45)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agoPost 3.9.0rc2
Łukasz Langa [Thu, 17 Sep 2020 08:45:49 +0000 (10:45 +0200)] 
Post 3.9.0rc2

5 years agoMerge tag 'v3.9.0rc2' into 3.9
Łukasz Langa [Thu, 17 Sep 2020 08:45:24 +0000 (10:45 +0200)] 
Merge tag 'v3.9.0rc2' into 3.9

Python 3.9.0rc2

5 years agobpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)
Miss Islington (bot) [Thu, 17 Sep 2020 07:57:07 +0000 (00:57 -0700)] 
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)

* When the parameters argument is a list, correctly handle the case
  of changing it during iteration.
* When the parameters argument is a custom sequence, no longer
  override an exception raised in ``__len__()``.
(cherry picked from commit 0b419b791077414bbc011a412698ebb362b63761)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago[3.9] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22282)
Ethan Furman [Thu, 17 Sep 2020 00:37:51 +0000 (17:37 -0700)] 
[3.9] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22282)

fix default `_missing_` to return `None` instead of raising a `ValueError`
Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>
(cherry picked from commit c95ad7a91fbd7636f33a098d3b39964ab083bf49)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
5 years ago_auto_called cleanup (GH-22285)
Miss Islington (bot) [Thu, 17 Sep 2020 00:27:09 +0000 (17:27 -0700)] 
_auto_called cleanup (GH-22285)

(cherry picked from commit fc23a9483ef0d7c98bea9f82392377d0b6ef7b18)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
5 years agoPython 3.9.0rc2 v3.9.0rc2
Łukasz Langa [Wed, 16 Sep 2020 21:23:13 +0000 (23:23 +0200)] 
Python 3.9.0rc2

5 years agobpo-41517: do not allow Enums to be extended (GH-22271)
Miss Islington (bot) [Wed, 16 Sep 2020 14:35:14 +0000 (07:35 -0700)] 
bpo-41517: do not allow Enums to be extended (GH-22271)

fix bug that let Enums be extended via multiple inheritance
(cherry picked from commit 3064dbf5df1021e85b507366a7ea448c8895efe7)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
5 years agobpo-41687: Fix error handling in Solaris sendfile implementation (GH-22128)
Miss Islington (bot) [Wed, 16 Sep 2020 12:25:09 +0000 (05:25 -0700)] 
bpo-41687: Fix error handling in Solaris sendfile implementation (GH-22128)

I just realized that my recent PR with sendfile on Solaris ([PR 22040](https://github.com/python/cpython/pull/22040)) has broken error handling.

Sorry for that, this simple followup fixes that.

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

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
5 years ago[3.9] bpo-41687: Fix sendfile implementation to work with Solaris (GH-22040) (GH...
Łukasz Langa [Wed, 16 Sep 2020 11:52:26 +0000 (13:52 +0200)] 
[3.9] bpo-41687: Fix sendfile implementation to work with Solaris (GH-22040) (GH-22273)

(cherry picked from commit 8c0be6fd9101746235b63ddfb84106d1e9ca286b)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
5 years ago[3.9] bpo-41789: honor object overrides in Enum classes (GH-22250) (GH-22272)
Ethan Furman [Wed, 16 Sep 2020 10:58:33 +0000 (03:58 -0700)] 
[3.9] bpo-41789: honor object overrides in Enum classes (GH-22250) (GH-22272)

EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed.  This patch fixes that.

5 years agobpo-39587: Enum - use correct mixed-in data type (GH-22263) (GH-22266)
Miss Islington (bot) [Tue, 15 Sep 2020 23:59:48 +0000 (16:59 -0700)] 
bpo-39587: Enum - use correct mixed-in data type (GH-22263) (GH-22266)

(cherry picked from commit bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1)

5 years agobpo-41780: Fix __dir__ of types.GenericAlias (GH-22262)
Miss Islington (bot) [Tue, 15 Sep 2020 23:37:13 +0000 (16:37 -0700)] 
bpo-41780: Fix __dir__ of types.GenericAlias (GH-22262)

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

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
5 years agoImprove the description of difflib in the documentation (GH-22253) (#22261)
Miss Islington (bot) [Tue, 15 Sep 2020 19:45:05 +0000 (12:45 -0700)] 
Improve the description of difflib in the documentation (GH-22253) (#22261)

From "can produce difference information in various formats ..."
to " can produce information about file differences in various formats ..."

Automerge-Triggered-By: @Mariatta
(cherry picked from commit 5531269f698f789d1247123fd82681f7a455f66e)

Co-authored-by: Mandeep <mandeep052@gmail.com>
5 years ago[3.9] bpo-41631: _ast module uses again a global state (GH-21961) (GH-22258)
Pablo Galindo [Tue, 15 Sep 2020 18:32:56 +0000 (19:32 +0100)] 
[3.9] bpo-41631: _ast module uses again a global state (GH-21961) (GH-22258)

Partially revert commit ac46eb4ad6662cf6d771b20d8963658b2186c48c:
"bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)".

Using a module state per module instance is causing subtle practical
problems.

For example, the Mercurial project replaces the __import__() function
to implement lazy import, whereas Python expected that "import _ast"
always return a fully initialized _ast module.

Add _PyAST_Fini() to clear the state at exit.

The _ast module has no state (set _astmodule.m_size to 0). Remove
astmodule_traverse(), astmodule_clear() and astmodule_free()
functions..
(cherry picked from commit e5fbe0cbd4be99ced5f000ad382208ad2a561c90)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234)...
Miss Islington (bot) [Tue, 15 Sep 2020 13:56:28 +0000 (06:56 -0700)] 
bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) (GH-22255)

Revise example of "continue" in the tutorial documentation
(cherry picked from commit 7bcc6456ad4704da9b287c8045768fa53961adc5)

Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
5 years agobpo-40721: add note about enum member name case (GH-22231)
Miss Islington (bot) [Mon, 14 Sep 2020 20:49:29 +0000 (13:49 -0700)] 
bpo-40721: add note about enum member name case (GH-22231)

* UPPER_CASE preferred as enum members are constants
(cherry picked from commit 542e1df2b018ee7068dba8076f2d6e84efd6e144)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
5 years agobpo-39883: Update macOS installer copy of LICENSE. (GH-22235) (GH-22236)
Miss Islington (bot) [Mon, 14 Sep 2020 05:59:58 +0000 (22:59 -0700)] 
bpo-39883: Update macOS installer copy of LICENSE. (GH-22235) (GH-22236)

(cherry picked from commit 7dbbea75cec27a48b68cc07c23f3f317cacf4a16)

Co-authored-by: Ned Deily <nad@python.org>
5 years ago[3.9] bpo-41778: Change a punctuation on documentation. (GH-22229) (GH-22232)
Emmanuel Arias [Sun, 13 Sep 2020 21:38:01 +0000 (18:38 -0300)] 
[3.9] bpo-41778: Change a punctuation on documentation. (GH-22229) (GH-22232)

On this paragrapah the clarification about IIS7 seems there's not
connection beacuase is in other sentence. Move the punctuation
to connect both the last sentence with the information in the
parenthesis.

I think the NEWS is not necessary here.

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

Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
5 years agobpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions...
Miss Islington (bot) [Sun, 13 Sep 2020 18:20:38 +0000 (11:20 -0700)] 
bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions (GH-21763) (GH-22225)

(cherry picked from commit b48389d95093c3f912549add8da339edc164bf0d)

5 years agobpo-41672: Fix type mismatches in imaplib docs (GH-22207)
Miss Islington (bot) [Sat, 12 Sep 2020 08:14:37 +0000 (01:14 -0700)] 
bpo-41672: Fix type mismatches in imaplib docs (GH-22207)

(cherry picked from commit c75330605d4795850ec74fdc4d69aa5d92f76c00)

Co-authored-by: Norbert Cyran <cyran.norbert97@gmail.com>
5 years agobpo-39651: Fix asyncio proactor _write_to_self() (GH-22197)
Miss Islington (bot) [Sat, 12 Sep 2020 07:11:38 +0000 (00:11 -0700)] 
bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197)

Fix a race condition in the call_soon_threadsafe() method of
asyncio.ProactorEventLoop: do nothing if the self-pipe socket has
been closed.
(cherry picked from commit 1b0f0e3d7d03155da1cf9769a847874d559e57e3)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)
Miss Islington (bot) [Sat, 12 Sep 2020 06:45:34 +0000 (23:45 -0700)] 
bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)

Argument script_exec_args is usually an absolute file name,
but twice has form ['-m', 'module_name'].
(cherry picked from commit 7e711ead26fea6465e0ef2e3b8880b57ba8fc129)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)
Miss Islington (bot) [Sat, 12 Sep 2020 06:18:59 +0000 (23:18 -0700)] 
bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)

The problems occured with a repository build on machine
with freshly updated Windows 10 Pro.
(cherry picked from commit 31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years ago[doc] struct: update note about network byte order form to be more helpful (GH-22201)
Miss Islington (bot) [Fri, 11 Sep 2020 15:35:23 +0000 (08:35 -0700)] 
[doc] struct: update note about network byte order form to be more helpful (GH-22201)

Update the sentence to provide some context on why network byte order is defined as big endian.
(cherry picked from commit fb2718720346c8c7a0ad2d7477f20e9a5524ea0c)

Co-authored-by: Stargirl Flowers <theaflowers@google.com>
5 years agoDoc: Fix alphabetical ordering of removeprefix/suffix. (GH-22194)
Miss Islington (bot) [Fri, 11 Sep 2020 00:13:56 +0000 (17:13 -0700)] 
Doc: Fix alphabetical ordering of removeprefix/suffix. (GH-22194)

(cherry picked from commit 3304cbd990f06b72480a6dc8f6f4fe1a1376dde7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agobpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188)
Miss Islington (bot) [Thu, 10 Sep 2020 20:19:29 +0000 (13:19 -0700)] 
bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188)

The new link responds much faster and begins with a short explanation of the status of the doc.
(cherry picked from commit 06d0b8b67e8aebd8fe4c34e97d6915c11f4afa30)

Co-authored-by: Mark Roseman <mark@markroseman.com>
5 years ago[doc] Remove superfluous comment about equal in f-strings (GH-22006)
Miss Islington (bot) [Thu, 10 Sep 2020 06:48:54 +0000 (23:48 -0700)] 
[doc] Remove superfluous comment about equal in f-strings (GH-22006)

Automerge-Triggered-By: @kushaldas
(cherry picked from commit 788b79fa7b6184221e68d4f1a3fbe0b3270693f6)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agoUpdate idlelib/help.html to current IDLE doc (GH-22181)
Miss Islington (bot) [Wed, 9 Sep 2020 23:16:05 +0000 (16:16 -0700)] 
Update idlelib/help.html to current IDLE doc (GH-22181)

(cherry picked from commit 471247150e9707e583297ac6b4edff978efd8941)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agoAdd missing colon to IDLE doc markup (GH-22007)
Miss Islington (bot) [Wed, 9 Sep 2020 22:29:51 +0000 (15:29 -0700)] 
Add missing colon to IDLE doc markup (GH-22007)

(cherry picked from commit 7a797a3967fdfedbaf49fd1f140ee670d7db40ad)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years ago[3.9] bpo-41688: Document bug in **= dispatching in the language data… (GH-22172)
Ammar Askar [Wed, 9 Sep 2020 18:01:38 +0000 (14:01 -0400)] 
[3.9] bpo-41688: Document bug in **= dispatching in the language data… (GH-22172)

I tossed in a "This bug is fixed in Python 3.10" sentence but I'm not sure if that's appropriate to have here.

5 years agoFix incorrect bpo number in change notes. (GH-22151) (#22174)
Miss Islington (bot) [Wed, 9 Sep 2020 16:33:21 +0000 (09:33 -0700)] 
Fix incorrect bpo number in change notes. (GH-22151) (#22174)

5 years agoFixes dead links to Django's logging config docs (GH-20823) (GH-22170)
Miss Islington (bot) [Wed, 9 Sep 2020 13:45:08 +0000 (06:45 -0700)] 
Fixes dead links to Django's logging config docs (GH-20823) (GH-22170)

(cherry picked from commit 714217f9561507bbc7218a02089d0e1da0239372)

5 years agoFix compiler warnings in init_dump_ascii_wstr() (GH-22150)
Miss Islington (bot) [Wed, 9 Sep 2020 10:31:25 +0000 (03:31 -0700)] 
Fix compiler warnings in init_dump_ascii_wstr() (GH-22150)

Fix GCC 9.3 (using -O3) warnings on x86:

initconfig.c: In function ‘init_dump_ascii_wstr’:
initconfig.c:2679:34: warning: format ‘%lc’ expects argument of type
‘wint_t’, but argument 2 has type ‘wchar_t’ {aka ‘long int’}
 2679 |             PySys_WriteStderr("%lc", ch);
initconfig.c:2682:38: warning: format ‘%x’ expects argument of type
‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’}
 2682 |             PySys_WriteStderr("\\x%02x", ch);
initconfig.c:2686:38: warning: format ‘%x’ expects argument of type
‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’}
 2686 |             PySys_WriteStderr("\\U%08x", ch);
initconfig.c:2690:38: warning: format ‘%x’ expects argument of type
‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’}
 2690 |             PySys_WriteStderr("\\u%04x", ch);
(cherry picked from commit 640e8e1d5f61d5868453d992da04bf4741327748)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41525: Make the Python program help ASCII-only (GH-21836)
Miss Islington (bot) [Wed, 9 Sep 2020 00:47:53 +0000 (17:47 -0700)] 
bpo-41525: Make the Python program help ASCII-only (GH-21836)

(cherry picked from commit 58de1dd6a8677bd213802c19204b827cb7134695)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago[doc] Fix padding in timeit (GH-22152)
Miss Islington (bot) [Tue, 8 Sep 2020 23:56:02 +0000 (16:56 -0700)] 
[doc] Fix padding in timeit (GH-22152)

Compare -p and -u options help in rendered output to see the difference.
(cherry picked from commit 594f0ce73be807c0fecf958dc0644fa37983f5fe)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years ago[3.9] Fix typo in typing.py (GH-22121) (GH-22156)
Miss Islington (bot) [Tue, 8 Sep 2020 23:36:07 +0000 (16:36 -0700)] 
[3.9] Fix typo in typing.py (GH-22121) (GH-22156)

This is a trivial PR to fix a typo in a docstring in typing.py. From reverences -> references
(cherry picked from commit 84ef33c5117acd9867781135a9aeb62052432e8a)

Co-authored-by: Graham Bleaney <gbleaney@gmail.com>
5 years agobpo-41720: Add "return NotImplemented" in turtle.Vec2D.__rmul__(). (GH-22092)
Miss Islington (bot) [Mon, 7 Sep 2020 16:30:21 +0000 (09:30 -0700)] 
bpo-41720: Add "return NotImplemented" in turtle.Vec2D.__rmul__(). (GH-22092)

(cherry picked from commit fd4cafd4700dc03cb05fc2e5263c2666d785d6e3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41401: Fix test_fspath_support in test_io. (GH-21640) (GH-22133)
Victor Stinner [Mon, 7 Sep 2020 14:45:57 +0000 (16:45 +0200)] 
bpo-41401: Fix test_fspath_support in test_io. (GH-21640) (GH-22133)

The error is exposed on non-UTF-8 locales.

(cherry picked from commit 67987acd5dc9776f55f4e139e2b3d9e7a6434d9f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago[3.9] closes bpo-41723: Fix an error in the py_compile documentation. (GH-22118)
Benjamin Peterson [Sun, 6 Sep 2020 03:54:46 +0000 (22:54 -0500)] 
[3.9] closes bpo-41723: Fix an error in the py_compile documentation. (GH-22118)

(cherry picked from commit 5371a46)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years ago[3.9] [doc] Fix padding in some typing definitions (GH-22114) (GH-22115)
Miss Islington (bot) [Sun, 6 Sep 2020 02:54:12 +0000 (19:54 -0700)] 
[3.9] [doc] Fix padding in some typing definitions (GH-22114) (GH-22115)

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

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-41218: Improve the test cases for test_compile_top_level_await_no_coro (GH-21363...
Miss Islington (bot) [Sat, 5 Sep 2020 15:37:04 +0000 (08:37 -0700)] 
bpo-41218: Improve the test cases for test_compile_top_level_await_no_coro (GH-21363) (GH-22109)

(cherry picked from commit c2c1f1f906cdeb40576880d4b6a4f8fcbc016eb8)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agoRemove unnecessary grammar decorations and change header (GH-20819) (GH-22101)
Miss Islington (bot) [Fri, 4 Sep 2020 23:40:54 +0000 (16:40 -0700)] 
Remove unnecessary grammar decorations and change header (GH-20819) (GH-22101)

(cherry picked from commit b4282dd15079ed46edc9d382b21422320a0af94f)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850...
Miss Islington (bot) [Fri, 4 Sep 2020 23:38:50 +0000 (16:38 -0700)] 
bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850) (GH-22107)

(cherry picked from commit c51db0ea40ddabaf5f771ea633b37fcf4c90a495)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agoOn path with known exact float, extract the double with the fast macro. (GH-21072)
Miss Islington (bot) [Fri, 4 Sep 2020 23:12:48 +0000 (16:12 -0700)] 
On path with known exact float, extract the double with the fast macro. (GH-21072)

(cherry picked from commit 930f4518aea7f3f0f914ce93c3fb92831a7e1d2a)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
5 years agobpo-29590: fix stack trace for gen.throw() with yield from (GH-19896)
Miss Islington (bot) [Fri, 4 Sep 2020 23:07:18 +0000 (16:07 -0700)] 
bpo-29590: fix stack trace for gen.throw() with yield from (GH-19896)

* Add failing test.

* bpo-29590: fix stack trace for gen.throw() with yield from (GH-NNNN)

When gen.throw() is called on a generator after a "yield from", the
intermediate stack trace entries are lost.  This commit fixes that.
(cherry picked from commit 8b33961e4bc4020d8b2d5b949ad9d5c669300e89)

Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
5 years agocloses bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847)
Miss Islington (bot) [Fri, 4 Sep 2020 22:56:04 +0000 (15:56 -0700)] 
closes bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847)

Free the stack allocated in va_build_stack if do_mkstack fails
and the stack is not a small_stack
(cherry picked from commit 75c80b0bda89debf312f075716b8c467d411f90e)

Co-authored-by: Tony Solomonik <tony.solomonik@gmail.com>
5 years agoFix typo in message from assert statement (GH-21283)
Miss Islington (bot) [Fri, 4 Sep 2020 22:55:05 +0000 (15:55 -0700)] 
Fix typo in message from assert statement (GH-21283)

The error message was missing space between the action "acquire" and "_wait_semaphore" which is an attribute for instances of Condition.
(cherry picked from commit 99c0ee3c893bb99fd98a97084fc386ce2911eb64)

Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com>
5 years ago[3.9] bpo-38787: Clarify docs for PyType_GetModule and warn against common mistake...
Miss Islington (bot) [Fri, 4 Sep 2020 22:32:28 +0000 (15:32 -0700)] 
[3.9] bpo-38787: Clarify docs for PyType_GetModule and warn against common mistake (GH-20215) (GH-21984)

(cherry picked from commit d9a966ae08258da2ce2a432c943d8194760f09c4)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Automerge-Triggered-By: @Mariatta
5 years ago[3.9] Improve asyncio-dev 'Concurrency and Multithreading' docs (GH-20882) (GH-22009)
Miss Islington (bot) [Fri, 4 Sep 2020 22:31:06 +0000 (15:31 -0700)] 
[3.9] Improve asyncio-dev 'Concurrency and Multithreading' docs (GH-20882) (GH-22009)

I added some information to the `Concurrency and Multithreading` section of the `Developing with asyncio` guide.

This is all information that would have helped me when I started using asyncio. I incorrectly assumed that `loop.call_soon_threadsafe()` and `run_coroutine_threadsafe()` could be called from a thread in a process separate from the one that the event loop is running in. Explicitly stating that this will not work will probably help some people starting out with asyncio in the future.

I also added references to some other functions that can be used for inter-process communication without blocking the event loop. The section already mentions running blocking code in a ThreadPoolExecutor, but I think listing these other options in this section will also be helpful.
(cherry picked from commit c68c5af2dc5ada8875a662f2beaac6234eae2a5a)

Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
5 years ago[3.9] bpo-40486: Specify what happens if directory content change diring iteration...
Miss Islington (bot) [Fri, 4 Sep 2020 22:29:06 +0000 (15:29 -0700)] 
[3.9] bpo-40486: Specify what happens if directory content change diring iteration (GH-22025) (GH-22093)

(cherry picked from commit 306cfb3a37e1438f6ba9f0a9f3af3c00aae4ec64)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago[3.9] Fix error in argparse documentation example (GH-17399) (GH-21992)
Miss Islington (bot) [Fri, 4 Sep 2020 22:26:22 +0000 (15:26 -0700)] 
[3.9] Fix error in argparse documentation example (GH-17399) (GH-21992)

Automerge-Triggered-By: @rhettinger
(cherry picked from commit 8784d3300ec4ffc58bc0e9ab3cff9a24187dbe4c)

Co-authored-by: SarahPythonista <4283226+SarahPythonista@users.noreply.github.com>
5 years ago[3.9] [doc] Fix a typo in the graphlib docs (GH-22030) (GH-22076)
Miss Islington (bot) [Fri, 4 Sep 2020 22:25:50 +0000 (15:25 -0700)] 
[3.9] [doc] Fix a typo in the graphlib docs (GH-22030) (GH-22076)

(cherry picked from commit 851606007665dc30089e5e1953208c5428e455b1)

Co-authored-by: Mario Šaško <mariosasko777@gmail.com>
5 years agobpo-38585: Remove references to defusedexpat (GH-22095)
Miss Islington (bot) [Fri, 4 Sep 2020 21:17:45 +0000 (14:17 -0700)] 
bpo-38585: Remove references to defusedexpat (GH-22095)

defusedexpat is not maintained.
(cherry picked from commit 51b84f8e96a441c498210f827c1297ee4973525f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-41721: Add xlc options (GH-22097)
Miss Islington (bot) [Fri, 4 Sep 2020 21:02:57 +0000 (14:02 -0700)] 
bpo-41721: Add xlc options (GH-22097)

(cherry picked from commit 84a7917b4c9afec07575065cffa143b91fe98c14)

Authored-by: Stefan Krah <skrah@bytereef.org>
5 years agobpo-41700: Skip test if the locale is not supported (GH-22081) (GH-22085)
Miss Islington (bot) [Fri, 4 Sep 2020 09:55:25 +0000 (02:55 -0700)] 
bpo-41700: Skip test if the locale is not supported (GH-22081) (GH-22085)

(cherry picked from commit 54a66ade2067c373d31003ad260e1b7d14c81564)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
5 years agobpo-39010: Improve test shutdown (GH-22066) (#22082)
Miss Islington (bot) [Thu, 3 Sep 2020 20:54:43 +0000 (13:54 -0700)] 
bpo-39010: Improve test shutdown (GH-22066) (#22082)

Simply closing the event loop isn't enough to avoid warnings. If we
don't also shut down the event loop's default executor, it sometimes
logs a "dangling thread" warning.

Follow-up to GH-22017
(cherry picked from commit be435ae2b064dc64f04475bec632862e1dbf605f)

Co-authored-by: Ben Darnell <ben@bendarnell.com>
Co-authored-by: Ben Darnell <ben@bendarnell.com>
5 years agobpo-41696: Fix handling of debug mode in asyncio.run (GH-22069) (#22071)
Miss Islington (bot) [Thu, 3 Sep 2020 20:54:09 +0000 (13:54 -0700)] 
bpo-41696: Fix handling of debug mode in asyncio.run (GH-22069) (#22071)

* bpo-41696: Fix handling of debug mode in asyncio.run

This allows PYTHONASYNCIODEBUG or -X dev to enable asyncio debug mode
when using asyncio.run

* 📜🤖 Added by blurb_it.

Co-authored-by: hauntsaninja <>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 0770ad948cb6d9f7f6c4002efd83e27c27069808)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
5 years agobpo-39010: Fix errors logged on proactor loop restart (GH-22017) (#22034)
Miss Islington (bot) [Thu, 3 Sep 2020 19:38:29 +0000 (12:38 -0700)] 
bpo-39010: Fix errors logged on proactor loop restart (GH-22017) (#22034)

Stopping and restarting a proactor event loop on windows can lead to
spurious errors logged (ConnectionResetError while reading from the
self pipe). This fixes the issue by ensuring that we don't attempt
to start multiple copies of the self-pipe reading loop.
(cherry picked from commit ea5a6363c3f8cc90b7c0cc573922b10f296073b6)

Co-authored-by: Ben Darnell <ben@bendarnell.com>
Co-authored-by: Ben Darnell <ben@bendarnell.com>
5 years ago[3.9] Fix 'gather' rules in the python parser generator (GH-22021) (GH-22080)
Pablo Galindo [Thu, 3 Sep 2020 15:35:36 +0000 (16:35 +0100)] 
[3.9] Fix 'gather' rules in the python parser generator (GH-22021) (GH-22080)

Currently, empty sequences in gather rules make the conditional for
gather rules fail as empty sequences evaluate as "False". We need to
explicitly check for "None" (the failure condition) to avoid false
negatives.
(cherry picked from commit e55a0e9)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
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>