]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agoPost 3.9.9
Łukasz Langa [Mon, 15 Nov 2021 21:41:03 +0000 (22:41 +0100)] 
Post 3.9.9

3 years agoPython 3.9.9 v3.9.9
Łukasz Langa [Mon, 15 Nov 2021 17:26:38 +0000 (18:26 +0100)] 
Python 3.9.9

3 years agobpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH...
Miss Islington (bot) [Mon, 15 Nov 2021 17:40:08 +0000 (09:40 -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>
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:21:32 +0000 (05:21 -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 agobpo-45752: Fix no-support examples in 'copy' docs (GH-29548)
Miss Islington (bot) [Sun, 14 Nov 2021 09:58:01 +0000 (01:58 -0800)] 
bpo-45752: Fix no-support examples in 'copy' docs (GH-29548)

(cherry picked from commit b7360ae395e9e633d384d16064c5dc04a9841e19)

Co-authored-by: M. Mostafa Farzan <m2_farzan@yahoo.com>
3 years agobpo-45738: Fix computation of error location for invalid continuation characters...
Pablo Galindo Salgado [Sun, 14 Nov 2021 01:47:27 +0000 (01:47 +0000)] 
bpo-45738: Fix computation of error location for invalid continuation characters in the parser (GH-29550) (GH-29552)

(cherry picked from commit 25835c518aa7446f3680b62c1fb43827e0f190d9)

3 years ago[3.9] [bpo-45765] Fix distribution discovery on empty path. (GH-29487). (GH-29511)
Jason R. Coombs [Sat, 13 Nov 2021 20:07:22 +0000 (15:07 -0500)] 
[3.9] [bpo-45765] Fix distribution discovery on empty path. (GH-29487). (GH-29511)

(cherry picked from commit 6ec0dec7b7b50d4fee5b2b66cf38e4291bcdf44c)

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

* [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
3 years agobpo-45235: Revert an argparse bugfix that caused a regression (GH-29525) (GH-29531)
Miss Islington (bot) [Fri, 12 Nov 2021 18:44:25 +0000 (10:44 -0800)] 
bpo-45235:  Revert an argparse bugfix that caused a regression (GH-29525) (GH-29531)

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

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 agobpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477)
Steve Dower [Tue, 9 Nov 2021 19:12:56 +0000 (19:12 +0000)] 
bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477)

4 years agobpo-40170: Update What's New in Python 3.9 (GH-29470) (GH-29472)
Miss Islington (bot) [Mon, 8 Nov 2021 17:10:41 +0000 (09:10 -0800)] 
bpo-40170: Update What's New in Python 3.9 (GH-29470) (GH-29472)

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 agoremove the repeat 'the' (GH-29455)
Miss Islington (bot) [Mon, 8 Nov 2021 08:45:06 +0000 (00:45 -0800)] 
remove the repeat 'the' (GH-29455)

(cherry picked from commit 122ca4d73faba279a579aa2011fa34661ce537a2)

Co-authored-by: 180909 <734461790@qq.com>
4 years agobpo-45392: Update the docstring of the 'type' built-in (GH-29439) (GH-29453)
Miss Islington (bot) [Sat, 6 Nov 2021 20:17:59 +0000 (13:17 -0700)] 
bpo-45392: Update the docstring of the 'type' built-in (GH-29439) (GH-29453)

(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-29451)
Miss Islington (bot) [Sat, 6 Nov 2021 19:23:28 +0000 (12:23 -0700)] 
bpo-27313: Use non-deprecated methods for tracing (GH-29425) (GH-29451)

(cherry picked from commit cc1cbcbb2d75cacc31ff3359d83043bc7bd5a89d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29448)
Miss Islington (bot) [Sat, 6 Nov 2021 18:50:18 +0000 (11:50 -0700)] 
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29448)

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-29446)
Miss Islington (bot) [Sat, 6 Nov 2021 18:01:44 +0000 (11:01 -0700)] 
bpo-45644:  Make json.tool read infile before writing to outfile (GH-29273) (GH-29446)

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)
Miss Islington (bot) [Sat, 6 Nov 2021 01:38:50 +0000 (18:38 -0700)] 
bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)

(cherry picked from commit 804ea41211b042fa20c3cd8c0457bbfa3873128a)

Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoPost 3.9.8
Łukasz Langa [Fri, 5 Nov 2021 21:21:27 +0000 (22:21 +0100)] 
Post 3.9.8

4 years agoPython 3.9.8 v3.9.8
Łukasz Langa [Fri, 5 Nov 2021 19:21:41 +0000 (20:21 +0100)] 
Python 3.9.8

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

(cherry picked from commit 71e8a3e76a32f5eabe20e7fa984f384ca9af6ec6)

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:05 +0000 (03:00 -0700)] 
bpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416) (GH-29420)

(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:50 +0000 (02:59 -0700)] 
bpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS (GH-29411) (GH-29423)

(cherry picked from commit e52f9bee802aa7a7fbd405dcc43bc2d1bea884d9)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years ago[3.9] bpo-30570: Fix segfault on buildbots caused by stack overflow from recursion...
Łukasz Langa [Thu, 4 Nov 2021 20:52:26 +0000 (21:52 +0100)] 
[3.9] bpo-30570: Fix segfault on buildbots caused by stack overflow from recursion in tests (GH-29258) (GH-29415)

(cherry picked from commit d56375a0dd4cee162081b173310298a3d32af293)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
4 years agobpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048) (GH-29178)
Miss Islington (bot) [Thu, 4 Nov 2021 20:20:21 +0000 (13:20 -0700)] 
bpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048) (GH-29178)

* 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>
4 years ago[3.9] bpo-45678: Fix `singledispatchmethod` `classmethod`/`staticmethod` bug (GH...
Alex Waygood [Thu, 4 Nov 2021 19:34:14 +0000 (19:34 +0000)] 
[3.9] bpo-45678: Fix `singledispatchmethod` `classmethod`/`staticmethod` bug (GH-29394)

This PR fixes a bug in the 3.9 branch where
``functools.singledispatchmethod`` did not properly wrap attributes such as
``__name__``, ``__doc__`` and ``__module__`` of the target method. It also
backports tests already merged into the 3.11 and 3.10 branches in #29328 and
#29390.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agoAdd generated artifacts in Mac/ to .gitignore; update copyright (GH-29408) (GH-29410)
Miss Islington (bot) [Thu, 4 Nov 2021 19:31:39 +0000 (12:31 -0700)] 
Add generated artifacts in Mac/ to .gitignore; update copyright (GH-29408) (GH-29410)

(cherry picked from commit 3167df16212e27f8aac1e5f39c0644a97b593406)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-45220: Remove invalid include from resource definition files on Windows (GH-29396)
Miss Islington (bot) [Thu, 4 Nov 2021 17:01:19 +0000 (10:01 -0700)] 
bpo-45220: Remove invalid include from resource definition files on Windows (GH-29396)

(cherry picked from commit fd0c84dc28d00d68e4f43034dc41786a682390fd)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoRemove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)
Miss Islington (bot) [Thu, 4 Nov 2021 12:13:24 +0000 (05:13 -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:34:31 +0000 (21:34 -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 ago[3.9] bpo-45578: add tests for `dis.distb` (GH-29332) (#29386)
Łukasz Langa [Wed, 3 Nov 2021 16:47:04 +0000 (17:47 +0100)] 
[3.9] bpo-45578: add tests for `dis.distb` (GH-29332) (#29386)

(cherry picked from commit e346f196819aeb02a8a94205ce3e1536c4c2f105)

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

(cherry picked from commit 454cdb99abcda37413b15167cda564091fec2572)

Co-authored-by: Dmitry Smirnov <dmitrysmirnov931@gmail.com>
4 years ago[3.9] bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) (GH-29342)
Serhiy Storchaka [Wed, 3 Nov 2021 09:28:55 +0000 (11:28 +0200)] 
[3.9] bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) (GH-29342)

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 agobpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFound...
Miss Islington (bot) [Tue, 2 Nov 2021 22:26:40 +0000 (15:26 -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-29376)
Miss Islington (bot) [Tue, 2 Nov 2021 21:59:42 +0000 (14:59 -0700)] 
[doc] Link to section File input (GH-28941) (GH-29376)

(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:53:45 +0000 (14:53 -0700)] 
bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947) (GH-29374)

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-29371)
Ned Deily [Tue, 2 Nov 2021 21:06:11 +0000 (17:06 -0400)] 
bpo-44828: Avoid leaving a zombie Save panel. (GH-29371)

Patch by Marc Culler of the Tk project.

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

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.9] bpo-43158: Use configure values for building _uuid extension (GH-29353) (GH...
Miss Islington (bot) [Tue, 2 Nov 2021 11:52:42 +0000 (04:52 -0700)] 
[3.9] bpo-43158: Use configure values for building _uuid extension (GH-29353) (GH-29363)

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

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:27:49 +0000 (12:27 -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.9] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory...
Łukasz Langa [Fri, 29 Oct 2021 21:02:19 +0000 (23:02 +0200)] 
[3.9] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory error (GH-29171) (GH-29324)

(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:52:59 +0000 (13:52 -0700)] 
bpo-45600: Enhanced / clarified the docs for os.environ and os.environb (GH-29204) (GH-29321)

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:42:38 +0000 (13:42 -0700)] 
bpo-45335: Add note to `sqlite3` docs about "timestamp" converter (GH-29200) (GH-29320)

(cherry picked from commit 3877fc02f7a8801ba5ce0e94b6075b3fdd9778d0)

Co-authored-by: Ian Fisher <ian@iafisher.com>
4 years ago[3.9] bpo-45628: Check all parts of the suffix for an extension match. (GH-29310...
Miss Islington (bot) [Fri, 29 Oct 2021 15:24:41 +0000 (08:24 -0700)] 
[3.9] bpo-45628: Check all parts of the suffix for an extension match. (GH-29310) (GH-29313)

4 years ago[3.9] [3.10] bpo-45502: Fix test_shelve (GH-29003) (GH-29305) (GH-29306)
Serhiy Storchaka [Fri, 29 Oct 2021 10:18:34 +0000 (13:18 +0300)] 
[3.9] [3.10] bpo-45502: Fix test_shelve (GH-29003) (GH-29305) (GH-29306)

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

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

(cherry picked from commit 66e6b3dcd3bbab06feeff2cbaf8aade7b6223d6c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years ago[3.9] bpo-45655: Add "relevant PEPs" section to typing documentation (GH-29297)
Alex Waygood [Thu, 28 Oct 2021 21:17:28 +0000 (22:17 +0100)] 
[3.9] bpo-45655: Add "relevant PEPs" section to typing documentation (GH-29297)

Backport of https://github.com/python/cpython/pull/29280 to the 3.9 branch.

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:14:37 +0000 (14:14 -0700)] 
bpo-45624: make test_graphlib not depend on the iteration order of sets (GH-29233) (GH-29292)

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-29289)
Miss Islington (bot) [Thu, 28 Oct 2021 20:25:37 +0000 (13:25 -0700)] 
bpo-45612: Add sqlite3 module docstring (GH-29224) (GH-29289)

(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-29286)
Miss Islington (bot) [Thu, 28 Oct 2021 20:17:20 +0000 (13:17 -0700)] 
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29286)

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 20:03:32 +0000 (13:03 -0700)] 
bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func (GH-29226) (GH-29284)

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:35 +0000 (12:57 -0700)] 
bpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219) (GH-29282)

(cherry picked from commit 88d8a1a340fb09c54d47f354f5fd7d4fbc5f0c78)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() (GH-29246)...
Miss Islington (bot) [Thu, 28 Oct 2021 19:23:19 +0000 (12:23 -0700)] 
bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() (GH-29246) (GH-29248)

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:47:53 +0000 (11:47 -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 ago[3.9] bpo-39679: Fix `singledispatchmethod` `classmethod`/`staticmethod` bug (GH...
Alex Waygood [Thu, 28 Oct 2021 16:02:04 +0000 (17:02 +0100)] 
[3.9] bpo-39679: Fix `singledispatchmethod` `classmethod`/`staticmethod` bug (GH-29087)

This commit fixes a bug in the 3.9 branch where stacking
`@functools.singledispatchmethod` on top of `@classmethod` or `@staticmethod`
caused an exception to be raised if the method was registered using
type-annotations rather than `@method.register(int)`. Tests for this scenario
were added to the 3.11 and 3.10 branches in #29034 and #29072; this commit
also backports those tests to the 3.9 branch.

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-44904: Fix classmethod property bug in doctest module (GH-28838)
Miss Islington (bot) [Thu, 28 Oct 2021 08:13:45 +0000 (01:13 -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 22:00:18 +0000 (15:00 -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 ago[3.9] bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH...
Ned Deily [Wed, 27 Oct 2021 15:04:38 +0000 (11:04 -0400)] 
[3.9] bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH-29230) (GH-29241)

Co-authored-by: Maciej Olko <maciej.olko@yougov.com>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161)
Miss Islington (bot) [Fri, 22 Oct 2021 18:29:52 +0000 (11:29 -0700)] 
bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161)

(cherry picked from commit f6e8b80d20159596cf641305bad3a833bedd2f4f)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-44959: Add fallback to extension modules with '.sl' suffix on HP-UX (GH-27857)
Miss Islington (bot) [Fri, 22 Oct 2021 11:08:50 +0000 (04:08 -0700)] 
bpo-44959: Add fallback to extension modules with '.sl' suffix on HP-UX (GH-27857)

(cherry picked from commit 2396fa6537d79554ac694dbd2b0b30eeb3476c80)

Co-authored-by: Florin Spătar <florin.spatar@gmail.com>
4 years agobpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127)
Miss Islington (bot) [Fri, 22 Oct 2021 04:48:44 +0000 (21:48 -0700)] 
bpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127)

Raise RLIMIT_NOFILE in test.libregrtest.

On macOS the default is often too low for our testsuite to succeed.

Co-authored by reviewer: Victor Stinner
(cherry picked from commit 843b890334ca30cf6af27dffe29cecd06b49f7d9)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agobpo-44344: Document that pow can return a complex number for non-complex inputs....
Miss Islington (bot) [Thu, 21 Oct 2021 22:08:36 +0000 (15:08 -0700)] 
bpo-44344: Document that pow can return a complex number for non-complex inputs. (GH-27853) (GH-29134)

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

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agobpo-41983: add availability info to socket docs (GH-27519) (GH-29137)
Miss Islington (bot) [Thu, 21 Oct 2021 22:07:38 +0000 (15:07 -0700)] 
bpo-41983: add availability info to socket docs (GH-27519) (GH-29137)

* add availability info to AF_PACKET section
* add availability for AF_QIPCRTR as well

(cherry picked from commit 51375388bee7287be2d942906b48c8cf3f691e8b)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agobpo-45160: Ttk optionmenu only set variable once (GH-28291) (GH-29132)
Miss Islington (bot) [Thu, 21 Oct 2021 20:59:20 +0000 (13:59 -0700)] 
bpo-45160: Ttk optionmenu only set variable once (GH-28291) (GH-29132)

(cherry picked from commit add46f84769a7e6fafa50954f79b7c248231fa4e)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
4 years ago[3.9] bpo-44174: [Enum] add name-mangling reference (GH-29128)
Ethan Furman [Thu, 21 Oct 2021 18:32:18 +0000 (11:32 -0700)] 
[3.9] bpo-44174: [Enum] add name-mangling reference (GH-29128)

4 years agobpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105)...
Miss Islington (bot) [Thu, 21 Oct 2021 12:42:10 +0000 (05:42 -0700)] 
bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) (GH-29120)

(cherry picked from commit 5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c)

Co-authored-by: Thomas <thmsdnnr@gmail.com>
4 years ago[3.9] bpo-42517: [ENUM] update docs for changes coming in 3.11 (GH-29113)
Ethan Furman [Wed, 20 Oct 2021 23:11:47 +0000 (16:11 -0700)] 
[3.9] bpo-42517: [ENUM] update docs for changes coming in 3.11 (GH-29113)

4 years agobpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str...
Miss Islington (bot) [Wed, 20 Oct 2021 21:25:10 +0000 (14:25 -0700)] 
bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323) (GH-29112)

An object implementing the os.PathLike protocol can represent a file
system path as a str or bytes object.
Therefore, _infer_return_type function should infer os.PathLike[str]
object as str type and os.PathLike[bytes] object as bytes type.
(cherry picked from commit 6270d3eeaf17b50abc4f8f4d97790d66179638e4)

Co-authored-by: Kyungmin Lee <rekyungmin@gmail.com>
4 years agobpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094...
Miss Islington (bot) [Wed, 20 Oct 2021 18:50:28 +0000 (11:50 -0700)] 
bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) (GH-29105)

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

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100)
Miss Islington (bot) [Wed, 20 Oct 2021 17:45:06 +0000 (10:45 -0700)] 
bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100)

(cherry picked from commit d2cd5eef0c3fc0431bfe3fc24b4c020ebfcf8aad)

Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
4 years agobpo-45229: Make doctest tests discoverable (GH-28986) (GH-29096)
Miss Islington (bot) [Wed, 20 Oct 2021 16:52:41 +0000 (09:52 -0700)] 
bpo-45229: Make doctest tests discoverable (GH-28986) (GH-29096)

(cherry picked from commit 8d6740f489fca67a44de165d29d9e0ad86285779)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.9] bpo-45494: Fix parser crash when reporting errors involving invalid continuatio...
Łukasz Langa [Wed, 20 Oct 2021 16:51:13 +0000 (18:51 +0200)] 
[3.9] bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993) (#29071)

There are two errors that this commit fixes:

* The parser was not correctly computing the offset and the string
  source for E_LINECONT errors due to the incorrect usage of strtok().
* The parser was not correctly unwinding the call stack when a tokenizer
  exception happened in rules involving optionals ('?', [...]) as we
  always make them return valid results by using the comma operator. We
  need to check first if we don't have an error before continuing..
(cherry picked from commit a106343f632a99c8ebb0136fa140cf189b4a6a57)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
NOTE: unlike the cherry-picked original, this commit points at a crazy location
due to a bug in the tokenizer that required a big refactor in 3.10 to fix.
We are leaving as-is for 3.9.

4 years agoCleanup a couple of comments left on PR 28775 post-merge. (GH-29079)
Miss Islington (bot) [Wed, 20 Oct 2021 16:50:27 +0000 (09:50 -0700)] 
Cleanup a couple of comments left on PR 28775 post-merge. (GH-29079)

(cherry picked from commit 1dfac27dffbe771f9d88bd1726f7362ce0341437)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agobpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077) (GH-29081)
Miss Islington (bot) [Wed, 20 Oct 2021 13:50:31 +0000 (06:50 -0700)] 
bpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077) (GH-29081)

Since v8.6.11, a few configuration options seem to accept an empty value
where they did not previously; particularly the `type` of a `Menu`
widget, and the `compound` of any ttk widget with a label.  Providing an
explicit expected error message to `checkEnumParam` bypasses the check
of an empty value, which no longer raises `TclError`.
(cherry picked from commit 4fe454c6f54b0948af67b53af6c2f35af6377e69)

Co-authored-by: Zachary Ware <zach@python.org>
4 years ago[3.9] bpo-45500: Rewrite test_dbm (GH-29002) (GH-29074)
Łukasz Langa [Wed, 20 Oct 2021 08:06:38 +0000 (10:06 +0200)] 
[3.9] bpo-45500: Rewrite test_dbm (GH-29002) (GH-29074)

* Generate test classes at import time. It allows to filter them when
  run with unittest. E.g: "./python -m unittest test.test_dbm.TestCase_gnu -v".
* Create a database class in a new directory which will be removed after
  test. It guarantees that all created files and directories be removed
  and will not conflict with other dbm tests.
* Restore dbm._defaultmod after tests. Previously it was set to the last
  dbm module (dbm.dumb) which affected other tests.
* Enable the whichdb test for dbm.dumb.
* Move test_keys to the correct test class. It does not test whichdb().
* Remove some outdated code and comments..
(cherry picked from commit 975b94b9de969777218e96a9950c1dab2dab65a0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.9] bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047...
Łukasz Langa [Tue, 19 Oct 2021 18:50:09 +0000 (20:50 +0200)] 
[3.9] bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) (GH-29068)

Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
(cherry picked from commit 7bafa0cf586227987d3d662264d491e3780024b7)

Co-authored-by: Filipe Laíns <lains@riseup.net>
4 years agobpo-45515: Add zoneinfo to the datetime documentation (GH-29038) (GH-29066)
Miss Islington (bot) [Tue, 19 Oct 2021 18:35:56 +0000 (11:35 -0700)] 
bpo-45515: Add zoneinfo to the datetime documentation (GH-29038) (GH-29066)

We should have done this way back when 3.9 was released, but it fell off
the radar.

Co-authored-by: Paul Ganssle <git@m.ganssle.io>
(cherry picked from commit 8e40ca127fa92d6113617c80710e0a077977a84d)

4 years agoImprove multiserver queue recipe (GH-29012) (GH-29014)
Miss Islington (bot) [Mon, 18 Oct 2021 05:24:51 +0000 (22:24 -0700)] 
Improve multiserver queue recipe (GH-29012) (GH-29014)

4 years agobpo-45229: Make test_http_cookiejar discoverable (GH-29004)
Miss Islington (bot) [Sun, 17 Oct 2021 16:46:55 +0000 (09:46 -0700)] 
bpo-45229: Make test_http_cookiejar discoverable (GH-29004)

(cherry picked from commit b3f0ceae919c1627094ff628c87184684a5cedd6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.9]bpo-45463: Clarify that global statements allows multiple names (GH-28851) ...
Miss Islington (bot) [Sat, 16 Oct 2021 14:01:14 +0000 (07:01 -0700)] 
[3.9]bpo-45463: Clarify that global statements allows multiple names (GH-28851) (GH-28990)

The global statement allows specifying a list of identifiers
(https://docs.python.org/3/reference/simple_stmts.htmlGH-the-global-statement).

The "Execution model" chapter described the global statement as if it
only allowed one single name. Pluralize "name" in the appropriate places.
(cherry picked from commit 4ecd119b007cb766b8bede2dc78b70d29cd932dd)

Co-authored-by: Luca Chiodini <luca@chiodini.org>
Co-authored-by: Luca Chiodini <luca@chiodini.org>
4 years agobpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec...
Serhiy Storchaka [Thu, 14 Oct 2021 18:23:52 +0000 (21:23 +0300)] 
bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28953)

They support now splitting escape sequences between input chunks.

Add the third parameter "final" in codecs.raw_unicode_escape_decode().
It is True by default to match the former behavior.

(cherry picked from commit 39aa98346d5dd8ac591a7cafb467af21c53f1e5d)

4 years ago[3.9] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape"...
Serhiy Storchaka [Thu, 14 Oct 2021 17:03:29 +0000 (20:03 +0300)] 
[3.9] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) (GH-28945)

They support now splitting escape sequences between input chunks.

Add the third parameter "final" in codecs.unicode_escape_decode().
It is True by default to match the former behavior.
(cherry picked from commit c96d1546b11b4c282a7e21737cb1f5d16349656d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agono-issue: Make silence about warning '_POSIX_C_SOURCE redefined' (GH-28948)
Miss Islington (bot) [Thu, 14 Oct 2021 16:36:19 +0000 (09:36 -0700)] 
no-issue: Make silence about  warning '_POSIX_C_SOURCE redefined' (GH-28948)

(cherry picked from commit d413c503636cde2a6ab0ada25dccb0134633a8e6)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years ago[3.9] bpo-24444: fix an error in argparse help when help for an option is blank ...
Miss Islington (bot) [Wed, 13 Oct 2021 20:36:05 +0000 (13:36 -0700)] 
[3.9] bpo-24444: fix an error in argparse help when help for an option is blank (GH-28050) (GH-28932)

(cherry picked from commit 6fafc25aea8689048314b5bf7a9bb986bb1ce238)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (GH-28765) (GH...
Miss Islington (bot) [Wed, 13 Oct 2021 18:00:05 +0000 (11:00 -0700)] 
bpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (GH-28765) (GH-28935)

At import time, the xmlrpc.client module uses different date formats to
test strftime so it can format years with 4 digits consistently.
Depending on the underlying C library and its strftime implementation
some of these calls can result in ValueErrors, blocking the
xmlrpc.client module from being imported.

This commit changes the behavior of this bit of code to react to
ValueError exceptions, treating the format that caused them as an
non-viable option.
(cherry picked from commit 1c831353816ff699b54e804047a7242a09e98f5b)

Co-authored-by: rtobar <rtobarc@gmail.com>
4 years ago[3.9] bpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28929)
Łukasz Langa [Wed, 13 Oct 2021 17:08:44 +0000 (19:08 +0200)] 
[3.9] bpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28929)

(cherry picked from commit f59ed3c310a7ceebf2a56a84ea969a7f75d95b64)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) (GH-28928)
Miss Islington (bot) [Wed, 13 Oct 2021 16:58:37 +0000 (09:58 -0700)] 
bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) (GH-28928)

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

Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
4 years agobpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)
Miss Islington (bot) [Wed, 13 Oct 2021 05:40:18 +0000 (22:40 -0700)] 
bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)

To avoid error, add either space or parentheses.
(cherry picked from commit 380c44087505d0d560f97e325028f27393551164)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.9] bpo-45405: Prevent ``internal configure error`` when running ``configure``...
Miss Islington (bot) [Wed, 13 Oct 2021 00:35:59 +0000 (17:35 -0700)] 
[3.9] bpo-45405: Prevent ``internal configure error`` when running ``configure``  with recent versions of non-Apple clang. (GH-28845) (GH-28910)

Change the configure logic to function properly on macOS when the compiler
outputs a platform triplet for option --print-multiarch.

Co-authored-by: Ned Deily <nad@python.org>
(cherry picked from commit 9c4766772cda67648184f8ddba546a5fc0167f91)

Co-authored-by: David Bohman <debohman@gmail.com>
Automerge-Triggered-By: GH:ned-deily
4 years agoFix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)
Miss Islington (bot) [Tue, 12 Oct 2021 17:10:41 +0000 (10:10 -0700)] 
Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)

(cherry picked from commit f79f3b41c8c1360d4e0ae884a52d0a486974ca53)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoSlight correct grammar (GH-28860)
Miss Islington (bot) [Tue, 12 Oct 2021 17:01:26 +0000 (10:01 -0700)] 
Slight correct grammar (GH-28860)

(cherry picked from commit 1b11582f0e00f08833da6adc44030a8b1961989a)

Co-authored-by: nobodyatandnothing <91722596+nobodyatandnothing@users.noreply.github.com>
4 years agobpo-45441: Update some moved URLs in documentation (GH-28861)
Miss Islington (bot) [Tue, 12 Oct 2021 14:20:50 +0000 (07:20 -0700)] 
bpo-45441: Update some moved URLs in documentation (GH-28861)

(cherry picked from commit b37dc9b3bc9575adc039c6093c643b7ae5e917e1)

Co-authored-by: 180909 <wjh180909@gmail.com>
4 years agobpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28873)
Miss Islington (bot) [Tue, 12 Oct 2021 07:18:43 +0000 (00:18 -0700)] 
bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28873)

(cherry picked from commit 15188b115a2da815556053372c912a81a74be43b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28875)
Miss Islington (bot) [Tue, 12 Oct 2021 07:18:15 +0000 (00:18 -0700)] 
bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28875)

Document that the "standalone" parameter was added in Python 3.9.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit c7e81fcf9548ab6a0a4828d6f2db9ece9d204826)

Co-authored-by: Jens Diemer <github.com@jensdiemer.de>
4 years agobpo-45351, asyncio: Enhance echo server example, print all addresses (GH-28828)
Miss Islington (bot) [Mon, 11 Oct 2021 19:34:51 +0000 (12:34 -0700)] 
bpo-45351, asyncio: Enhance echo server example, print all addresses (GH-28828)

(cherry picked from commit 659812b451aefe1f0e5f83540296519a5fb8f313)

Co-authored-by: Olaf van der Spek <olafvdspek@gmail.com>
4 years agoHandle error when PyUnicode_GetLength returns a negative value. (GH-28859)
Miss Islington (bot) [Mon, 11 Oct 2021 11:40:57 +0000 (04:40 -0700)] 
Handle error when PyUnicode_GetLength returns a negative value. (GH-28859)

(cherry picked from commit 560a79f94e94de66a18f2a5e4194c2fe51e2adf1)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years agobpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822...
Miss Islington (bot) [Mon, 11 Oct 2021 10:01:09 +0000 (03:01 -0700)] 
bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822) (#28866)

…iles.

Also changed some historical return values from 1 -> True and 0 -> False.
(cherry picked from commit 62a667784ba7b84611ebd50fa8a1a464cde32235)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
4 years agoFix a leak in _PyImport_LoadDynamicModuleWithSpec() after failing PySys_Audit() ...
Miss Islington (bot) [Mon, 11 Oct 2021 09:43:09 +0000 (02:43 -0700)] 
Fix a leak in _PyImport_LoadDynamicModuleWithSpec() after failing PySys_Audit() (GH-28862)

(cherry picked from commit 9883ca498d654a4792d530bd8d6d64fef4dc971c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoFix the "Finding all Adverbs" example (GH-21420) (#28840)
Miss Islington (bot) [Sun, 10 Oct 2021 21:43:58 +0000 (14:43 -0700)] 
Fix the "Finding all Adverbs" example (GH-21420) (#28840)

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

Co-authored-by: Rim Chatti <chattiriim@gmail.com>