]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agobuild(deps): bump actions/upload-artifact from v2.2.1 to v2.2.2 (GH-24411)
Miss Islington (bot) [Thu, 4 Feb 2021 19:21:37 +0000 (11:21 -0800)] 
build(deps): bump actions/upload-artifact from v2.2.1 to v2.2.2 (GH-24411)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.1 to v2.2.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.1...e448a9b857ee2131e752b06002bf0e093c65e571)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit aa4caf9887944ab280a87712460e2dd49b55fe5e)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agobpo-42773: fix tests not being run on pushes (GH-24004)
Miss Islington (bot) [Wed, 3 Feb 2021 23:38:55 +0000 (15:38 -0800)] 
bpo-42773: fix tests not being run on pushes (GH-24004)

There was a typo, we were checking if the "GITHUB_BASE_REF" string
literal was empty instead of the $GITHUB_BASE_REF value. When
$GITHUB_BASE_REF is empty, the action that triggered the run was not a
pull request, so we always run the full test suite.

Signed-off-by: Filipe Laíns <lains@riseup.net>
(cherry picked from commit 4ac923f2756f835f512339ee181348cc535ab07f)

Co-authored-by: Filipe Laíns <lains@riseup.net>
4 years agoFix typo (GH-23019)
Miss Islington (bot) [Wed, 3 Feb 2021 21:48:22 +0000 (13:48 -0800)] 
Fix typo (GH-23019)

Fixed possible typo in comment
(cherry picked from commit bfe544d2f2c2e7a7c03a764bed3276a1e27a0f5c)

Co-authored-by: Harry <harry.lees@gmail.com>
4 years agobpo-43108: Fix a reference leak in the curses module (GH-24420)
Miss Islington (bot) [Wed, 3 Feb 2021 13:41:09 +0000 (05:41 -0800)] 
bpo-43108: Fix a reference leak in the curses module (GH-24420)

(cherry picked from commit bb739ec922c6992a2be38f9fd3c544c2cc322dde)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-43082: Remove redundant 'the' in Descriptor howto (GH-24394) (GH-24427)
Miss Islington (bot) [Wed, 3 Feb 2021 03:33:35 +0000 (19:33 -0800)] 
bpo-43082: Remove redundant 'the' in Descriptor howto (GH-24394) (GH-24427)

4 years agoAdd link to Microsoft docs for limitations in Windows Store package (GH-24422)
Miss Islington (bot) [Wed, 3 Feb 2021 01:35:55 +0000 (17:35 -0800)] 
Add link to Microsoft docs for limitations in Windows Store package (GH-24422)

(cherry picked from commit 1ba08a121a25fcf7c947d8d37e72e46dae59168c)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-41748: Handles unquoted attributes with commas (GH-24072)
Miss Islington (bot) [Mon, 1 Feb 2021 20:54:43 +0000 (12:54 -0800)] 
bpo-41748: Handles unquoted attributes with commas (GH-24072)

* bpo-41748: Adds tests for unquoted attributes with comma

* bpo-41748: Handles unquoted attributes with comma

* bpo-41748: Addresses review comments

* bpo-41748: Addresses review comments

* Adds more test cases
* Simplifies the regex for handling spaces

* bpo-41748: Moves attributes tests under the right class

* bpo-41748: Addresses review about duplicate attributes

* bpo-41748: Adds NEWS.d entry for this patch
(cherry picked from commit 9eb11a139fac5514d8456626806a68b3e3b7eafb)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
4 years agobpo-43016: Fix test_curses on platform without cursesw (GH-24405) (GH-24407)
Miss Islington (bot) [Mon, 1 Feb 2021 07:37:29 +0000 (23:37 -0800)] 
bpo-43016: Fix test_curses on platform without cursesw (GH-24405) (GH-24407)

(cherry picked from commit a1e9a1e120a11c563e166c15721169184c802f8b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868) (GH...
Miss Islington (bot) [Mon, 1 Feb 2021 05:15:23 +0000 (21:15 -0800)] 
bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868) (GH-23888)

Automerge-Triggered-By: GH:ronaldoussoren
(cherry picked from commit b3c77ecbbe0ad3e3cc6dbd885792203e9e6ec858)

Co-authored-by: erykoff <erykoff@stanford.edu>
4 years agobpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH...
Miss Islington (bot) [Mon, 1 Feb 2021 04:22:48 +0000 (20:22 -0800)] 
bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410)

* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
(cherry picked from commit 49926cf2bcc8b44d9b8f148d81979ada191dd9d5)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
4 years ago[3.9] bpo-41604: Don't decrement the reference count of the previous user_ptr when...
Serhiy Storchaka [Sun, 31 Jan 2021 19:44:31 +0000 (21:44 +0200)] 
[3.9] bpo-41604: Don't decrement the reference count of the previous user_ptr when set_panel_usertpr fails (GH-21933). (GH-24403)

(cherry picked from commit 3243e8a4b4b4cf321f9b28335d565742a34b1976)

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
4 years ago[3.9] bpo-43016: Rewrite tests for curses (GH-24312). (GH-24399)
Serhiy Storchaka [Sun, 31 Jan 2021 16:11:13 +0000 (18:11 +0200)] 
[3.9] bpo-43016: Rewrite tests for curses (GH-24312). (GH-24399)

(cherry picked from commit d64fd4bb5bb4fd2e3277f39d3ad99b5a8d193e1b)

4 years agobpo-43083: Fix error handling in _sqlite3 (GH-24395)
Miss Islington (bot) [Sun, 31 Jan 2021 16:06:15 +0000 (08:06 -0800)] 
bpo-43083: Fix error handling in _sqlite3 (GH-24395)

(cherry picked from commit 9073180db521dc83e6216ff0da1479d00167f643)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH...
Miss Islington (bot) [Sun, 31 Jan 2021 14:20:14 +0000 (06:20 -0800)] 
bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350)

(cherry picked from commit 42b1806af90b86ec393ca7da14e99ce95ec6c53b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364)
Miss Islington (bot) [Sun, 31 Jan 2021 05:21:28 +0000 (21:21 -0800)] 
bpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364)

(cherry picked from commit e60344364245a23a7a1b25d5ebce6833652a656c)

Co-authored-by: L <3177243+LukeLR@users.noreply.github.com>
4 years ago[doc] Document VIRTUAL_ENV environment variable (GH-21970)
Miss Islington (bot) [Sat, 30 Jan 2021 10:38:44 +0000 (02:38 -0800)] 
[doc] Document VIRTUAL_ENV environment variable (GH-21970)

(cherry picked from commit 3584d4b64a5373440f78237eac734831cfd83f79)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agoFixing typos in turtle.rst (GH-24376)
Miss Islington (bot) [Fri, 29 Jan 2021 22:03:18 +0000 (14:03 -0800)] 
Fixing typos in turtle.rst (GH-24376)

Automerge-Triggered-By: GH:JulienPalard
(cherry picked from commit 6baaae589d596ed3bb668448f2a22c5f62fc5fdf)

Co-authored-by: Jules Lasne <jules.lasne@gmail.com>
4 years agoFixed typo in turtle.rst (GH-24371)
Miss Islington (bot) [Fri, 29 Jan 2021 21:38:16 +0000 (13:38 -0800)] 
Fixed typo in turtle.rst (GH-24371)

Found it while translating it to french 🤷

Automerge-Triggered-By: GH:JulienPalard
(cherry picked from commit 6372a4ceba126aa0a9f00eee0f8023308f13e77b)

Co-authored-by: Jules Lasne <jules.lasne@gmail.com>
4 years agobpo-43008: Add 'Patch by Ken Hilton' (GH-24370) (#24374)
Miss Islington (bot) [Fri, 29 Jan 2021 18:51:46 +0000 (10:51 -0800)] 
bpo-43008: Add 'Patch by Ken Hilton' (GH-24370) (#24374)

(cherry picked from commit 11d75ec807f05eff1148c049e38b808d11c23b8a)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)
Miss Islington (bot) [Thu, 28 Jan 2021 23:38:19 +0000 (15:38 -0800)] 
bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)

Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE.

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

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-29076: Add fish support to macOS installer (GH-23302) (GH-23937)
Miss Islington (bot) [Thu, 28 Jan 2021 14:54:03 +0000 (06:54 -0800)] 
bpo-29076: Add fish support to macOS installer (GH-23302) (GH-23937)

(cherry picked from commit 7f162e867c674f57c308a87fffcdcca3540c8933)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-42979: _zoneinfo exec function checks for PyDateTime_IMPORT failure (GH-24333...
Miss Islington (bot) [Wed, 27 Jan 2021 11:08:45 +0000 (03:08 -0800)] 
bpo-42979: _zoneinfo exec function checks for PyDateTime_IMPORT failure (GH-24333) (GH-24351)

Importing datetime can fail.
(cherry picked from commit eeb701adc0fc29ba803fddf133d917ff45639a00)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
Co-authored-by: Hai Shi <shihai1992@gmail.com>
4 years agobpo-43033: Fix the handling of PyObject_SetAttrString() in _zoneinfo.c (GH-24345...
Miss Islington (bot) [Wed, 27 Jan 2021 09:40:31 +0000 (01:40 -0800)] 
bpo-43033: Fix the handling of PyObject_SetAttrString() in _zoneinfo.c (GH-24345) (GH-24349)

(cherry picked from commit 5327f370344a627f1578d8183d197feb286371c6)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-43008: Make IDLE respect sys.excepthook (GH-24302)
Miss Islington (bot) [Wed, 27 Jan 2021 00:24:14 +0000 (16:24 -0800)] 
bpo-43008: Make IDLE respect sys.excepthook (GH-24302)

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

Co-authored-by: Ken <kenny2minecraft@gmail.com>
4 years ago[3.9] bpo-41841: Prepare IDLE NEWS for 3.9.2 (#GH-4343)
Terry Jan Reedy [Tue, 26 Jan 2021 18:59:18 +0000 (13:59 -0500)] 
[3.9] bpo-41841: Prepare IDLE NEWS for 3.9.2 (#GH-4343)

4 years ago[3.9] bpo-42383: pdb: do not fail to restart the target if the current directory...
Andrey Bienkowski [Tue, 26 Jan 2021 15:57:58 +0000 (15:57 +0000)] 
[3.9] bpo-42383: pdb: do not fail to restart the target if the current directory changed (GH-23412) (#24322)

4 years ago[3.9] bpo-42384: pdb: correctly populate sys.path[0] (GH-23338) (#24321)
Andrey Bienkowski [Mon, 25 Jan 2021 21:08:41 +0000 (21:08 +0000)] 
[3.9] bpo-42384: pdb: correctly populate sys.path[0] (GH-23338) (#24321)

4 years agobpo-43013: Fix old tkinter module names in idlelib (GH-24326)
Miss Islington (bot) [Mon, 25 Jan 2021 13:25:39 +0000 (05:25 -0800)] 
bpo-43013: Fix old tkinter module names in idlelib (GH-24326)

Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and
'tkMessageBox' and remove 'tk'.  Just lowercase 'tkFont' as 'font'
is already used.  Adjust import.
(cherry picked from commit 879986d8a932c4524cb6ff822afc9537de16e28d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.9] bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchoos...
Serhiy Storchaka [Mon, 25 Jan 2021 09:45:30 +0000 (11:45 +0200)] 
[3.9] bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578). (GH-24318)

(cherry picked from commit 6713e869c4989c04318158b406c30a147ea52904)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
4 years agobpo-43013: Update idlelib code to 3.x (GH-24315)
Miss Islington (bot) [Sun, 24 Jan 2021 23:36:02 +0000 (15:36 -0800)] 
bpo-43013: Update idlelib code to 3.x  (GH-24315)

Remove 9 remaining '(object)' occurrences in class headers in idlelib
and 25 '()' occurrences in idlelib.idle_test class headers.
(cherry picked from commit 8dfe15625e6ea4357a13fec7989a0e6ba2bf1359)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agocloses bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)
Miss Islington (bot) [Sat, 23 Jan 2021 16:56:08 +0000 (08:56 -0800)] 
closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)

(cherry picked from commit f7fa64f0e87edc61d990ed51b4da722906a10928)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-40304: Correct type(name, bases, dict) doc (GH-19553)
Miss Islington (bot) [Fri, 22 Jan 2021 06:09:50 +0000 (22:09 -0800)] 
bpo-40304: Correct type(name, bases, dict) doc (GH-19553)

Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
(cherry picked from commit 644d52818a6391535e5838fd57d58ffcb1163056)

Co-authored-by: Борис Верховский <boris.verk@gmail.com>
4 years agobpo-42780: Fix set_inheritable() for O_PATH file descriptors on Linux (GH-24172)...
cptpcrd [Thu, 21 Jan 2021 10:46:35 +0000 (05:46 -0500)] 
bpo-42780: Fix set_inheritable() for O_PATH file descriptors on Linux (GH-24172) (GH-24278)

(cherry picked from commit 7dc71c425cf6aa6a4070a418dce5d95ca435c79f)

4 years agobpo-42005: profile and cProfile catch BrokenPipeError (GH-22643)
Miss Islington (bot) [Wed, 20 Jan 2021 09:19:08 +0000 (01:19 -0800)] 
bpo-42005: profile and cProfile catch BrokenPipeError (GH-22643)

(cherry picked from commit 3554fa4abecfb77ac5fcaa5ce8310eeca5683960)

Co-authored-by: Zhiming Wang <i@zhimingwang.org>
4 years agobpo-41995: Handle allocation failure in _tracemalloc and _zoneinfo (GH-22635)
Miss Islington (bot) [Wed, 20 Jan 2021 09:03:28 +0000 (01:03 -0800)] 
bpo-41995: Handle allocation failure in _tracemalloc and _zoneinfo (GH-22635)

(cherry picked from commit f1ff800db1f9fa5ff8f2fa2863796a46bfa9ee46)

Co-authored-by: Yunlongs <lylgood@foxmail.com>
4 years agocloses bpo-42938: Replace snprintf with Python unicode formatting in ctypes param...
Miss Islington (bot) [Mon, 18 Jan 2021 21:29:31 +0000 (13:29 -0800)] 
closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes param reprs. (GH-24247)

(cherry picked from commit 916610ef90a0d0761f08747f7b0905541f0977c7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
Co-authored-by: Benjamin Peterson <benjamin@python.org>
4 years agobpo-42944 Fix Random.sample when counts is not None (GH-24235) (GH-24243)
Miss Islington (bot) [Mon, 18 Jan 2021 18:36:07 +0000 (10:36 -0800)] 
bpo-42944 Fix Random.sample when counts is not None (GH-24235) (GH-24243)

4 years ago[3.9] bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but...
Jason R. Coombs [Sat, 16 Jan 2021 19:45:30 +0000 (14:45 -0500)] 
[3.9] bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but processor) (GH-23010) (#24232)

* Add test capturing missed expectation with uname_result._replace.

* bpo-42163: Override uname_result._make to allow uname_result._replace to work (for everything but 'processor'.

* Replace hard-coded length with one derived from the definition.

* Add test capturing missed expectation with copy/deepcopy on namedtuple (bpo-42189).

* bpo-42189: Exclude processor parameter when constructing uname_result.

* In _make, rely on __new__ to strip processor.

* Add blurb.

* iter is not necessary here.

* Rely on num_fields in __new__

* Add test for slices on uname

* Add test for copy and pickle.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* import pickle

* Fix equality test after pickling.

* Simply rely on __reduce__ for pickling.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
4 years agobpo-42931: randbytes missing from random.__all__ (GH-24219) (GH-24225)
Miss Islington (bot) [Fri, 15 Jan 2021 18:21:52 +0000 (10:21 -0800)] 
bpo-42931: randbytes missing from random.__all__ (GH-24219) (GH-24225)

4 years agoDocs: Remove stray semicolon in init.rst (GH-23974)
Miss Islington (bot) [Thu, 14 Jan 2021 16:17:44 +0000 (08:17 -0800)] 
Docs: Remove stray semicolon in init.rst (GH-23974)

Removed stray semicolon which was causing the docs to render weirdly (it's the function right under the one [here](https://docs.python.org/3/c-api/init.htmlGH-c._PyInterpreterState_GetEvalFrameFunc)).
(cherry picked from commit 971235827754eee6c0d9f7d39b52fecdfd4cb7b4)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)
Miss Islington (bot) [Sun, 10 Jan 2021 07:30:43 +0000 (23:30 -0800)] 
bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)

If __repr__ uses instance attributes, as normal, and one steps
through the __init__ method, debugger may try to get repr before
the instance attributes exist.  reprlib.repr handles the error.
(cherry picked from commit 81f87bbf9f65702062021a78abd9b8f82c98a414)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.9] bpo-42851: [Enum] remove brittle __init_subclass__ support (GH-24154) (GH-24155)
Ethan Furman [Thu, 7 Jan 2021 21:55:59 +0000 (13:55 -0800)] 
[3.9] bpo-42851: [Enum] remove brittle __init_subclass__ support (GH-24154) (GH-24155)

Solution to support calls to `__init_subclass__` with members defined is too brittle and breaks with certain mixins..
(cherry picked from commit a581a868d97f649aedf868a1d27865a10925c73a)

4 years ago[3.9] bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent...
Yair Frid [Thu, 7 Jan 2021 18:06:13 +0000 (20:06 +0200)] 
[3.9] bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) (GH-24149)

This is a backport of
https://github.com/python/cpython/pull/24100

Automerge-Triggered-By: GH:brettcannon
4 years agobpo-38413: Remove outdated section about multithreading in sqlite3 (GH-23159)
Vladimir [Wed, 6 Jan 2021 20:57:24 +0000 (12:57 -0800)] 
bpo-38413: Remove outdated section about multithreading in sqlite3 (GH-23159)

(cherry picked from commit f9949f82e17c88609adb53eff3a7d5cd63a645bd)

4 years agobpo-42528: Improve the docs of most Py*_Check{,Exact} API calls (GH-23602) (GH-24139)
Miss Islington (bot) [Wed, 6 Jan 2021 12:54:18 +0000 (04:54 -0800)] 
bpo-42528: Improve the docs of most Py*_Check{,Exact} API calls (GH-23602) (GH-24139)

I think that none of these API calls can fail, but only few of them are
documented as such. Add the sentence "This function always succeeds" (which is
the same already used e.g. by PyNumber_Check) to all of them.
(cherry picked from commit 315fc52db17b19fe30aa9193f26adf69e18d8844)

Co-authored-by: Antonio Cuni <anto.cuni@gmail.com>
Co-authored-by: Antonio Cuni <anto.cuni@gmail.com>
4 years agobpo-14014: Clarify StreamWriter.reset() documentation (GH-13716)
Miss Islington (bot) [Wed, 6 Jan 2021 02:27:30 +0000 (18:27 -0800)] 
bpo-14014: Clarify StreamWriter.reset() documentation (GH-13716)

(cherry picked from commit 1a9f51ed12feb4d95ad6d0faf610a030c05b9f5e)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
4 years agobpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675)
Steve Dower [Wed, 6 Jan 2021 00:09:08 +0000 (00:09 +0000)] 
bpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125)
Steve Dower [Tue, 5 Jan 2021 23:37:29 +0000 (23:37 +0000)] 
bpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125)

4 years ago[3.9] bpo-42584: Update macOS installer to use SQLite 3.34.0 (GH-23674) (GH-24130)
Erlend Egeberg Aasland [Tue, 5 Jan 2021 22:52:55 +0000 (23:52 +0100)] 
[3.9] bpo-42584: Update macOS installer to use SQLite 3.34.0 (GH-23674) (GH-24130)

(cherry picked from commit c94ee13ad596d26d1859078bc09806aa59bb0000)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Automerge-Triggered-By: GH:ned-deily
4 years ago[3.9] bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) (GH-24005)
Miss Islington (bot) [Tue, 5 Jan 2021 15:46:58 +0000 (07:46 -0800)] 
[3.9] bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) (GH-24005)

```
In file included from /usr/include/python3.8/Python.h:147:
In file included from /usr/include/python3.8/abstract.h:837:
/usr/include/python3.8/cpython/abstract.h:91:11: error: cast from 'char *' to 'vectorcallfunc *'
(aka 'struct _object *(**)(struct _object *, struct _object *const *, unsigned long, struct _object *)')
increases required alignment from 1 to 8 [-Werror,-Wcast-align]

    ptr = (vectorcallfunc*)(((char *)callable) + offset);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-Authored-By: Andreas Schneider <asn@cryptomilk.org>
Co-Authored-By: Antoine Pitrou <antoine@python.org>
(cherry picked from commit 056c08211b402b4dbc1530a9de9d00ad5309909f)

4 years ago[3.9] bpo-42681: Fix test_curses failures related to color pairs (GH-24089) (GH-24113)
Serhiy Storchaka [Tue, 5 Jan 2021 12:23:19 +0000 (14:23 +0200)] 
[3.9] bpo-42681: Fix test_curses failures related to color pairs (GH-24089) (GH-24113)

On ncurses 6.1 pair numbers are limited by SHORT_MAX-1.

Improve error reporting and tests for color functions.
(cherry picked from commit 59f9b4e4509be67494f3d45489fa55523175ff69)

4 years ago[3.9] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)
Terry Jan Reedy [Tue, 5 Jan 2021 08:25:57 +0000 (03:25 -0500)] 
[3.9] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)

Make menu items work with formatter, add docstrings, add 100% tests.

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

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
4 years agoFix broken NEWS markup (GH-24110)
Miss Islington (bot) [Tue, 5 Jan 2021 08:18:17 +0000 (00:18 -0800)] 
Fix broken NEWS markup (GH-24110)

(cherry picked from commit cde988e893793f58bf87e7a8c014926fd2e32904)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
4 years agobpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)
Miss Islington (bot) [Mon, 4 Jan 2021 23:41:03 +0000 (15:41 -0800)] 
bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)

Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
(cherry picked from commit f7f0ed59bcc41ed20674d4b2aa443d3b79e725f4)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agoDo not remove x bit from published directories (GH-24101)
Miss Islington (bot) [Mon, 4 Jan 2021 21:17:05 +0000 (13:17 -0800)] 
Do not remove x bit from published directories (GH-24101)

(cherry picked from commit af4cd16479f2d55bee3db899e7679d7cde1d2ab7)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoRevert "[3.9] [doc] Fix erroneous backslashes in signatures and names (GH-23658)...
Julien Palard [Mon, 4 Jan 2021 16:19:27 +0000 (17:19 +0100)] 
Revert "[3.9] [doc] Fix erroneous backslashes in signatures and names (GH-23658)" (GH-24092)

This partially reverts commit
e89993cff4e60fcf32643fc613d0544f3dbcd98a, which was removing
backslashes in documentations compiled with Sphinx < 3, used for
Python 3.8 and 3.9 docs.

4 years agobpo-42692: fix __builtin_available check on older compilers (GH-23873) (GH-24090)
Miss Islington (bot) [Mon, 4 Jan 2021 11:00:43 +0000 (03:00 -0800)] 
bpo-42692: fix __builtin_available check on older compilers (GH-23873) (GH-24090)

A compiler that doesn't define `__has_builtin` will error out when it is
used on the same line as the check for it.

Automerge-Triggered-By: GH:ronaldoussoren
(cherry picked from commit df21f502fdccec234282bf0a211af979fd23def4)

Co-authored-by: Joshua Root <jmr@macports.org>
4 years agobpo-41837: Update macOS installer build to use OpenSSL 1.1.1i. (GH-24080) (GH-24083)
Miss Islington (bot) [Mon, 4 Jan 2021 10:28:29 +0000 (02:28 -0800)] 
bpo-41837: Update macOS installer build to use OpenSSL 1.1.1i. (GH-24080) (GH-24083)

(cherry picked from commit 14097a2785414c728d41d8d730a469a8c46ecdb9)

Co-authored-by: Ned Deily <nad@python.org>
4 years agoUpdate Sphinx version for macOS installer build. (GH-24082) (GH-24087)
Miss Islington (bot) [Mon, 4 Jan 2021 10:22:07 +0000 (02:22 -0800)] 
Update Sphinx version for macOS installer build. (GH-24082) (GH-24087)

(cherry picked from commit 0f3b96b368dd7ebb5dcd3759a30322dbd027f292)

Co-authored-by: Ned Deily <nad@python.org>
4 years agobpo-42361: Update macOS installer build to use Tcl/Tk 8.6.11 (GH-24081)
Miss Islington (bot) [Mon, 4 Jan 2021 10:17:30 +0000 (02:17 -0800)] 
bpo-42361: Update macOS installer build to use Tcl/Tk 8.6.11 (GH-24081)

As of 2021-01-03, Tcl/Tk 8.6.11rc2 is expected to be the final release.
(cherry picked from commit a38e04b566879a5040ea97428d7ee4331d76513f)

Co-authored-by: Ned Deily <nad@python.org>
4 years ago[3.9] bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874...
Serhiy Storchaka [Sun, 3 Jan 2021 22:55:23 +0000 (00:55 +0200)] 
[3.9] bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874). (GH-24077)

(cherry picked from commit 1470edd6131c29b8a09ce012cdfee3afa269d553)

4 years ago[3.9] bpo-42789: Don't skip curses tests on non-tty. (GH-24009) (GH-24076)
Serhiy Storchaka [Sun, 3 Jan 2021 20:54:44 +0000 (22:54 +0200)] 
[3.9] bpo-42789: Don't skip curses tests on non-tty. (GH-24009) (GH-24076)

If __stdout__ is not attached to terminal, try to use __stderr__
if it is attached to terminal, or open the terminal device, or
use regular file as terminal, but some functions will be untested
in the latter case.
(cherry picked from commit 607501abb488fb37e33cf9d35260ab7baefa192f)

4 years ago[3.9] bpo-42806: Fix ast locations of f-strings inside parentheses (GH-24067) (GH...
Pablo Galindo [Sun, 3 Jan 2021 01:32:43 +0000 (01:32 +0000)] 
[3.9] bpo-42806: Fix ast locations of f-strings inside parentheses (GH-24067) (GH-24069)

(cherry picked from commit bd2728b1e8a99ba8f8c2d481f88aeb99b8b8360f)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.9] bpo-40631: Disallow single parenthesized star target (GH-24027) (GH-24068)
Lysandros Nikolaou [Sun, 3 Jan 2021 00:59:39 +0000 (02:59 +0200)] 
[3.9] bpo-40631: Disallow single parenthesized star target (GH-24027) (GH-24068)

(cherry picked from commit 2ea320dddd553298038bb7d6789e50e199332f66)

Automerge-Triggered-By: GH:pablogsal
4 years agobpo-42809: Improve pickle tests for recursive data. (GH-24060)
Miss Islington (bot) [Sat, 2 Jan 2021 17:53:46 +0000 (09:53 -0800)] 
bpo-42809: Improve pickle tests for recursive data. (GH-24060)

(cherry picked from commit a25011be8c6f62cb3333903befe6295d57f0bd30)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.9] bpo-42425: Fix possible leak in initialization of errmap for OSError (GH-23446...
Serhiy Storchaka [Sat, 2 Jan 2021 10:24:27 +0000 (12:24 +0200)] 
[3.9] bpo-42425: Fix possible leak in initialization of errmap for OSError (GH-23446). (GH-24057)

(cherry picked from commit ed1007c0d74e658d1e6c9b51b12ce7501eb8cbf9)

4 years ago[3.9] bpo-42756: Configure LMTP Unix-domain socket to use global default timeout...
Ross [Sat, 2 Jan 2021 03:44:04 +0000 (03:44 +0000)] 
[3.9] bpo-42756: Configure LMTP Unix-domain socket to use global default timeout when timeout not provided (GH-23969) (GH-24050)

4 years agobpo-39068: Fix race condition in base64 (GH-17627)
Miss Islington (bot) [Fri, 1 Jan 2021 20:42:44 +0000 (12:42 -0800)] 
bpo-39068: Fix race condition in base64 (GH-17627)

There was a race condition in base64 in lazy initialization of multiple globals.
(cherry picked from commit 9655434cca5dfbea97bf6d355aec028e840b289c)

Co-authored-by: Brandon Stansbury <brandonrstansbury@gmail.com>
4 years agoBring Python into the new year. (GH-24036)
Miss Islington (bot) [Fri, 1 Jan 2021 17:27:48 +0000 (09:27 -0800)] 
Bring Python into the new year. (GH-24036)

(cherry picked from commit de6f20a6de48d63066b2cf5b317f50629f01d74a)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years agobpo-42794: Update test_nntplib to use offical group name for testing (GH-24037)
Miss Islington (bot) [Fri, 1 Jan 2021 14:42:43 +0000 (06:42 -0800)] 
bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037)

(cherry picked from commit ec3165320e81ac87edcb85c86c452528ddbaec1c)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years agobpo-42781: Document the mechanics of cached_property from a user viewpoint (GH-24031...
Miss Islington (bot) [Fri, 1 Jan 2021 01:36:14 +0000 (17:36 -0800)] 
bpo-42781: Document the mechanics of cached_property from a user viewpoint (GH-24031) (#24035)

4 years agoFixes a typo in importlib.metadata. (GH-23921) (#24029)
Miss Islington (bot) [Thu, 31 Dec 2020 20:27:17 +0000 (12:27 -0800)] 
Fixes a typo in importlib.metadata. (GH-23921) (#24029)

Signed-off-by: Tao He <sighingnow@gmail.com>
(cherry picked from commit 3631d6deab064de0bb286ef2943885dca3c3075e)

Co-authored-by: Tao He <sighingnow@gmail.com>
Co-authored-by: Tao He <sighingnow@gmail.com>
4 years ago[3.9] bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861). (GH-24017)
Andre Delfino [Thu, 31 Dec 2020 13:10:10 +0000 (10:10 -0300)] 
[3.9] bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861). (GH-24017)

(cherry picked from commit 2edfc86f69d8a74f4821974678f664ff94a9dc22)

4 years agobpo-42655: Fix subprocess extra_groups gid conversion (GH-23762)
Miss Islington (bot) [Tue, 29 Dec 2020 13:22:13 +0000 (05:22 -0800)] 
bpo-42655: Fix subprocess extra_groups gid conversion (GH-23762)

(cherry picked from commit 0159e5efeebd12b3cf365c8569ca000eac7cb03e)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
4 years agobpo-42700: Swap descriptions in pyexpat.errors (GH-23876)
Miss Islington (bot) [Tue, 29 Dec 2020 12:55:33 +0000 (04:55 -0800)] 
bpo-42700: Swap descriptions in pyexpat.errors (GH-23876)

The descriptions of the `codes` and `messages` dictionaries in
`xml.parsers.expat.errors` were swapped, and this commit swaps them
back. For example, `codes` maps string descriptions of errors to numeric
error codes, not the other way around.
(cherry picked from commit 84402eb11086f97d31164aaa23e7238da3464f41)

Co-authored-by: Michael Wayne Goodman <goodman.m.w@gmail.com>
4 years agoAllow / character in username,password fields in _PROXY envvars. (GH-23973)
Miss Islington (bot) [Tue, 29 Dec 2020 12:46:05 +0000 (04:46 -0800)] 
Allow / character in username,password fields in _PROXY envvars. (GH-23973)

(cherry picked from commit 030a713183084594659aefd77b76fe30178e23c8)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
4 years ago[doc] Fix missing commas in signatures (GH-23693)
Miss Islington (bot) [Tue, 29 Dec 2020 12:28:58 +0000 (04:28 -0800)] 
[doc] Fix missing commas in signatures (GH-23693)

* Fix star in signatures

* Fix comma in signatures
(cherry picked from commit 60eccd095624f39195cc5ae0b49a59022bbbb028)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-16396: fix BPO number in changelog (GH-23951) (GH-23956)
Miss Islington (bot) [Tue, 29 Dec 2020 11:52:12 +0000 (03:52 -0800)] 
bpo-16396: fix BPO number in changelog (GH-23951) (GH-23956)

Automerge-Triggered-By: GH:jaraco
(cherry picked from commit 7865f516f313bd31ca48ee1fdae2a80add2293b6)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
4 years agobpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968)
Miss Islington (bot) [Tue, 29 Dec 2020 11:18:26 +0000 (03:18 -0800)] 
bpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968)

Objects which belong to different Tcl interpreters are now always
different, even if they have the same name.
(cherry picked from commit 1df56bc0597a051c13d53514e120e9b6764185f8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966)
Miss Islington (bot) [Tue, 29 Dec 2020 11:17:43 +0000 (03:17 -0800)] 
bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966)

Tk can internally support bignum even if Tkinter is built without
support of bignum.
(cherry picked from commit 156b7f7052102ee1633a18e9a136ad8c38f66db0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42770: Fix a typo in the email.headerregistry docs (GH-23982)
Miss Islington (bot) [Tue, 29 Dec 2020 04:37:20 +0000 (20:37 -0800)] 
bpo-42770: Fix a typo in the email.headerregistry docs (GH-23982)

Automerge-Triggered-By: GH:zware
(cherry picked from commit c56988b88fecf6dc70f039704fda6051a0754db1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-42740: Fix get_args for PEP 585 collections.abc.Callable (GH-23963)
Miss Islington (bot) [Mon, 28 Dec 2020 20:26:39 +0000 (12:26 -0800)] 
bpo-42740: Fix get_args for PEP 585 collections.abc.Callable (GH-23963)

PR 1/2. Needs backport to 3.9.
(cherry picked from commit 4140f10a16f06c32fd49f9e21fb2a53abe7357f0)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-42755: Fix sqlite3.Connection.backup docs (GH-23965)
Miss Islington (bot) [Sun, 27 Dec 2020 22:56:41 +0000 (14:56 -0800)] 
bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965)

The `pages` argument default value now reflects the implementation.
(cherry picked from commit abba83b4b91f78dc556dc0b7700ecb46cba22c01)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked...
Miss Islington (bot) [Sun, 27 Dec 2020 08:32:27 +0000 (00:32 -0800)] 
bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked with Tk >= 8.5 (GH-23955)

(cherry picked from commit b02ad2458bc127a7afdeef414fa68c9a7f1f32af)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoAdd convolve() to the itertools recipes (GH-23928) (GH-23949)
Miss Islington (bot) [Sat, 26 Dec 2020 04:23:35 +0000 (20:23 -0800)] 
Add convolve() to the itertools recipes (GH-23928) (GH-23949)

4 years agoRename Tkinter tests for widget options (GH-23944)
Miss Islington (bot) [Fri, 25 Dec 2020 22:30:40 +0000 (14:30 -0800)] 
Rename Tkinter tests for widget options (GH-23944)

Every test for widget option starts now with "test_configure_"
to distinguish it from tests for widget commands.
(cherry picked from commit c1ae21c965cb4d0566df2095e4bcb274d0bd9353)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42727: [Enum] use super() and include **kwds (GH-23927)
Miss Islington (bot) [Fri, 25 Dec 2020 16:07:30 +0000 (08:07 -0800)] 
bpo-42727: [Enum] use super() and include **kwds (GH-23927)

for multiple inheritance support:

use super().new
pass **kwds to super().new
(cherry picked from commit 786d97a66cac48e7a933010367b8993a5b3ab85b)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
4 years agobpo-42734: Fix crasher bogus_code_obj.py (GH-23939)
Miss Islington (bot) [Fri, 25 Dec 2020 15:22:56 +0000 (07:22 -0800)] 
bpo-42734: Fix crasher bogus_code_obj.py (GH-23939)

It did not work because the signature of code object constructor
was changed. Also, it used old format of bytecode (pre-wordcode).
(cherry picked from commit 954a7427ba9c2d02faed32c02090caeca873aeca)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467)
Miss Islington (bot) [Fri, 25 Dec 2020 05:18:37 +0000 (21:18 -0800)] 
bpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467)

When the modern text= spelling of the universal_newlines= parameter was added
for Python 3.7, check_output's special case around input=None was overlooked.
So it behaved differently with universal_newlines=True vs text=True.  This
reconciles the behavior to be consistent and adds a test to guarantee it.

Also clarifies the existing check_output documentation.

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
(cherry picked from commit 64abf373444944a240274a9b6d66d1cb01ecfcdd)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agobpo-42727: Fix the NEWS entry .rst (GH-23932)
Miss Islington (bot) [Fri, 25 Dec 2020 04:53:27 +0000 (20:53 -0800)] 
bpo-42727: Fix the NEWS entry .rst (GH-23932)

It was causing CI failures.  the offending file came from https://github.com/python/cpython/pull/23917

```
python3 tools/rstlint.py ../Misc/NEWS.d/next/
[2] ../Misc/NEWS.d/next/Library/2020-12-23-19-43-06.bpo-42727.WH3ODh.rst:1: default role used
[2] ../Misc/NEWS.d/next/Library/2020-12-23-19-43-06.bpo-42727.WH3ODh.rst:2: default role used
2 problems with severity 2 found.
Makefile:204: recipe for target 'check' failed
```
(cherry picked from commit 8badadec53cbf9dc049c5b54198c5689481e3f3f)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years ago[3.9] bpo-42727: [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917). (GH-23926)
Ethan Furman [Thu, 24 Dec 2020 20:02:38 +0000 (12:02 -0800)] 
[3.9] bpo-42727: [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917). (GH-23926)

* [3.9] [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917).
(cherry picked from commit 6ec0adefad60ec7cdec61c44baecf1dccc1461ab)

4 years agocloses bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912)
Miss Islington (bot) [Thu, 24 Dec 2020 17:37:07 +0000 (09:37 -0800)] 
closes bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912)

On Fedora 31 gdb is using python 3.7.9, calling `proxyval` on an instance with a dictionary fails because of the `dict.iteritems` usage. This PR changes the code to be compatible with py2 and py3.

This changed seemed small enough to not need an issue and news blurb, if one is required please let me know.

Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit b57ada98da0d5b0cf1ebc2c9c5502d04aa962042)

Co-authored-by: Augusto Hack <hack.augusto@gmail.com>
4 years agobpo-42195: Override _CallableGenericAlias's __getitem__ (GH-23915)
Miss Islington (bot) [Thu, 24 Dec 2020 03:07:51 +0000 (19:07 -0800)] 
bpo-42195: Override _CallableGenericAlias's __getitem__ (GH-23915)

Added `__getitem__` for `_CallableGenericAlias` so that it returns a subclass (itself) of `types.GenericAlias` rather than the default behavior of returning a plain `types.GenericAlias`. This fixes `repr` issues occuring after `TypeVar` substitution arising from the previous behavior.
(cherry picked from commit 6dd3da3cf4a0d6cb62d9c2a155434c127183454d)

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agoBPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)
Miss Islington (bot) [Wed, 23 Dec 2020 11:13:51 +0000 (03:13 -0800)] 
BPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)

(cherry picked from commit d90ff376813843310a6f9ccc96551fa1521e8fef)

Co-authored-by: Matt Fowler <matt.fow@gmail.com>
4 years agobpo-42620: Improve socket.getsockname doc string (GH-23742)
Miss Islington (bot) [Wed, 23 Dec 2020 07:48:04 +0000 (23:48 -0800)] 
bpo-42620: Improve socket.getsockname doc string (GH-23742)

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

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-34463: Make python tracebacks identical to C tracebacks for SyntaxErrors without...
Miss Islington (bot) [Tue, 22 Dec 2020 22:12:30 +0000 (14:12 -0800)] 
bpo-34463: Make python tracebacks identical to C tracebacks for SyntaxErrors without a lineno (GH-23427)

(cherry picked from commit 069560b1171eb6385121ff3b6331e8814a4e7454)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-29030: Document interaction between *choices* and *metavar*. (GH-23884) (GH-23894)
Miss Islington (bot) [Tue, 22 Dec 2020 18:19:24 +0000 (10:19 -0800)] 
bpo-29030: Document interaction between *choices* and *metavar*. (GH-23884) (GH-23894)

4 years ago[3.9] [doc] Fix a few margins due to bad markup (GH-23619). (GH-23859)
Andre Delfino [Tue, 22 Dec 2020 02:53:50 +0000 (23:53 -0300)] 
[3.9] [doc] Fix a few margins due to bad markup (GH-23619). (GH-23859)

(cherry picked from commit 96a09df64483b70c4215c7025a19b9d2f1636c55)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years ago[3.9] [doc] Fix erroneous backslashes in signatures and names (GH-23658) (GH-23827)
Andre Delfino [Tue, 22 Dec 2020 02:52:19 +0000 (23:52 -0300)] 
[3.9] [doc] Fix erroneous backslashes in signatures and names (GH-23658) (GH-23827)

The issue being resolved is shown in the 3.10 docs (if you select docs for older versions you won't see a visual glitch).

The newer sphinx version that produces the 3.10 docs doesn't treat the backslash to escape things in some situations it previously did..
(cherry picked from commit dcc997cd28ab33ebac44182ee55533c1b37689f7)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agoFix typo in docstring (GH-23515)
Miss Islington (bot) [Mon, 21 Dec 2020 14:29:57 +0000 (06:29 -0800)] 
Fix typo in docstring (GH-23515)

(cherry picked from commit 711381dfb09fbd434cc3b404656f7fd306161a64)

Co-authored-by: Fernando Toledo <42938011+fernandohtr@users.noreply.github.com>