]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agobpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)
Miss Islington (bot) [Sun, 5 Jul 2020 04:08:39 +0000 (21:08 -0700)] 
bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)

It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead.
(cherry picked from commit 9c8441712230660fedac818ed50e7cdd89e4c51d)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agoUncomment Py_DEPRECATED for Py_UNICODE APIs (GH-21318)
Miss Islington (bot) [Sun, 5 Jul 2020 02:19:40 +0000 (19:19 -0700)] 
Uncomment Py_DEPRECATED for Py_UNICODE APIs (GH-21318)

PyUnicode_EncodeDecimal and PyUnicode_TransformDecimalToASCII
are deprecated since Python 3.3.
But Py_DEPRECATED(3.3) was commented out.
(cherry picked from commit 13c90e82b6a1c3baff7f48f1bdc38058f6072f04)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agobpo-33864: Clarify the docs for typing.ByteString (GH-21311)
Miss Islington (bot) [Sat, 4 Jul 2020 04:05:41 +0000 (21:05 -0700)] 
bpo-33864: Clarify the docs for typing.ByteString (GH-21311)

(cherry picked from commit b40e434386cd94a367d4a256e3364771140160e7)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-21222: Fix improperly merged change so that final hooks are called before types...
Steve Dower [Fri, 3 Jul 2020 22:34:46 +0000 (23:34 +0100)] 
bpo-21222: Fix improperly merged change so that final hooks are called before types are cleared (GH-21304)

5 years agobpo-41162: Clear audit hooks later during finalization (GH-21222)
Steve Dower [Fri, 3 Jul 2020 21:58:29 +0000 (22:58 +0100)] 
bpo-41162: Clear audit hooks later during finalization (GH-21222)

Co-authored-by: Konge <zkonge@outlook.com>
5 years agobpo-41180: Audit code.__new__ when unmarshalling (GH-21271)
Miss Islington (bot) [Fri, 3 Jul 2020 21:16:23 +0000 (14:16 -0700)] 
bpo-41180: Audit code.__new__ when unmarshalling (GH-21271)

(cherry picked from commit d160e0f8e283d0a8737644588b38e8c6a07c134f)

Co-authored-by: tkmikan <36260601+tkmikan@users.noreply.github.com>
5 years agoPost 3.9.0b4
Łukasz Langa [Fri, 3 Jul 2020 16:47:54 +0000 (18:47 +0200)] 
Post 3.9.0b4

5 years agoMerge tag 'v3.9.0b4' into 3.9
Łukasz Langa [Fri, 3 Jul 2020 16:47:34 +0000 (18:47 +0200)] 
Merge tag 'v3.9.0b4' into 3.9

Python 3.9.0b4

5 years ago[3.9] bpo-41194: The _ast module cannot be loaded more than once (GH-21290) (GH-21292)
Victor Stinner [Fri, 3 Jul 2020 14:57:19 +0000 (16:57 +0200)] 
[3.9] bpo-41194: The _ast module cannot be loaded more than once (GH-21290) (GH-21292)

* bpo-41194: Pass module state in Python-ast.c (GH-21284)

Rework asdl_c.py to pass the module state to functions in
Python-ast.c, instead of using astmodulestate_global.

Handle also PyState_AddModule() failure in init_types().

(cherry picked from commit 74419f0c64959bb8392fcf3659058410423038e1)

* bpo-41194: The _ast module cannot be loaded more than once (GH-21290)

Fix a crash in the _ast module: it can no longer be loaded more than
once. It now uses a global state rather than a module state.

* Move _ast module state: use a global state instead.
* Set _astmodule.m_size to -1, so the extension cannot be loaded more
  than once.

(cherry picked from commit 91e1bc18bd467a13bceb62e16fbc435b33381c82)

5 years agoImprove code organization for the random module (GH-21161) (GH-21163)
Miss Islington (bot) [Fri, 3 Jul 2020 01:12:50 +0000 (18:12 -0700)] 
Improve code organization for the random module (GH-21161) (GH-21163)

5 years agobpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattr...
Miss Islington (bot) [Fri, 3 Jul 2020 00:28:41 +0000 (17:28 -0700)] 
bpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattro()" (GH-21092)

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

Co-authored-by: scoder <stefan_ml@behnel.de>
5 years agoRemove extraneous file from the Docs folder (GH-21286)
Miss Islington (bot) [Thu, 2 Jul 2020 22:15:01 +0000 (15:15 -0700)] 
Remove extraneous file from the Docs folder (GH-21286)

(cherry picked from commit 67673b08ea302174ca9c6559c04311550ae9f189)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agoPython 3.9.0b4 v3.9.0b4
Łukasz Langa [Thu, 2 Jul 2020 17:57:45 +0000 (19:57 +0200)] 
Python 3.9.0b4

5 years agobpo-41193: Ignore OSError in readline write_history() (GH-21279)
Miss Islington (bot) [Thu, 2 Jul 2020 11:02:16 +0000 (04:02 -0700)] 
bpo-41193: Ignore OSError in readline write_history() (GH-21279)

The write_history() atexit function of the readline completer now
ignores any OSError to ignore error if the filesystem is read-only,
instead of only ignoring FileNotFoundError and PermissionError.
(cherry picked from commit 0ab917e07ed64c6bfde6f6e791f9b28acc97b510)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.9] bpo-41043: Escape literal part of the path for glob(). (GH-20994). (GH-21275)
Serhiy Storchaka [Thu, 2 Jul 2020 07:05:16 +0000 (10:05 +0300)] 
[3.9] bpo-41043: Escape literal part of the path for glob(). (GH-20994). (GH-21275)

(cherry picked from commit 935586845815f5b4c7814794413f6a812d4bd45f)

5 years agobpo-40967: Remove deprecated asyncio.Task.current_task() and asyncio.Task.all_tasks...
Miss Islington (bot) [Thu, 2 Jul 2020 04:06:51 +0000 (21:06 -0700)] 
bpo-40967: Remove deprecated asyncio.Task.current_task() and asyncio.Task.all_tasks() (GH-20874)

(cherry picked from commit 004e64e8059fe68a72890314673282f2e60d5ce1)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
5 years agobpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215)
Miss Islington (bot) [Wed, 1 Jul 2020 15:29:30 +0000 (08:29 -0700)] 
bpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215)

(cherry picked from commit 694d31e714074176f0c324f95948b75dc768c091)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago[3.9] Add lysnikolaou to CODEOWNERS for the new parser (GH-21253)
Lysandros Nikolaou [Wed, 1 Jul 2020 09:50:04 +0000 (12:50 +0300)] 
[3.9] Add lysnikolaou to CODEOWNERS for the new parser (GH-21253)

5 years agoDoc: Minor fix to init config C API documentation (GH-21198)
Miss Islington (bot) [Wed, 1 Jul 2020 09:40:14 +0000 (02:40 -0700)] 
Doc: Minor fix to init config C API documentation (GH-21198)

Co-authored-by: Tomer Vromen <tomer.vromen@intel.com>
(cherry picked from commit 741008a57bdc95090b8be6ded5a9fd3f17f7bf21)

Co-authored-by: tomerv <tomerv@gmail.com>
5 years agobpo-41161 Add news entry for libmpdec-2.5.0 (GH-21243) (#21244)
Miss Islington (bot) [Tue, 30 Jun 2020 19:07:12 +0000 (12:07 -0700)] 
bpo-41161 Add news entry for libmpdec-2.5.0  (GH-21243) (#21244)

(cherry picked from commit 1648c99932f39f1c60972bb114e6a7bd65523818)

Authored-by: Stefan Krah <skrah@bytereef.org>
5 years agoUpdate FAQ release schedule and estimated users (GH-21180)
Miss Islington (bot) [Tue, 30 Jun 2020 09:51:12 +0000 (02:51 -0700)] 
Update FAQ release schedule and estimated users (GH-21180)

Update FAQ to include:
* The new yearly release schedule from PEP 602
* Estimated users from "tens of thousands" to "millions"
(cherry picked from commit 3fa4799c3f9d9de7cac30e5db3627e9e125b9ce5)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
5 years agobpo-41123: Remove PyUnicode_AsUnicodeCopy in 3.10 (GH-21227)
Inada Naoki [Tue, 30 Jun 2020 06:24:06 +0000 (15:24 +0900)] 
bpo-41123: Remove PyUnicode_AsUnicodeCopy in 3.10 (GH-21227)

5 years agobpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)
Miss Islington (bot) [Tue, 30 Jun 2020 00:36:46 +0000 (17:36 -0700)] 
bpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)

(cherry picked from commit 2515a28230b1a011205f30263da6b01c6bd167a3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033)
Miss Islington (bot) [Mon, 29 Jun 2020 18:15:32 +0000 (11:15 -0700)] 
bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033)

The __hash__() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
(cherry picked from commit b30ee26e366bf509b7538d79bfec6c6d38d53f28)

Co-authored-by: Ravi Teja P <rvteja92@gmail.com>
5 years ago[3.9] bpo-41084: Fix test_fstring failure when using the old parser (GH-21212)
Lysandros Nikolaou [Mon, 29 Jun 2020 12:55:57 +0000 (15:55 +0300)] 
[3.9] bpo-41084: Fix test_fstring failure when using the old parser (GH-21212)

5 years agoUpdate libmpdec license dates (GH-21216)
Miss Islington (bot) [Mon, 29 Jun 2020 12:12:02 +0000 (05:12 -0700)] 
Update libmpdec license dates (GH-21216)

(cherry picked from commit a3ad95dd2176b529fb6a9f763955b5cc1b499dbb)

Authored-by: Stefan Krah <skrah@bytereef.org>
5 years agobpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding...
Miss Islington (bot) [Mon, 29 Jun 2020 12:07:31 +0000 (05:07 -0700)] 
bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding (GH-20998)

(cherry picked from commit 7f569c9bc0079906012b3034d30fe8abc742e7fc)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
5 years agobpo-41123: Doc: PyLong_FromUnicode will be removed in 3.10 (GH-21205)
Inada Naoki [Mon, 29 Jun 2020 05:26:27 +0000 (14:26 +0900)] 
bpo-41123: Doc: PyLong_FromUnicode will be removed in 3.10 (GH-21205)

5 years agobpo-40874 Update the required libmpdec version for the decimal module (GH-21202)
Miss Islington (bot) [Sun, 28 Jun 2020 20:24:58 +0000 (13:24 -0700)] 
bpo-40874 Update the required libmpdec version for the decimal module (GH-21202)

(cherry picked from commit 8bea91b5e9ea07ca93958e131b436024f0b1b1cf)

Authored-by: Stefan Krah <skrah@bytereef.org>
5 years agobpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177)
Miss Islington (bot) [Sun, 28 Jun 2020 10:52:26 +0000 (03:52 -0700)] 
bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177)

Fix also a resource warning when store counts and module info.
(cherry picked from commit 04cdeb7a5617c48102f45b965e683b12cdf934f8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41144: Fix IDLE open module error (GH-21182)
Miss Islington (bot) [Sun, 28 Jun 2020 06:22:05 +0000 (23:22 -0700)] 
bpo-41144: Fix IDLE open module error (GH-21182)

Could not open os.path.

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

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
5 years ago[3.9] bpo-38870: Extend subject of ast.unparse warnings (GH-21053) (GH-21191)
Pablo Galindo [Sun, 28 Jun 2020 01:22:30 +0000 (02:22 +0100)] 
[3.9] bpo-38870: Extend subject of ast.unparse warnings (GH-21053) (GH-21191)

- Mention that some compiler optimizations might not roundtrip
exactly (such as constant tuples and frozensets).

- Add a warning about it might raise RecursionError on very
complex expressions due to the recursive unparsing aspect of ast.unparse
(cherry picked from commit 8df1016)

5 years ago[3.9] Add soft keywords to the documentation (GH-21185) (GH-21187)
Pablo Galindo [Sun, 28 Jun 2020 01:10:37 +0000 (02:10 +0100)] 
[3.9] Add soft keywords to the documentation (GH-21185) (GH-21187)

(cherry picked from commit 89e82c4)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[3.9] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags (#21022)
Guido van Rossum [Sun, 28 Jun 2020 00:34:30 +0000 (17:34 -0700)] 
[3.9] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags (#21022)

5 years ago[3.9] bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054...
Pablo Galindo [Sun, 28 Jun 2020 00:15:28 +0000 (01:15 +0100)] 
[3.9] bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054) (GH-21190)

This commit changes the parsing of f-string expressions with the new parser. The parser gets pre-fed with the location of the expression itself (not the f-string, which was what we were doing before). This allows us to completely skip the shifting of the AST nodes after the parsing is completed..
(cherry picked from commit 1f0f4abb110b9fbade6175842b6a26ab0b8df6dd)

5 years ago[3.9] bpo-40769: Allow extra surrounding parentheses for invalid annotated assignment...
Pablo Galindo [Sat, 27 Jun 2020 23:40:41 +0000 (00:40 +0100)] 
[3.9] bpo-40769: Allow extra surrounding parentheses for invalid annotated assignment rule (GH-20387) (GH-21186)

(cherry picked from commit c8f29ad986f8274fc5fbf889bdd2a211878856b9)

5 years agobpo-41084: Adjust message when an f-string expression causes a SyntaxError (GH-21084)
Miss Islington (bot) [Sat, 27 Jun 2020 19:43:49 +0000 (12:43 -0700)] 
bpo-41084: Adjust message when an f-string expression causes a SyntaxError (GH-21084)

Prefix the error message with `fstring: `, when parsing an f-string expression throws a `SyntaxError`.
(cherry picked from commit 2e0a920e9eb540654c0bb2298143b00637dc5961)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years ago[3.9] bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173) (GH-21183)
Lysandros Nikolaou [Sat, 27 Jun 2020 18:35:18 +0000 (21:35 +0300)] 
[3.9] bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173) (GH-21183)

(cherry picked from commit 6dcbc2422de9e2a7ff89a4689572d84001e230b2)

Automerge-Triggered-By: @pablogsal
5 years agoRemove dead code from tracemalloc (GH-21029)
Miss Islington (bot) [Sat, 27 Jun 2020 15:39:57 +0000 (08:39 -0700)] 
Remove dead code from tracemalloc (GH-21029)

tracemalloc_get_frame() checked filename == NULL two times in a row.

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

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-41100: clarify NEWS item about macOS 11 support (GH-21174)
Miss Islington (bot) [Sat, 27 Jun 2020 08:51:56 +0000 (01:51 -0700)] 
bpo-41100: clarify NEWS item about macOS 11 support (GH-21174)

(cherry picked from commit 2f168c6356f92c38ae7751d2faf2b266a9356229)

Co-authored-by: Ned Deily <nad@python.org>
5 years ago[3.9] bpo-41119: Output correct error message for list/tuple followed by colon (GH...
Lysandros Nikolaou [Fri, 26 Jun 2020 23:14:12 +0000 (02:14 +0300)] 
[3.9] bpo-41119: Output correct error message for list/tuple followed by colon (GH-21160) (GH-21172)

(cherry picked from commit 4b85e60601489f9ee9dd2909e28d89a31566887c)

5 years ago[3.9] bpo-41069: Make TESTFN and the CWD for tests containing non-ascii characters...
Serhiy Storchaka [Thu, 25 Jun 2020 17:39:12 +0000 (20:39 +0300)] 
[3.9] bpo-41069: Make TESTFN and the CWD for tests containing non-ascii characters. (GH-21035). (GH-21156)

(cherry picked from commit 700cfa8c90a90016638bac13c4efd03786b2b2a0)

5 years agoBPO-41100: Support macOS 11 when building (GH-21113)
Miss Islington (bot) [Thu, 25 Jun 2020 15:13:35 +0000 (08:13 -0700)] 
BPO-41100: Support macOS 11 when building (GH-21113)

(cherry picked from commit 8ea6353f60625c96ce96588c70ff24a77f8c71f9)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
5 years agobpo-41112: Fix test_peg_generator on non-UTF-8 locales. (GH-21138)
Miss Islington (bot) [Thu, 25 Jun 2020 12:24:15 +0000 (05:24 -0700)] 
bpo-41112: Fix test_peg_generator on non-UTF-8 locales. (GH-21138)

(cherry picked from commit aad8f0eeca93b2150760b5e59ed0495e47d1be1e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41113: Fix test_warnings on non-Western locales. (GH-21143)
Miss Islington (bot) [Thu, 25 Jun 2020 12:21:58 +0000 (05:21 -0700)] 
bpo-41113: Fix test_warnings on non-Western locales. (GH-21143)

(cherry picked from commit 0f8ec1fff01173803645ad6a8aea24997bf66fc1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago[3.9] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20947)
Christian Heimes [Thu, 25 Jun 2020 12:18:06 +0000 (14:18 +0200)] 
[3.9] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20947)

Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: @tiran.
(cherry picked from commit bb6ec14479f18c32e71e43f2785f177aa17aabbd)

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)
Miss Islington (bot) [Thu, 25 Jun 2020 11:41:42 +0000 (04:41 -0700)] 
bpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)

(cherry picked from commit 94eee69e9b3a7e7d33142a47ffea560beb8f1596)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141)
Miss Islington (bot) [Thu, 25 Jun 2020 11:28:47 +0000 (04:28 -0700)] 
bpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141)

(cherry picked from commit 589e8fe07934a8585d6c5c31d12ae5f766b8fec7)

Co-authored-by: Ned Deily <nad@python.org>
5 years agobpo-39580: add check for CLI installation on macOS (GH-20271)
Miss Islington (bot) [Thu, 25 Jun 2020 10:56:52 +0000 (03:56 -0700)] 
bpo-39580: add check for CLI installation on macOS (GH-20271)

Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs.
(cherry picked from commit 5f190d2cc60cd82a604cbffb58b6ca8f40350a7a)

Co-authored-by: Rick Heil <rickheil@partnersandsimons.com>
5 years agoForward port macOS installer updates from 3.7/3.8 (GH-21132) (GH-21135)
Ned Deily [Thu, 25 Jun 2020 09:23:30 +0000 (05:23 -0400)] 
Forward port macOS installer updates from 3.7/3.8 (GH-21132) (GH-21135)

- fix installer builds when using latest versions of Python 3
- fix installer builds on newer macOS releases with SIP
- Python Launcher app factory defaults now use python3

5 years agobpo-41074: Fix support of non-ASCII names and SQL in msilib. (GH-21126)
Miss Islington (bot) [Thu, 25 Jun 2020 09:12:58 +0000 (02:12 -0700)] 
bpo-41074: Fix support of non-ASCII names and SQL in msilib. (GH-21126)

* Fix support of non-ASCII names in functions OpenDatabase()
  and init_database().
* Fix support of non-ASCII SQL in method Database.OpenView().
(cherry picked from commit 55939b1708d6fc0d36d2be11ccdc6bf207e1bd41)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081)
Miss Islington (bot) [Wed, 24 Jun 2020 22:01:04 +0000 (15:01 -0700)] 
bpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081)

Automerge-Triggered-By: @merwok
(cherry picked from commit cf18c9e9d4d44f6671a3fe6011bb53d8ee9bd92b)

Co-authored-by: Arisaka97 <solitaire2312@gmail.com>
5 years agobpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)
Miss Islington (bot) [Wed, 24 Jun 2020 17:15:59 +0000 (10:15 -0700)] 
bpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)

(cherry picked from commit a7dc71470156680f1fd5243290c6d377824b7ef4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985)
Miss Islington (bot) [Wed, 24 Jun 2020 16:47:44 +0000 (09:47 -0700)] 
bpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985)

In absence of explicit declaration, resource compiler uses system
codepage. When this codepage is DBCS or UTF-8, Python's copyright
string is corrupted, because it contains copyright sign encoded
as \xA9.

The fix is to explicitly declare codepage 1252.
(cherry picked from commit 33b79b11b891adea5a916df8e3779505b37aabe7)

Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
5 years agobpo-41094: Fix decoding errors with audit when open files. (GH-21095)
Miss Islington (bot) [Wed, 24 Jun 2020 16:45:27 +0000 (09:45 -0700)] 
bpo-41094: Fix decoding errors with audit when open files. (GH-21095)

(cherry picked from commit 6c6810d98979add7a89391c3c38990d0859f7a29)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago[3.9] bpo-41056: Fix a possible MemoryError leak within zoneinfo. (GH-21007)
Paul Ganssle [Wed, 24 Jun 2020 15:58:50 +0000 (11:58 -0400)] 
[3.9] bpo-41056: Fix a possible MemoryError leak within zoneinfo. (GH-21007)

This was detected by our Coverity scan as a REVERSE_INULL issue.

Automerge-Triggered-By: @gpshead
(cherry picked from commit d780fa7)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 years agobpo-41005: Fixed perrmission error (GH-20936) (GH-21051)
Miss Islington (bot) [Wed, 24 Jun 2020 12:59:19 +0000 (05:59 -0700)] 
bpo-41005: Fixed perrmission error (GH-20936) (GH-21051)

* fixed issue 41005: webbrowser fails when xdg-settings cannot be executed

Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 9e27bc0c1efc7478872f98729f87886e9333548f)

Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
5 years agoFix typo in dataclasses module (GH-21109) (#21110)
Miss Islington (bot) [Wed, 24 Jun 2020 11:13:57 +0000 (04:13 -0700)] 
Fix typo in dataclasses module (GH-21109) (#21110)

Automerge-Triggered-By: @matrixise
(cherry picked from commit 80526f68411a9406a9067095fbf6a0f88047cac5)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
5 years agobpo-40707: Document that Popen.communicate sets the returncode attribute (GH-20283)
Miss Islington (bot) [Wed, 24 Jun 2020 03:19:11 +0000 (20:19 -0700)] 
bpo-40707: Document that Popen.communicate sets the returncode attribute (GH-20283)

(cherry picked from commit bf2e515fa43406d4bd9c4c53ecc9364034d8f9f6)

Co-authored-by: Gareth Rees <gdr@garethrees.org>
5 years ago[3.9] bpo-31938: Fix default-value signatures of several functions in the select...
Anthony Sottile [Tue, 23 Jun 2020 22:19:46 +0000 (15:19 -0700)] 
[3.9] bpo-31938: Fix default-value signatures of several functions in the select module (GH-21066) (GH-21097)

(cherry picked from commit d051801052211b533c46a593b1c1bccf649a171c)

Automerge-Triggered-By: @vstinner
5 years agobpo-41089: Filters and other issues in Visual Studio projects (GH-21070)
Steve Dower [Tue, 23 Jun 2020 19:31:12 +0000 (20:31 +0100)] 
bpo-41089: Filters and other issues in Visual Studio projects (GH-21070)

* Add missing header files to pythoncore.
* Add missing file filters ("Resource Files" in particular) to
  all projects.
* Add new sub-filters for private headers in pythoncore and
  for 3rd party source files.
* Add missing _zoneinfo configurations in pcbuild.sln.
* Update bdist_wininst with the new zlib location.

Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
5 years agobpo-41054: Simplify resource compilation on Windows (GH-21004)
Miss Islington (bot) [Tue, 23 Jun 2020 19:27:30 +0000 (12:27 -0700)] 
bpo-41054: Simplify resource compilation on Windows (GH-21004)

Remove auto-generated resource header. Pass definitions required
by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource
compiler.

Remove unused MS_DLL_ID resource string and related dead code.
(cherry picked from commit 4efc3360c9a83d5891f27ed67b4f0ab7275d2ab4)

Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
5 years agobpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071)
Miss Islington (bot) [Tue, 23 Jun 2020 13:41:24 +0000 (06:41 -0700)] 
bpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071)

Fix integer overflow in the :meth:`array.array.index` method on 64-bit Windows
for index larger than ``2**31``.
(cherry picked from commit 1d3dad5f96ed445b958ec53dfa0d46812f2162d9)

Co-authored-by: WildCard65 <WildCard65@users.noreply.github.com>
5 years agoSmall clean-ups for the random module (GH-21038) (GH-21065)
Miss Islington (bot) [Tue, 23 Jun 2020 04:22:40 +0000 (21:22 -0700)] 
Small clean-ups for the random module (GH-21038) (GH-21065)

5 years agoImprove asyncio.loop.call_soon() documentation (GH-20883)
Miss Islington (bot) [Tue, 23 Jun 2020 02:22:45 +0000 (19:22 -0700)] 
Improve asyncio.loop.call_soon() documentation (GH-20883)

* Add a glossary entry for the term "callback"
* Link to it in loop.call_soon() and in the "Concurrency and Multithreading" section

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit a16d6970496cae5ecab5aaea2b416a4b77527cc2)

Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
5 years agobpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040)
Miss Islington (bot) [Mon, 22 Jun 2020 08:46:11 +0000 (01:46 -0700)] 
bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040)

(cherry picked from commit 36ff513f82e372ed3cea0bf7cbdf15a1ef6dab9e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-26407: Do not mask errors in csv. (GH-20536)
Miss Islington (bot) [Mon, 22 Jun 2020 08:40:54 +0000 (01:40 -0700)] 
bpo-26407: Do not mask errors in csv. (GH-20536)

Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in csv.reader(), csv.writer.writerow() and
csv.writer.writerows().
(cherry picked from commit c88239f864a27f673c0f0a9e62d2488563f9d081)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537)
Miss Islington (bot) [Mon, 22 Jun 2020 08:20:56 +0000 (01:20 -0700)] 
bpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537)

Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in the "in" operator and functions
operator.contains(), operator.indexOf() and operator.countOf().
(cherry picked from commit cafe1b6e9d3594a34aba50e872d4198296ffaadf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41061: Fix incorrect expressions in hashtable (GH-21028)
Miss Islington (bot) [Mon, 22 Jun 2020 08:01:48 +0000 (01:01 -0700)] 
bpo-41061: Fix incorrect expressions in hashtable (GH-21028)

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

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) (GH-21013)
Miss Islington (bot) [Mon, 22 Jun 2020 07:47:54 +0000 (00:47 -0700)] 
bpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) (GH-21013)

Reported by Coverity.  (CID 1457554 RETURN_LOCAL)

path0 is assigned as a pointer to this right before it goes out of scope.
(cherry picked from commit 81328f30703bd7225e7e73aedb0994a7293ce190)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 years ago[3.9] bpo-40939: Deprecate PyNode_Compile (GH-21036)
Lysandros Nikolaou [Mon, 22 Jun 2020 00:07:39 +0000 (03:07 +0300)] 
[3.9] bpo-40939: Deprecate PyNode_Compile (GH-21036)

Automerge-Triggered-By: @pablogsal
5 years ago[3.9] Do not emit deprecation warnings inside CPython for old parser APIs (GH-21025)
Pablo Galindo [Sun, 21 Jun 2020 20:26:59 +0000 (21:26 +0100)] 
[3.9] Do not emit deprecation warnings inside CPython for old parser APIs (GH-21025)

5 years agobpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)
Miss Islington (bot) [Sun, 21 Jun 2020 19:51:54 +0000 (12:51 -0700)] 
bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)

(cherry picked from commit 19fcffa92773e008e4f5efb80047420a0cfafeec)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl module. ...
Miss Islington (bot) [Sun, 21 Jun 2020 19:11:41 +0000 (12:11 -0700)] 
bpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl module. (GH-21009)

Detected by Coverity.
(cherry picked from commit eb0d5c38de7f970d8cd8524f4163d831c7720f51)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 years ago[3.9] bpo-41052: Opt out serialization/deserialization for _random.Random (GH-21002...
Dong-hee Na [Sun, 21 Jun 2020 10:33:06 +0000 (19:33 +0900)] 
[3.9] bpo-41052: Opt out serialization/deserialization for _random.Random (GH-21002). (GH-21030)

(cherry picked from commit 6989af0bc7ea1e9a1acea16794e6f723d7b44110)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
5 years ago[3.9] bpo-41060: Avoid SEGFAULT when calling GET_INVALID_TARGET in the grammar (GH...
Lysandros Nikolaou [Sun, 21 Jun 2020 02:47:22 +0000 (05:47 +0300)] 
[3.9] bpo-41060: Avoid SEGFAULT when calling GET_INVALID_TARGET in the grammar (GH-21020) (GH-21024)

`GET_INVALID_TARGET` might unexpectedly return `NULL`, which if not
caught will cause a SEGFAULT. Therefore, this commit introduces a new
inline function `RAISE_SYNTAX_ERROR_INVALID_TARGET` that always
checks for `GET_INVALID_TARGET` returning NULL and can be used in
the grammar, replacing the long C ternary operation used till now.

(cherry picked from commit 6c4e0bd974f2895d42b63d9d004587e74b286c88)

Automerge-Triggered-By: @pablogsal
5 years ago[3.9] bpo-40939: Deprecate the PyParser_SimpleParse* functions (GH-21012)
Lysandros Nikolaou [Sun, 21 Jun 2020 01:15:45 +0000 (04:15 +0300)] 
[3.9] bpo-40939: Deprecate the PyParser_SimpleParse* functions (GH-21012)

5 years agoAdd link to .pypirc specification (GH-20680)
Miss Islington (bot) [Sat, 20 Jun 2020 20:48:17 +0000 (13:48 -0700)] 
Add link to .pypirc specification (GH-20680)

Related to https://github.com/pypa/twine/issues/638 and https://github.com/pypa/packaging.python.org/issues/730, I wrote a spec based on the one that was removed in https://github.com/python/cpython/pull/13087. However, a Google search for "pypirc" turned up at least one [blog post](https://truveris.github.io/articles/configuring-pypirc/) that links to https://docs.python.org/3/distutils/packageindex.htmlGH-the-pypirc-file, which now just links to this document. So, I thought a link to the spec would be handy.

Automerge-Triggered-By: @jaraco
(cherry picked from commit af157fad286c00ff204e86d8556648cbb53ba99e)

Co-authored-by: Brian Rutledge <brian@bhrutledge.com>
5 years agobpo-41044: Generate valid PEG python parsers for opt+seq rules (GH-20995)
Miss Islington (bot) [Sat, 20 Jun 2020 17:59:32 +0000 (10:59 -0700)] 
bpo-41044: Generate valid PEG python parsers for opt+seq rules (GH-20995)

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

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
5 years agobpo-40958: Avoid 'possible loss of data' warning on Windows (GH-20970)
Miss Islington (bot) [Sat, 20 Jun 2020 17:35:03 +0000 (10:35 -0700)] 
bpo-40958: Avoid 'possible loss of data' warning on Windows (GH-20970)

(cherry picked from commit 861efc6e8fe7f030b1e193989b13287b31385939)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years agobpo-41040: Fix test_modulefinder. (GH-20991)
Miss Islington (bot) [Fri, 19 Jun 2020 21:26:00 +0000 (14:26 -0700)] 
bpo-41040: Fix test_modulefinder. (GH-20991)

(cherry picked from commit a041e116db5f1e78222cbf2c22aae96457372680)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-38377: Fix skip_if_broken_multiprocessing_synchronize() on macOS (GH-20984)
Miss Islington (bot) [Fri, 19 Jun 2020 16:20:15 +0000 (09:20 -0700)] 
bpo-38377: Fix skip_if_broken_multiprocessing_synchronize() on macOS (GH-20984)

skip_if_broken_multiprocessing_synchronize() only attempts for create
a semaphore on Linux to fix multiprocessing
test_resource_tracker_reused() on macOS.
(cherry picked from commit 3358da4054b9b0b045eb47dc74dee3d58bfbb1d5)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agoImprove readability of `formataddr` docstring (GH-20963)
Miss Islington (bot) [Fri, 19 Jun 2020 12:18:44 +0000 (05:18 -0700)] 
Improve readability of `formataddr` docstring (GH-20963)

For me as a non native English speaker, the sentence with its embedded clause was very hard to understand.

modified:   Lib/email/utils.py

Automerge-Triggered-By: @csabella
(cherry picked from commit 66a65ba43cb3e68a43e32469c988dd7a6cff049c)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
5 years ago[3.9] bpo-40334: Produce better error messages on invalid targets (GH-20106) (GH...
Lysandros Nikolaou [Fri, 19 Jun 2020 00:03:58 +0000 (03:03 +0300)] 
[3.9] bpo-40334: Produce better error messages on invalid targets (GH-20106) (GH-20973)

* bpo-40334: Produce better error messages on invalid targets (GH-20106)

The following error messages get produced:
- `cannot delete ...` for invalid `del` targets
- `... is an illegal 'for' target` for invalid targets in for
  statements
- `... is an illegal 'with' target` for invalid targets in
  with statements

Additionally, a few `cut`s were added in various places before the
invocation of the `invalid_*` rule, in order to speed things
up.

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

5 years agobpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944) (GH...
Victor Stinner [Thu, 18 Jun 2020 15:19:59 +0000 (17:19 +0200)] 
bpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944) (GH-20962)

On Linux, skip tests using multiprocessing if the current user cannot
create a file in /dev/shm/ directory. Add the
skip_if_broken_multiprocessing_synchronize() function to the
test.support module.

(cherry picked from commit ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881)

5 years agobpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878)
Inada Naoki [Thu, 18 Jun 2020 08:30:53 +0000 (17:30 +0900)] 
bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d)

5 years ago[3.9] bpo-40637: Do not emit warnings for disabled builtin hashes (GH… (GH-20951)
stratakis [Wed, 17 Jun 2020 19:43:27 +0000 (21:43 +0200)] 
[3.9] bpo-40637: Do not emit warnings for disabled builtin hashes (GH… (GH-20951)

…-20937)

test_hashlib emits some warnings when it cannot find some hashes
as it assumes they failed to compile. Since we can disable hashes
through configure, we emit the warnings only in the case that we
did not intentionaly disable them.

Automerge-Triggered-By: @tiran
(cherry picked from commit 236a0f5)

Co-authored-by: stratakis <cstratak@redhat.com>
5 years agobpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945)
Victor Stinner [Wed, 17 Jun 2020 16:40:14 +0000 (18:40 +0200)] 
bpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945)

Fix test_copyreg when numpy is installed: test.pickletester now
saves/restores warnings.filters when importing numpy, to ignore
filters installed by numpy.

Add the save_restore_warnings_filters() function to the
test.support.warnings_helper module.

(cherry picked from commit 8362893e3fe083df2ec8bb94c28b1a78383eadbf)

5 years agobpo-19569: Add a macro to suppress deprecation warnings (GH-9004)
Miss Islington (bot) [Wed, 17 Jun 2020 03:18:02 +0000 (20:18 -0700)] 
bpo-19569: Add a macro to suppress deprecation warnings (GH-9004)

Co-authored-by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
(cherry picked from commit de4304dad8e035dbbb57d653e685312eead816df)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-40958: Avoid buffer overflow in the parser when indexing the current line (GH...
Miss Islington (bot) [Tue, 16 Jun 2020 17:36:59 +0000 (10:36 -0700)] 
bpo-40958: Avoid buffer overflow in the parser when indexing the current line (GH-20875) (GH-20919)

(cherry picked from commit 51c5896b6205911d29ac07f167ec7f3cf1cb600d)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-40993: Don't run Travis CI coverage on PRs (GH-20916)
Miss Islington (bot) [Tue, 16 Jun 2020 15:47:16 +0000 (08:47 -0700)] 
bpo-40993: Don't run Travis CI coverage on PRs (GH-20916)

C and Python coverage jobs of Travis CI are no longer run on pull
requests, only on branches like master.
(cherry picked from commit fc710ee266e9461fdba9933ec6004318db588820)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-40985: Show correct SyntaxError text when last line has a LINECONT (GH-20888)
Miss Islington (bot) [Tue, 16 Jun 2020 00:46:44 +0000 (17:46 -0700)] 
bpo-40985: Show correct SyntaxError text when last line has a LINECONT (GH-20888)

When a file ends with a line that contains a line continuation character
the text of the emitted SyntaxError is empty, contrary to the old
parser, where the error text contained the text of the last line.
(cherry picked from commit 113e2b0a07c72c0d5e3489076afb14f6b3ad1049)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years agobpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491)
Miss Islington (bot) [Mon, 15 Jun 2020 20:39:49 +0000 (13:39 -0700)] 
bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491)

(cherry picked from commit 5f79f46612c351bde78a41c5264c42db21008868)

Co-authored-by: Xavier Fernandez <xav.fernandez@gmail.com>
5 years agobpo-36020: Remove snprintf macro in pyerrors.h (GH-20889)
Miss Islington (bot) [Mon, 15 Jun 2020 20:20:10 +0000 (13:20 -0700)] 
bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889)

On Windows, GH-include "pyerrors.h" no longer defines "snprintf" and
"vsnprintf" macros.

PyOS_snprintf() and PyOS_vsnprintf() should be used to get portable
behavior.

Replace snprintf() calls with PyOS_snprintf() and replace vsnprintf()
calls with PyOS_vsnprintf().
(cherry picked from commit e822e37946f27c09953bb5733acf3b07c2db690f)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-40448: ensurepip: Do not use cache (GH-19812)
Miss Islington (bot) [Mon, 15 Jun 2020 17:48:44 +0000 (10:48 -0700)] 
bpo-40448: ensurepip: Do not use cache (GH-19812)

ensurepip optionally installs or upgrades 'pip' and 'setuptools' using
the version of those modules bundled with Python.  The internal PIP
installation routine by default temporarily uses its cache, if it
exists.  This is undesirable as Python builds and installations may be
independent of the user running the build, whilst PIP cache location
is dependent on the user's environment and outside of the build
environment.

At the same time, there's no value in using the cache while installing
bundled modules.

This change disables PIP caching when used in ensurepip.
(cherry picked from commit 4a3a682b12f93a03888e8b59f439bc5fe30d6055)

Co-authored-by: Krzysztof Konopko <kkonopko@users.noreply.github.com>
5 years agobpo-37556 Extend help to include latest overrides (GH-14701)
Miss Islington (bot) [Mon, 15 Jun 2020 16:56:40 +0000 (09:56 -0700)] 
bpo-37556 Extend help to include latest overrides (GH-14701)

Modify the help in cpython/PC/launcher.c to show users that "latest" can be overridden by shebang, PY_PYTHON[n] or py.ini files. Also show that script [args] is optional by enclosing in square brackets.

Automerge-Triggered-By: @zooba
(cherry picked from commit b3e6783423f58597419abae343dd1d5dcc02a7e3)

Co-authored-by: Steve (Gadget) Barnes <gadgetsteve@live.co.uk>
5 years agobpo-34226: fix cgi.parse_multipart without content_length (GH-8530)
Miss Islington (bot) [Mon, 15 Jun 2020 15:51:30 +0000 (08:51 -0700)] 
bpo-34226: fix cgi.parse_multipart without content_length (GH-8530)

In Python 3.7 the behavior of parse_multipart changed requiring CONTENT-LENGTH
header, this fix remove this header as required and fix FieldStorage
read_lines_to_outerboundary, by not using limit when it's negative,
since by default it's -1 if not content-length and keeps substracting what
was read from the file object.

Also added a test case for this problem.
(cherry picked from commit d8cf3514dd4682419a66f6e834bb384ee34afc95)

Co-authored-by: roger <rogerduran@gmail.com>
5 years agobpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)
Miss Islington (bot) [Mon, 15 Jun 2020 15:19:06 +0000 (08:19 -0700)] 
bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)

bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv.
(cherry picked from commit e2d47a0568c6da9229580829917fd6aa702133b3)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.9] Improve readability and style in parser files (GH-20884) (GH-20885)
Pablo Galindo [Mon, 15 Jun 2020 14:08:00 +0000 (15:08 +0100)] 
[3.9] Improve readability and style in parser files (GH-20884) (GH-20885)

(cherry picked from commit fb61c42)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[3.9] Include soft keywords in keyword.py (GH-20877). (GH-20880)
Pablo Galindo [Mon, 15 Jun 2020 03:31:05 +0000 (04:31 +0100)] 
[3.9] Include soft keywords in keyword.py (GH-20877). (GH-20880)

(cherry picked from commit 78319e373d57cd4da67660f888aa7092efbd6f24)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>