]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agobpo-45852: Fix the Counter/iter test for statistics.mode() (GH-29667) (GH-29671)
Miss Islington (bot) [Sun, 21 Nov 2021 00:27:44 +0000 (16:27 -0800)] 
bpo-45852:  Fix the Counter/iter test for statistics.mode() (GH-29667) (GH-29671)

Suggested by Stefan Pochmann.
(cherry picked from commit 48744db70ed519c1566c22bf123a0e1f5c69253f)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
3 years agoAdded kw_only parameter to make_dataclasses. (GH-29679)
Miss Islington (bot) [Sat, 20 Nov 2021 23:46:56 +0000 (15:46 -0800)] 
Added kw_only parameter to make_dataclasses. (GH-29679)

(cherry picked from commit f7638dd0f90b2afd9295ee179119f4a29859953a)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
3 years ago[3.10] bpo-45845: Change link for pyserial (GH-29675)
Miss Islington (bot) [Sat, 20 Nov 2021 20:51:24 +0000 (12:51 -0800)] 
[3.10] bpo-45845: Change link for pyserial (GH-29675)

(cherry picked from commit 123a3527ddd7774e8db325c778927e49172e01d4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agobpo-45845: Remove unresponsive web link (GH-29651) (GH-29674)
Miss Islington (bot) [Sat, 20 Nov 2021 18:50:24 +0000 (10:50 -0800)] 
bpo-45845: Remove unresponsive web link (GH-29651) (GH-29674)

Threading notes by Aahz from OSCON 2001.

(cherry picked from commit 985233914504c73f14a23af1c68a3709079e6913)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agobpo-45494: Fix error location in EOF tokenizer errors (GH-29108)
Miss Islington (bot) [Sat, 20 Nov 2021 17:59:34 +0000 (09:59 -0800)] 
bpo-45494: Fix error location in EOF tokenizer errors (GH-29108)

(cherry picked from commit 79ff0d1687e3f823fb121a19f0297ad052871b1b)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[3.10] bpo-45727: Make the syntax error for missing comma more consistent (GH-29427...
Pablo Galindo Salgado [Sat, 20 Nov 2021 17:39:17 +0000 (17:39 +0000)] 
[3.10] bpo-45727: Make the syntax error for missing comma more consistent (GH-29427) (GH-29647)

(cherry picked from commit 546cefcda75d7150b55c8bc1724bea35a1e12890)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agobpo-45846: Fix capitalisation of Van Rossum at the start of sentence (GH-29641) ...
Miss Islington (bot) [Sat, 20 Nov 2021 15:57:16 +0000 (07:57 -0800)] 
bpo-45846: Fix capitalisation of Van Rossum at the start of sentence (GH-29641) (GH-29656)

(cherry picked from commit bc2bc0dbdb52498d009f9f9771452e6aa4faff2b)

Co-authored-by: JMcB <joel.mcbride1@live.com>
3 years ago[3.10] bpo-45848: Allow the parser to get error lines from encoded files (GH-29646...
Łukasz Langa [Sat, 20 Nov 2021 15:34:56 +0000 (16:34 +0100)] 
[3.10] bpo-45848: Allow the parser to get error lines from encoded files (GH-29646) (GH-29661)

(cherry picked from commit fdcc46d9554094994f78bedf6dc9220e5d5ee668)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agobpo-19072: Classmethod can wrap other classmethod like descriptors (GH-29634) (GH...
Miss Islington (bot) [Fri, 19 Nov 2021 19:12:16 +0000 (11:12 -0800)] 
bpo-19072: Classmethod can wrap other classmethod like descriptors (GH-29634) (GH-29643)

staticmethod() also became callable in Python 3.10.

See: b83861f02.
(cherry picked from commit e34809e1c2a09478f4e0651d551c9c12d3c556ab)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
3 years agobpo-45837: Note tiltangle is not deprecated, it's really settiltangle (GH-29629)
Hugo van Kemenade [Fri, 19 Nov 2021 18:55:40 +0000 (20:55 +0200)] 
bpo-45837: Note tiltangle is not deprecated, it's really settiltangle (GH-29629)

3 years ago[3.10] bpo-45788: Link sys.prefix doc to 'Installation paths' (GH-29606)
Miss Islington (bot) [Thu, 18 Nov 2021 21:46:06 +0000 (13:46 -0800)] 
[3.10] bpo-45788: Link sys.prefix doc to 'Installation paths' (GH-29606)

... To the Installation paths section of the sysconfig doc.
(cherry picked from commit 4575c01b750cd26377e803247c38d65dad15e26a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years ago[3.10] [doc] bpo-45680: Disambiguate ``__getitem__`` and ``__class_getitem__`` in...
Miss Islington (bot) [Thu, 18 Nov 2021 17:34:08 +0000 (09:34 -0800)] 
[3.10] [doc] bpo-45680: Disambiguate ``__getitem__`` and ``__class_getitem__`` in the  data model (GH-29389) (GH-29620)

The documentation explaining Python's data model does not adequately explain
the differences between ``__getitem__`` and ``__class_getitem__``, nor does it
explain when each is called. There is an attempt at explaining
``__class_getitem__`` in the documentation for ``GenericAlias`` objects, but
this does not give sufficient clarity into how the method works. Moreover, it
is the wrong place for that information to be found; the explanation of
``__class_getitem__`` should be in the documentation explaining the data model.

This PR has been split off from GH-29335.
(cherry picked from commit 31b3a70edb1216bdc8fab3b2eafd8ddb00487f41)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agobpo-45640: [docs] Tokens are now clickable (GH-29260) (GH-29621)
Miss Islington (bot) [Thu, 18 Nov 2021 16:28:39 +0000 (08:28 -0800)] 
bpo-45640: [docs] Tokens are now clickable (GH-29260) (GH-29621)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 32959108f9c543e3cb9f2b68bbc782bddded6f42)

Co-authored-by: Arthur Milchior <arthur@milchior.fr>
3 years ago[doc] Expand on soft keywords in the docs for keyword.py (GH-29139) (GH-29195)
Miss Islington (bot) [Thu, 18 Nov 2021 16:23:03 +0000 (08:23 -0800)] 
[doc] Expand on soft keywords in the docs for keyword.py (GH-29139) (GH-29195)

Add link at the top and fix the existing links to point to the "[soft keywords](https://docs.python.org/3.10/reference/lexical_analysis.htmlGH-soft-keywords)" section created in the Python 3.10 docs.

(cherry picked from commit 9e05da62241877a871c7b22ef723d7028ce03c90)

Co-authored-by: William Andrea <william.j.andrea@gmail.com>
3 years agobpo-44959: Add fallback to extension modules with '.sl' suffix on HP-UX (GH-27857...
Miss Islington (bot) [Thu, 18 Nov 2021 16:19:19 +0000 (08:19 -0800)] 
bpo-44959: Add fallback to extension modules with '.sl' suffix on HP-UX (GH-27857) (GH-29152)

(cherry picked from commit 2396fa6537d79554ac694dbd2b0b30eeb3476c80)

Co-authored-by: Florin Spătar <florin.spatar@gmail.com>
3 years agobpo-45701: Improve documentation for *typed* parameter (GH-29498) (GH-29509)
Miss Islington (bot) [Thu, 18 Nov 2021 16:12:07 +0000 (08:12 -0800)] 
bpo-45701:  Improve documentation for *typed* parameter (GH-29498) (GH-29509)

(cherry picked from commit 912a4ccc3a523e2990cc501393adfc661614c73a)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
3 years agobpo-45835: Fix race condition in test_queue (GH-29601) (GH-29612)
Miss Islington (bot) [Thu, 18 Nov 2021 16:05:40 +0000 (08:05 -0800)] 
bpo-45835: Fix race condition in test_queue (GH-29601) (GH-29612)

Some of the tests in test_queue had a race condition in which a
non-sentinel value could be enqueued after the final sentinel value
leading to not all the inputs being processed (and test failures).

This changes feed() to enqueue a sentinel once the inputs are exhausted,
which guarantees that the final queued object is a sentinel. This
requires the number of feeder threads to match the number of consumer
threads, but that's already the case in the relevant tests.
(cherry picked from commit df3e53d86b2ad67da9ac2b5a3f56257d1f394982)

Co-authored-by: Sam Gross <colesbury@gmail.com>
3 years ago[3.10] [Enum] update member.member removal (GH-29608)
Ethan Furman [Thu, 18 Nov 2021 07:38:56 +0000 (23:38 -0800)] 
[3.10] [Enum] update member.member removal (GH-29608)

Accessing one enum member from another originally raised an `AttributeError`, but became possible due to a performance boost implementation detail.  In 3.11 it will again raise an `AttributeError`.

3 years ago[3.10] bpo-45826: Fix a crash in suggestions.c by checking for `traceback is None...
Łukasz Langa [Thu, 18 Nov 2021 00:28:04 +0000 (01:28 +0100)] 
[3.10] bpo-45826: Fix a crash in suggestions.c by checking for `traceback is None` (GH-29590) (GH-29602)

(cherry picked from commit 5d90c467c02ffefdb13c1abc83a171db1a99ffad)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
3 years ago[docs] Add missing word "any" in unittest -k cmdline option description (GH-29571...
Miss Islington (bot) [Thu, 18 Nov 2021 00:25:54 +0000 (16:25 -0800)] 
[docs] Add missing word "any" in unittest -k cmdline option description (GH-29571) (GH-29603)

(cherry picked from commit abc0d754c3853c6e69ec3718505871e7e42ec93d)

Co-authored-by: ch33zer <ch33zer@gmail.com>
3 years agobpo-45820: Fix a segfault when the parser fails without reading any input (GH-29580)
Miss Islington (bot) [Wed, 17 Nov 2021 23:43:14 +0000 (15:43 -0800)] 
bpo-45820: Fix a segfault when the parser fails without reading any input (GH-29580)

(cherry picked from commit df4ae55e66e34ea8de6a34f0b104871ddaf35d53)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[3.10] bpo-45822: Respect PEP 263's coding cookies in the parser even if flags are...
Pablo Galindo Salgado [Wed, 17 Nov 2021 23:17:18 +0000 (23:17 +0000)] 
[3.10] bpo-45822: Respect PEP 263's coding cookies in the parser even if flags are not provided (GH-29582) (GH-29586)

(cherry picked from commit da20d7401de97b425897d3069f71f77b039eb16f)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agobpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH...
Miss Islington (bot) [Wed, 17 Nov 2021 21:59:19 +0000 (13:59 -0800)] 
bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH-29598)

If the string is ASCII only and doesn't need to escape characters,
write the whole string with a single write() syscall.
(cherry picked from commit b919d8105c4d77f00509b6d3ab2073f09db640de)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agobpo-42540: reallocation of id_mutex should not force default allocator (GH-29564)
Miss Islington (bot) [Wed, 17 Nov 2021 21:16:01 +0000 (13:16 -0800)] 
bpo-42540: reallocation of id_mutex should not force default allocator (GH-29564)

Unlike the other locks reinitialized by _PyRuntimeState_ReInitThreads,
the "interpreters.main->id_mutex" is not freed by _PyRuntimeState_Fini
and should not force the default raw allocator.
(cherry picked from commit 736684b1bb67369a2e95a9f621752deead44e7ef)

Co-authored-by: Sam Gross <colesbury@gmail.com>
3 years ago[3.10] bpo-45716: Improve the error message when using True/False/None as keywords...
Pablo Galindo Salgado [Tue, 16 Nov 2021 22:31:16 +0000 (22:31 +0000)] 
[3.10] bpo-45716: Improve the error message when using True/False/None as keywords in a call (GH-29413). (GH-29428)

(cherry picked from commit e2d65630f36712dbdbf7711520c985c526a5cc25)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agoSave a reference for ensure_future and create_task (GH-29163)
Miss Islington (bot) [Tue, 16 Nov 2021 11:51:19 +0000 (03:51 -0800)] 
Save a reference for ensure_future and create_task (GH-29163)

Co-authored-by: Joannah Nanjekye <jnanjekye@python.org>
(cherry picked from commit c750adbe6990ee8239b27d5f4591283a06bfe862)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
3 years agoensure deprecation warning from assertDictContainsSubset points at actual test code...
Anthony Sottile [Tue, 16 Nov 2021 03:11:02 +0000 (22:11 -0500)] 
ensure deprecation warning from assertDictContainsSubset points at actual test code (#26497)

3 years agobpo-45677: Reword first section of `sqlite3` docs (GH-29326) (GH-29566)
Miss Islington (bot) [Mon, 15 Nov 2021 23:31:38 +0000 (15:31 -0800)] 
bpo-45677: Reword first section of `sqlite3` docs (GH-29326) (GH-29566)

* bpo-45677: Avoid addressing the reader as 'you' in sqlite3 docs

* Adjust wording

* Adjust wording again

* Typo

* Update Doc/library/sqlite3.rst

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Address review: adjust wording

* Update Doc/library/sqlite3.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update Lib/sqlite3/__init__.py

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update Doc/library/sqlite3.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update Doc/library/sqlite3.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update Lib/sqlite3/__init__.py

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update Doc/library/sqlite3.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Apply Alex' suggestion, and apply 80 char limit to PR

* Minor adjustment

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit 6c5a312fb6d92e879bf4c570b94e18bb9ffe5970)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
3 years agobpo-25381: Update explanation of exceptions in C. (GH-26838) (GH-29568)
Miss Islington (bot) [Mon, 15 Nov 2021 23:06:45 +0000 (15:06 -0800)] 
bpo-25381: Update explanation of exceptions in C. (GH-26838) (GH-29568)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit ad43dc0b54994e7e7d06e3d4896ade188b36ee12)

3 years agobpo-45752: Remove "array" from list of things that cannot be copied in `copy` module...
Miss Islington (bot) [Sun, 14 Nov 2021 13:18:31 +0000 (05:18 -0800)] 
bpo-45752: Remove "array" from list of things that cannot be copied in `copy` module docstring (GH-29555)

Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit c2c4fdf5ea6e9cba4ef469d08a52abb9cfa756a5)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years ago[3.10] bpo-45752: Fix no-support examples in 'copy' docs (GH-29548) (GH-29556)
M. Mostafa Farzan [Sun, 14 Nov 2021 12:54:42 +0000 (16:24 +0330)] 
[3.10] bpo-45752: Fix no-support examples in 'copy' docs (GH-29548) (GH-29556)

(cherry picked from commit b7360ae395e9e633d384d16064c5dc04a9841e19)

Co-authored-by: M. Mostafa Farzan <m2_farzan@yahoo.com>
Automerge-Triggered-By: GH:asvetlov
3 years agobpo-45738: Fix computation of error location for invalid continuation (GH-29550)
Miss Islington (bot) [Sun, 14 Nov 2021 01:30:03 +0000 (17:30 -0800)] 
bpo-45738: Fix computation of error location for invalid continuation (GH-29550)

characters in the parser
(cherry picked from commit 25835c518aa7446f3680b62c1fb43827e0f190d9)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-45799: [Doc] improve confusing sentence in __main__.rst (GH-29546)
Miss Islington (bot) [Sat, 13 Nov 2021 20:36:44 +0000 (12:36 -0800)] 
bpo-45799: [Doc] improve confusing sentence in __main__.rst (GH-29546)

I was reading this bit last night and thought it was a typo. In the light of day, I realized it wasn't *technically* a typo, but definitely confusing wording. This PR fixes the confusing sentence.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit f8da00ef04fdadf7cd9821e8ec4b317ecf3ed663)

Co-authored-by: Jack DeVries <jdevries3133@gmail.com>
4 years ago[bpo-45765] Fix distribution discovery on empty path. (GH-29487) (GH-29510)
Miss Islington (bot) [Sat, 13 Nov 2021 20:08:28 +0000 (12:08 -0800)] 
[bpo-45765] Fix distribution discovery on empty path. (GH-29487) (GH-29510)

(cherry picked from commit 6ec0dec7b7b50d4fee5b2b66cf38e4291bcdf44c)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
4 years ago[3.10] bpo-45772: socket.socket should be a class instead of a function (GH-23960...
Miss Islington (bot) [Sat, 13 Nov 2021 06:23:23 +0000 (22:23 -0800)] 
[3.10] bpo-45772: socket.socket should be a class instead of a function (GH-23960) (GH-29542)

* [bpo-45772](): socket.socket should be a class instead of a function

Currently `socket.socket` is documented as a function, but it is really
a class (and thus has function-like usage to construct an object). This
correction would ensure that Python projects that are interlinking
Python's documentation can properly locate `socket.socket` as a type.
(cherry picked from commit 4c792f39e688b11c7c19e411ed4f76a7baa44638)

Co-authored-by: Hong Xu <hong@topbug.net>
Automerge-Triggered-By: GH:asvetlov
4 years agobpo-45235: Revert an argparse bugfix that caused a regression (GH-29525) (GH-29530)
Miss Islington (bot) [Fri, 12 Nov 2021 18:44:55 +0000 (10:44 -0800)] 
bpo-45235:  Revert an argparse bugfix that caused a regression (GH-29525) (GH-29530)

4 years agobpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29535)
Miss Islington (bot) [Fri, 12 Nov 2021 10:19:52 +0000 (02:19 -0800)] 
bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29535)

Since `.. module:: contextvars` sets the module using `.. class:: contextvars.Token`, intersphinx records it as `contextvars.contextvars.Token`.
(cherry picked from commit e501d70b347c5093018d12482c30a7a98aab86d0)

Co-authored-by: Hynek Schlawack <hs@ox.cx>
Co-authored-by: Hynek Schlawack <hs@ox.cx>
4 years ago[3.10] bpo-45773: Stop "optimizing" certain jump patterns (GH-29526)
Brandt Bucher [Thu, 11 Nov 2021 21:52:43 +0000 (13:52 -0800)] 
[3.10] bpo-45773: Stop "optimizing" certain jump patterns (GH-29526)

4 years ago[3.10] bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG befor...
Irit Katriel [Tue, 9 Nov 2021 22:05:30 +0000 (22:05 +0000)] 
[3.10] bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG before a no-arg opcode (GH-29480) (GH-29506)

4 years agobpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH...
Miss Islington (bot) [Tue, 9 Nov 2021 20:43:12 +0000 (12:43 -0800)] 
bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501)

(cherry picked from commit a56fbad85ea655631bce68d4c0f47f1a8b500abd)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477)
Steve Dower [Tue, 9 Nov 2021 17:48:49 +0000 (17:48 +0000)] 
bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477)

4 years agoCloses bpo-45712: Add missing word in control flow tutorial (GH-29460)
Miss Islington (bot) [Mon, 8 Nov 2021 17:13:02 +0000 (09:13 -0800)] 
Closes bpo-45712: Add missing word in control flow tutorial (GH-29460)

(cherry picked from commit 7484a5c82a2dfc106bb1e4b060cad2df00521bfd)

Co-authored-by: 180909 <734461790@qq.com>
4 years agobpo-40170: Update What's New in Python 3.9 (GH-29470)
Miss Islington (bot) [Mon, 8 Nov 2021 17:05:15 +0000 (09:05 -0800)] 
bpo-40170: Update What's New in Python 3.9 (GH-29470)

The PyType_HasFeature() change has been reverted: the static inline
function access directly the PyTypeObject.tp_flags member.
(cherry picked from commit 99c7e9853fa13af414168f179213e3d2fae03a45)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-45741: docs: fix plural (GH-29461) (GH-29463)
Miss Islington (bot) [Mon, 8 Nov 2021 06:32:23 +0000 (22:32 -0800)] 
bpo-45741: docs: fix plural (GH-29461) (GH-29463)

"entry points provides" -> "entry points provide"

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 19b107e9b52dbd73f4c52adcb91e8185a53b45ae)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
4 years agobpo-45392: Update the docstring of the 'type' built-in (GH-29439) (GH-29452)
Miss Islington (bot) [Sat, 6 Nov 2021 20:21:04 +0000 (13:21 -0700)] 
bpo-45392: Update the docstring of the 'type' built-in (GH-29439) (GH-29452)

(cherry picked from commit 91275207296c39e495fe118019a757c4ddefede8)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agobpo-27313: Use non-deprecated methods for tracing (GH-29425) (GH-29450)
Miss Islington (bot) [Sat, 6 Nov 2021 19:23:00 +0000 (12:23 -0700)] 
bpo-27313: Use non-deprecated methods for tracing (GH-29425) (GH-29450)

(cherry picked from commit cc1cbcbb2d75cacc31ff3359d83043bc7bd5a89d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-39452: [doc] Change "must" to "can" on relative import style in `__main__` (GH...
Miss Islington (bot) [Sat, 6 Nov 2021 18:50:00 +0000 (11:50 -0700)] 
bpo-39452: [doc] Change "must" to "can" on relative import style in `__main__` (GH-29379) (GH-29449)

(cherry picked from commit 57457a1e5caf714034a75fe4f382b8b669ce6ed8)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years ago[doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29447)
Miss Islington (bot) [Sat, 6 Nov 2021 18:21:36 +0000 (11:21 -0700)] 
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29447)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 77a2c77c84d2ead2d19f96df862c119308e90071)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years agobpo-45644: Make json.tool read infile before writing to outfile (GH-29273) (GH-29445)
Miss Islington (bot) [Sat, 6 Nov 2021 18:01:17 +0000 (11:01 -0700)] 
bpo-45644:  Make json.tool read infile before writing to outfile (GH-29273) (GH-29445)

so that

$ python -m json.tool foo.json foo.json

doesn't result in an empty foo.json.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 815dad42d53fc40a6dc057e067f4a8a885c3b858)

Co-authored-by: Chris Wesseling <chris.wesseling@protonmail.com>
4 years agobpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)
Steve Dower [Sat, 6 Nov 2021 00:25:29 +0000 (00:25 +0000)] 
bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)

4 years agobpo-45762: Improve docs for ``@singledispatch``/``@singledispatchmethod`` (GH-29426...
Miss Islington (bot) [Fri, 5 Nov 2021 16:49:40 +0000 (09:49 -0700)] 
bpo-45762: Improve docs for ``@singledispatch``/``@singledispatchmethod`` (GH-29426) (GH-29431)

(cherry picked from commit 71e8a3e76a32f5eabe20e7fa984f384ca9af6ec6)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years agobpo-45678: Add more ``singledispatchmethod`` tests (GH-29412) (GH-29424)
Miss Islington (bot) [Fri, 5 Nov 2021 15:27:22 +0000 (08:27 -0700)] 
bpo-45678: Add more ``singledispatchmethod`` tests (GH-29412) (GH-29424)

In order to fix a bug in the 3.9 branch in GH-29394, more tests were added to
``test_functools.py`` to ensure that ``singledispatchmethod`` still correctly
wrapped a target method, even if the target method had already been wrapped by
 multiple other decorators. This PR brings the new tests into the 3.11 and 3.10
branches as well.
(cherry picked from commit 32f55d1a5de66f9a86964fc0655d7a006a9d90b9)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years agobpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416) (GH...
Miss Islington (bot) [Fri, 5 Nov 2021 10:00:18 +0000 (03:00 -0700)] 
bpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416) (GH-29421)

(cherry picked from commit 54d1e3f72ed1ad8e860888c30ee7a285b931c0d1)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS (GH-29411)...
Miss Islington (bot) [Fri, 5 Nov 2021 09:59:34 +0000 (02:59 -0700)] 
bpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS (GH-29411) (GH-29422)

(cherry picked from commit e52f9bee802aa7a7fbd405dcc43bc2d1bea884d9)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years ago[3.10] bpo-44257: fix "assigment_expr" typo + regenerate the grammar, and remove...
Pablo Galindo Salgado [Thu, 4 Nov 2021 23:19:27 +0000 (23:19 +0000)] 
[3.10] bpo-44257: fix "assigment_expr" typo + regenerate the grammar, and remove unused imports (GH-29393) (GH-29395)

Co-authored-by: Wim Glenn <wglenn@jumptrading.com>.
(cherry picked from commit 762173c6709f5cf3b59cbbe47d4e6fafbfe7ec2a)

Co-authored-by: wim glenn <wim.glenn@gmail.com>
4 years agobpo-30570: Fix segfault on buildbots caused by stack overflow from recursion in tests...
Miss Islington (bot) [Thu, 4 Nov 2021 20:45:05 +0000 (13:45 -0700)] 
bpo-30570: Fix segfault on buildbots caused by stack overflow from recursion in tests (GH-29258)

* Don't stackoveflow on debug builds

* Also catch the pickletester case
(cherry picked from commit d56375a0dd4cee162081b173310298a3d32af293)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
4 years agobpo-45220: Remove invalid include from resource definition files on Windows (GH-29396...
Miss Islington (bot) [Thu, 4 Nov 2021 20:17:08 +0000 (13:17 -0700)] 
bpo-45220: Remove invalid include from resource definition files on Windows (GH-29396) (GH-29406)

(cherry picked from commit fd0c84dc28d00d68e4f43034dc41786a682390fd)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoAdd generated artifacts in Mac/ to .gitignore; update copyright (GH-29408) (GH-29409)
Miss Islington (bot) [Thu, 4 Nov 2021 19:32:03 +0000 (12:32 -0700)] 
Add generated artifacts in Mac/ to .gitignore; update copyright (GH-29408) (GH-29409)

(cherry picked from commit 3167df16212e27f8aac1e5f39c0644a97b593406)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-43652: Actually update to Tcl/Tk 8.6.11 on Windows (GH-29397)
Steve Dower [Thu, 4 Nov 2021 17:27:57 +0000 (17:27 +0000)] 
bpo-43652: Actually update to Tcl/Tk 8.6.11 on Windows (GH-29397)

4 years agoRemove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)
Miss Islington (bot) [Thu, 4 Nov 2021 12:11:14 +0000 (05:11 -0700)] 
Remove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)

``typing.Tuple`` has been deprecated since Python 3.9, so it makes no sense to mention it so prominently in the documentation for the ``typing`` module.
(cherry picked from commit 87032cfa3dc975d7442fd57dea2c6a56d31c911a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years agobpo-45680: ``typing`` docs: improve links to docs on ``GenericAlias``/``__class_getit...
Miss Islington (bot) [Thu, 4 Nov 2021 04:27:47 +0000 (21:27 -0700)] 
bpo-45680: ``typing`` docs: improve links to docs on ``GenericAlias``/``__class_getitem__`` (GH-29387)

(cherry picked from commit e03e50377d6f8f212af60fed4ae405ebeb73237d)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years agobpo-45678: Add ``functools.singledispatchmethod`` tests (GH-29328) (GH-29390)
Miss Islington (bot) [Wed, 3 Nov 2021 16:45:20 +0000 (09:45 -0700)] 
bpo-45678: Add ``functools.singledispatchmethod`` tests (GH-29328) (GH-29390)

(cherry picked from commit 5a14929a6e4fab672e2f83a86773618e973b22a6)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years ago[3.10] bpo-45578: add tests for `dis.distb` (GH-29332) (GH-29385)
Łukasz Langa [Wed, 3 Nov 2021 15:53:36 +0000 (16:53 +0100)] 
[3.10] bpo-45578: add tests for `dis.distb` (GH-29332) (GH-29385)

(cherry picked from commit e346f196819aeb02a8a94205ce3e1536c4c2f105)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years agobpo-45633: Fix newtypes doc typo (GH-29318) (GH-29364)
Miss Islington (bot) [Wed, 3 Nov 2021 09:30:02 +0000 (02:30 -0700)] 
bpo-45633: Fix newtypes doc typo (GH-29318) (GH-29364)

(cherry picked from commit 454cdb99abcda37413b15167cda564091fec2572)

Co-authored-by: Dmitry Smirnov <dmitrysmirnov931@gmail.com>
4 years agobpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFound...
Miss Islington (bot) [Tue, 2 Nov 2021 22:23:43 +0000 (15:23 -0700)] 
bpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFoundError (GH-28824)

(cherry picked from commit a459a81530de700b3d3faeb827b22ed1c9985812)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
4 years ago[doc] Link to section File input (GH-28941) (GH-29375)
Miss Islington (bot) [Tue, 2 Nov 2021 21:54:53 +0000 (14:54 -0700)] 
[doc] Link to section File input (GH-28941) (GH-29375)

(cherry picked from commit 48824fa1e26595ac97ffc96ee2c3d32ff130c420)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947...
Miss Islington (bot) [Tue, 2 Nov 2021 21:47:50 +0000 (14:47 -0700)] 
bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947) (GH-29373)

Specify that SSLContext.set_default_verify_paths is called on ALL systems.

The code of SSLContext.load_default_certs was changed in bpo-22449 to do this,
this fix corrects the documentation to match that change.
(cherry picked from commit 3551bf16ee5c25b6349209dd30e032f0f3b9ace3)

Co-authored-by: LincolnPuzey <lincoln@puzey.dev>
4 years agobpo-44828: Avoid leaving a zombie Save panel. (GH-29369)
Ned Deily [Tue, 2 Nov 2021 21:02:58 +0000 (17:02 -0400)] 
bpo-44828: Avoid leaving a zombie Save panel. (GH-29369)

Patch by Marc Culler of the Tk project.

4 years agomakefile: remove unused SGI_ABI variable (GH-29325) (GH-29368)
Miss Islington (bot) [Tue, 2 Nov 2021 21:00:46 +0000 (14:00 -0700)] 
makefile: remove unused SGI_ABI variable (GH-29325) (GH-29368)

SGI_ABI support was removed in [1] but this variable was never removed
from the makefile. Currently, it is just a bad variable that does not
get replaced by the configure script.

[1] https://github.com/python/cpython/pull/3294

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

Co-authored-by: Filipe Laíns <lains@riseup.net>
4 years ago[3.10] bpo-43158: Use configure values for building _uuid extension (GH-29353) (GH...
Miss Islington (bot) [Tue, 2 Nov 2021 11:49:17 +0000 (04:49 -0700)] 
[3.10] bpo-43158: Use configure values for building _uuid extension (GH-29353) (GH-29362)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.10] bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) (GH-29361)
Miss Islington (bot) [Tue, 2 Nov 2021 11:32:36 +0000 (04:32 -0700)] 
[3.10] bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) (GH-29361)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.10] Move field width to the right field (GH-29344) (GH-29351)
Miss Islington (bot) [Sun, 31 Oct 2021 20:25:44 +0000 (13:25 -0700)] 
[3.10] Move field width to the right field (GH-29344) (GH-29351)

Co-authored-by: Olaf van der Spek <olafvdspek@gmail.com>
4 years agobpo-45516: add protocol description to the Traversable documentation (GH-29039)
Miss Islington (bot) [Sun, 31 Oct 2021 19:26:49 +0000 (12:26 -0700)] 
bpo-45516: add protocol description to the Traversable documentation (GH-29039)

* bpo-45516: add protocol description to the Traversable documentation

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Update Doc/library/importlib.rst

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Update Lib/importlib/abc.py

* Update Doc/library/importlib.rst

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
(cherry picked from commit 4d03de3329ed8daa9c1107b1aedbb0fa280bddb6)

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
4 years ago[3.10] bpo-45634: Don't combine error checks when adding `sqlite3` int constants...
Erlend Egeberg Aasland [Sun, 31 Oct 2021 11:22:22 +0000 (12:22 +0100)] 
[3.10] bpo-45634: Don't combine error checks when adding `sqlite3` int constants (GH-29251). (GH-29343)

4 years agobpo-45679: Fix caching of multi-value typing.Literal (GH-29334)
Miss Islington (bot) [Sun, 31 Oct 2021 08:43:40 +0000 (01:43 -0700)] 
bpo-45679: Fix caching of multi-value typing.Literal (GH-29334)

Literal[True, 2] is no longer equal to Literal[1, 2].
(cherry picked from commit 634984d7dbdd91e0a51a793eed4d870e139ae1e0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoFix docs source link for importlib.metadata (GH-29025)
Miss Islington (bot) [Sat, 30 Oct 2021 15:32:14 +0000 (08:32 -0700)] 
Fix docs source link for importlib.metadata (GH-29025)

The link broke for Python 3.10 since importlib.metadata was made from a module into a package

I think this is trivial enough to not need a bpo issue.

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

Co-authored-by: Philipp A <flying-sheep@web.de>
4 years ago[3.10] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory...
Łukasz Langa [Fri, 29 Oct 2021 20:54:07 +0000 (22:54 +0200)] 
[3.10] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory error (GH-29171) (GH-29323)

(cherry picked from commit e2e62b3808691e15fa44b883270023e42dcad958)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-45600: Enhanced / clarified the docs for os.environ and os.environb (GH-29204...
Miss Islington (bot) [Fri, 29 Oct 2021 20:45:33 +0000 (13:45 -0700)] 
bpo-45600: Enhanced / clarified the docs for os.environ and os.environb (GH-29204) (GH-29322)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit b17cfd150f4dc2816975d304a71110a2d445eaf0)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agobpo-45335: Add note to `sqlite3` docs about "timestamp" converter (GH-29200) (GH...
Miss Islington (bot) [Fri, 29 Oct 2021 20:41:45 +0000 (13:41 -0700)] 
bpo-45335: Add note to `sqlite3` docs about "timestamp" converter (GH-29200) (GH-29319)

(cherry picked from commit 3877fc02f7a8801ba5ce0e94b6075b3fdd9778d0)

Co-authored-by: Ian Fisher <ian@iafisher.com>
4 years agobpo-45562: Ensure all tokenizer debug messages are printed to stderr (GH-29270)
Miss Islington (bot) [Fri, 29 Oct 2021 17:21:15 +0000 (10:21 -0700)] 
bpo-45562: Ensure all tokenizer debug messages are printed to stderr (GH-29270)

(cherry picked from commit cdc7a5827754bec83970bb052d410d55f85b3fff)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years ago[3.10] bpo-45628: Check all parts of the suffix for an extension match. (GH-29310...
Miss Islington (bot) [Fri, 29 Oct 2021 15:25:31 +0000 (08:25 -0700)] 
[3.10] bpo-45628: Check all parts of the suffix for an extension match. (GH-29310) (GH-29314)

4 years agobpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)
Miss Islington (bot) [Fri, 29 Oct 2021 14:16:19 +0000 (07:16 -0700)] 
bpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)

(cherry picked from commit d9575218d7ab3d85b15ce3d4779660b9b724d343)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years ago[3.10] bo-45655: Add "relevant PEPs" section to typing documentation (GH-29302)
Alex Waygood [Fri, 29 Oct 2021 10:03:48 +0000 (11:03 +0100)] 
[3.10] bo-45655: Add "relevant PEPs" section to typing documentation (GH-29302)

The list of PEPs at the top of the documentation for the ``typing`` module has
become too long to be readable. This PR proposes presenting this
information in a more structured and readable way by adding a new "relevant
PEPs" section to the ``typing`` docs.

(cherry picked from commit 03db1bbfd2d3f5a343c293b2f0e09a1e962df7ea)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years ago[3.10] bpo-45502: Fix test_shelve (GH-29003) (GH-29305)
Serhiy Storchaka [Fri, 29 Oct 2021 09:40:22 +0000 (12:40 +0300)] 
[3.10] bpo-45502: Fix test_shelve (GH-29003) (GH-29305)

Run test_shelve with all underlying dbm implementations and pickle protocols.
Also make test_shelve discoverable.
(cherry picked from commit b781cc3bfce7c052728b06aad9f1a467cced289d)

4 years agobpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167) (GH-29296)
Miss Islington (bot) [Thu, 28 Oct 2021 22:00:49 +0000 (15:00 -0700)] 
bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167) (GH-29296)

(cherry picked from commit 66e6b3dcd3bbab06feeff2cbaf8aade7b6223d6c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years agobpo-45624: make test_graphlib not depend on the iteration order of sets (GH-29233...
Miss Islington (bot) [Thu, 28 Oct 2021 21:15:01 +0000 (14:15 -0700)] 
bpo-45624: make test_graphlib not depend on the iteration order of sets (GH-29233) (GH-29293)

the current test depended on integer sets being iterated on in a certain
fixed order. That order is different on PyPy (insertion based) and could
change in CPython in the future in theory. Make the test robust against
a different iteration order by sorting.
(cherry picked from commit 7401694807fc6b5f7b35ff73c06f4bb852e02946)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
4 years agobpo-45612: Add sqlite3 module docstring (GH-29224) (GH-29288)
Miss Islington (bot) [Thu, 28 Oct 2021 20:24:52 +0000 (13:24 -0700)] 
bpo-45612: Add sqlite3 module docstring (GH-29224) (GH-29288)

(cherry picked from commit 4dd1e84789f0bd2da83ad06d23c569bf03713a50)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29285)
Miss Islington (bot) [Thu, 28 Oct 2021 20:17:06 +0000 (13:17 -0700)] 
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29285)

It should be noted that this part of the documentation is redundant with
function.rst's documentation of int. This one was correctly updated with Python 3.8.
(cherry picked from commit d9c1868c25ec6466e8d8ae21fe9315a8a03836ab)

Co-authored-by: Arthur Milchior <arthur@milchior.fr>
4 years agobpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func (GH-29226...
Miss Islington (bot) [Thu, 28 Oct 2021 19:58:24 +0000 (12:58 -0700)] 
bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func (GH-29226) (GH-29283)

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

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years agobpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219) (GH...
Miss Islington (bot) [Thu, 28 Oct 2021 19:57:14 +0000 (12:57 -0700)] 
bpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219) (GH-29281)

(cherry picked from commit 88d8a1a340fb09c54d47f354f5fd7d4fbc5f0c78)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years ago[3.10] bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() (GH...
Sam Gross [Thu, 28 Oct 2021 19:22:57 +0000 (15:22 -0400)] 
[3.10] bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() (GH-29246) (GH-29249)

Objects that support garbage collection ("container" objects) should
call PyObject_GC_UnTrack() from their destructors before clearing any
fields which may point to other "container" objects.
(cherry picked from commit 35e1ff38ee67ee543d9fcb268c3552c5397f9b3f)

Co-authored-by: Sam Gross <colesbury@gmail.com>
4 years agobpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276)
Miss Islington (bot) [Thu, 28 Oct 2021 18:43:04 +0000 (11:43 -0700)] 
bpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276)

when using the Tk 8.6.11 provided by python.org macOS installers.
Patch by Marc Culler of the Tk project.
(cherry picked from commit be8318be05e1a874215fa75b8845ede74b2c69b6)

Co-authored-by: Ned Deily <nad@python.org>
4 years agoFix typo in Counter documentation (GH-29223)
Miss Islington (bot) [Thu, 28 Oct 2021 11:06:04 +0000 (04:06 -0700)] 
Fix typo in Counter documentation (GH-29223)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 0a68b3603fbc0aaf9eeb8ce8b42b78d6fa7cfa78)

Co-authored-by: Justinas Petuchovas <justinas.petuchovas@gmail.com>
4 years agobpo-44904: Fix classmethod property bug in doctest module (GH-28838)
Miss Islington (bot) [Thu, 28 Oct 2021 08:09:41 +0000 (01:09 -0700)] 
bpo-44904: Fix classmethod property bug in doctest module (GH-28838)

The doctest module raised an error if a docstring contained an example that
attempted to access a classmethod property. (Stacking '@classmethod' on top of
`@property` has been supported since Python 3.9; see
https://docs.python.org/3/howto/descriptor.htmlGH-class-methods.)

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

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years agobpo-45438: format of inspect.Signature with generic builtins (GH-29212)
Miss Islington (bot) [Wed, 27 Oct 2021 21:57:07 +0000 (14:57 -0700)] 
bpo-45438: format of inspect.Signature with generic builtins (GH-29212)

Use types.GenericAlias in inspect.formatannotation to correctly add
type arguments of builtin types to the string representation of
Signatures.

Co-authored-by: Martin Rückl <martin.rueckl@codecentric.de>
(cherry picked from commit d02ffd1b5c0fd8dec6dd2f7e3f2b0cfae48b7899)

Co-authored-by: Martin Rueckl <enigma@nbubu.de>
4 years agobpo-45562: Print tokenizer debug messages to stderr (GH-29250) (GH-29252)
Miss Islington (bot) [Wed, 27 Oct 2021 21:45:43 +0000 (14:45 -0700)] 
bpo-45562: Print tokenizer debug messages to stderr (GH-29250) (GH-29252)

(cherry picked from commit 10bbd41ba8c88bc102df108a4e0444abc7c5ea43)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH-29230...
Miss Islington (bot) [Wed, 27 Oct 2021 14:37:17 +0000 (07:37 -0700)] 
bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH-29230) (GH-29240)

Co-authored-by: Maciej Olko <maciej.olko@yougov.com>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
(cherry picked from commit bcee6aa31550cfecdc3acecbd0e4447bb0051887)

4 years agobpo-45566: `test_frozen_pickle` checks all `pickle` protocols (GH-29150)
Miss Islington (bot) [Sun, 24 Oct 2021 13:29:37 +0000 (06:29 -0700)] 
bpo-45566: `test_frozen_pickle` checks all `pickle` protocols (GH-29150)

Refs https://github.com/python/cpython/pull/29147

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 07236d562e59c6650227be18fa6ffc66b18d4741)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years agobpo-45574: fix warning about `print_escape` being unused (GH-29172) (#29176)
Miss Islington (bot) [Sat, 23 Oct 2021 13:35:48 +0000 (06:35 -0700)] 
bpo-45574: fix warning about `print_escape` being unused (GH-29172) (#29176)

It used to be like this:
<img width="1232" alt="Снимок экрана 2021-10-22 в 23 07 40" src="https://user-images.githubusercontent.com/4660275/138516608-fef6ec01-a96a-40f4-81ef-52265b0f536b.png">

Quick `grep` tells that it is just used in one place under `Py_DEBUG`: https://github.com/python/cpython/blame/f6e8b80d20159596cf641305bad3a833bedd2f4f/Parser/tokenizer.cGH-L1047-L1051
<img width="752" alt="Снимок экрана 2021-10-22 в 23 08 09" src="https://user-images.githubusercontent.com/4660275/138516684-ea503136-1e92-48a5-95bb-419e190d5866.png">

I am not sure, but it also looks like a private thing, it should not affect other users.

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 4bc5473a42c5eae0928430930b897209492e849d)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years agobpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048)
Miss Islington (bot) [Fri, 22 Oct 2021 21:46:56 +0000 (14:46 -0700)] 
bpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048)

* Use Py_EnterRecursiveCall() in issubclass()

Reviewed-by: Gregory P. Smith <greg@krypto.org> [Google]
(cherry picked from commit 423fa1c1817abfa8c3d1bc308ddbbd8f28b69d68)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>