]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
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>
4 years agobpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161)
Miss Islington (bot) [Fri, 22 Oct 2021 18:22:01 +0000 (11:22 -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-45562: Only show debug output from the parser in debug builds (GH-29140) (#29149) 29155/head
Miss Islington (bot) [Fri, 22 Oct 2021 10:14:47 +0000 (03:14 -0700)] 
bpo-45562: Only show debug output from the parser in debug builds (GH-29140) (#29149)

(cherry picked from commit 86dfb55d2e091cf633dbd7aabcd49d96fb1f9d81)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127)
Miss Islington (bot) [Fri, 22 Oct 2021 04:47:07 +0000 (21:47 -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:20 +0000 (15:08 -0700)] 
bpo-44344: Document that pow can return a complex number for non-complex inputs. (GH-27853) (GH-29135)

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-29136)
Miss Islington (bot) [Thu, 21 Oct 2021 22:07:07 +0000 (15:07 -0700)] 
bpo-41983: add availability info to socket docs (GH-27519) (GH-29136)

* 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-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129)
Miss Islington (bot) [Thu, 21 Oct 2021 21:16:59 +0000 (14:16 -0700)] 
bpo-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129)

(cherry picked from commit 087f089e5e04d5b132ffbff0576667d591f13219)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
4 years agobpo-45160: Ttk optionmenu only set variable once (GH-28291) (GH-29131)
Miss Islington (bot) [Thu, 21 Oct 2021 21:02:20 +0000 (14:02 -0700)] 
bpo-45160: Ttk optionmenu only set variable once (GH-28291) (GH-29131)

(cherry picked from commit add46f84769a7e6fafa50954f79b7c248231fa4e)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
4 years ago[3.10] bpo-44174: [Enum] add reference to name mangling (GH-29117)
Ethan Furman [Thu, 21 Oct 2021 16:50:29 +0000 (09:50 -0700)] 
[3.10] bpo-44174: [Enum] add reference to name mangling (GH-29117)

4 years agobpo-45521: Fix a bug in the obmalloc radix tree code. (GH-29051) (GH-29122)
Miss Islington (bot) [Thu, 21 Oct 2021 15:39:58 +0000 (08:39 -0700)] 
bpo-45521: Fix a bug in the obmalloc radix tree code. (GH-29051) (GH-29122)

MAP_BOT_LENGTH was incorrectly used to compute MAP_TOP_MASK instead of
MAP_TOP_LENGTH. On 64-bit machines, the error causes the tree to hold
46-bits of virtual addresses, rather than the intended 48-bits.
(cherry picked from commit 311910b31a4bd94dc79298388b7cb65ca5546438)

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

(cherry picked from commit 5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c)

Co-authored-by: Thomas <thmsdnnr@gmail.com>
4 years agobpo-44559: [Enum] restore fixes lost in 3.9 reversion (GH-29114)
Ethan Furman [Thu, 21 Oct 2021 02:48:37 +0000 (19:48 -0700)] 
bpo-44559: [Enum] restore fixes lost in 3.9 reversion (GH-29114)

- fix exception leaks
- re-add deprecation warnings

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:27:30 +0000 (14:27 -0700)] 
bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323) (GH-29111)

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:09 +0000 (11:50 -0700)] 
bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) (GH-29104)

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:41:35 +0000 (10:41 -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-29095)
Miss Islington (bot) [Wed, 20 Oct 2021 16:52:22 +0000 (09:52 -0700)] 
bpo-45229: Make doctest tests discoverable (GH-28986) (GH-29095)

(cherry picked from commit 8d6740f489fca67a44de165d29d9e0ad86285779)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoCleanup a couple of comments left on PR 28775 post-merge. (GH-29079)
Miss Islington (bot) [Wed, 20 Oct 2021 16:42:39 +0000 (09:42 -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-45536: Check OpenSSL APIs in configure (GH-29088)
Miss Islington (bot) [Wed, 20 Oct 2021 15:46:32 +0000 (08:46 -0700)] 
bpo-45536: Check OpenSSL APIs in configure (GH-29088)

(cherry picked from commit 81520fe677d15cc7f9af5140bc5f9eca8409ad90)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agoAdd PEPs 593 & 647 to list of PEPs at top of typing docs (GH-29097)
Miss Islington (bot) [Wed, 20 Oct 2021 15:36:34 +0000 (08:36 -0700)] 
Add PEPs 593 & 647 to list of PEPs at top of typing docs (GH-29097)

(cherry picked from commit d9e1dae35ac20acfeb2509b0dea4c3943693e79d)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years agobpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077) (GH-29080)
Miss Islington (bot) [Wed, 20 Oct 2021 14:30:57 +0000 (07:30 -0700)] 
bpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077) (GH-29080)

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 agobpo-39679: Add tests for classmethod/staticmethod singledispatchmethods (GH-29034...
Miss Islington (bot) [Tue, 19 Oct 2021 22:07:13 +0000 (15:07 -0700)] 
bpo-39679: Add tests for classmethod/staticmethod singledispatchmethods (GH-29034) (GH-29072)

In Python 3.8 and 3.9, 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)`. This was not caught by unit tests, however, as the
tests only tested the `@method.register(int)` way of registering additional
implementations. The bug is no longer present in Python 3.10+, but
`test_functools.py` is still lacking regression tests for these cases. This
commit adds these test cases.
(cherry picked from commit ad6d162e518963711d24c80f1b7d6079bd437584)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years ago[3.10] bpo-45494: Fix parser crash when reporting errors involving invalid continuati...
Łukasz Langa [Tue, 19 Oct 2021 20:31:18 +0000 (22:31 +0200)] 
[3.10] bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993) (GH-29070)

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>
4 years ago[3.10] bpo-45500: Rewrite test_dbm (GH-29002) (GH-29069)
Łukasz Langa [Tue, 19 Oct 2021 20:21:03 +0000 (22:21 +0200)] 
[3.10] bpo-45500: Rewrite test_dbm (GH-29002) (GH-29069)

* 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>
4 years agobpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) ...
Miss Islington (bot) [Tue, 19 Oct 2021 18:41:33 +0000 (11:41 -0700)] 
bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) (GH-29067)

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

4 years agobpo-45515: Add zoneinfo to the datetime documentation (GH-29038) (GH-29065)
Miss Islington (bot) [Tue, 19 Oct 2021 18:35:34 +0000 (11:35 -0700)] 
bpo-45515: Add zoneinfo to the datetime documentation (GH-29038) (GH-29065)

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 agobpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH...
Miss Islington (bot) [Tue, 19 Oct 2021 03:15:48 +0000 (20:15 -0700)] 
bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016)

This reverts commit d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e.
(cherry picked from commit 0a4c82ddd34a3578684b45b76f49cd289a08740b)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years ago[3.10] bpo-45221: Fix handling of LDFLAGS and CPPFLAGS options in setup.py (GH-29031...
Miss Islington (bot) [Mon, 18 Oct 2021 18:49:28 +0000 (11:49 -0700)] 
[3.10] bpo-45221: Fix handling of LDFLAGS and CPPFLAGS options in setup.py (GH-29031) (GH-29037)

(cherry picked from commit 6a533a423869e28d9086cf4d79029f59e9eec916)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Automerge-Triggered-By: GH:ned-deily
4 years agoImprove multiserver queue recipe (GH-29012) (GH-29013)
Miss Islington (bot) [Sun, 17 Oct 2021 23:43:10 +0000 (16:43 -0700)] 
Improve multiserver queue recipe (GH-29012) (GH-29013)

4 years agobpo-45229: Make test_http_cookiejar discoverable (GH-29004)
Miss Islington (bot) [Sun, 17 Oct 2021 16:47:03 +0000 (09:47 -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.10] bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) (GH...
Miss Islington (bot) [Sat, 16 Oct 2021 23:14:11 +0000 (16:14 -0700)] 
[3.10] bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) (GH-29001)

Since the keyword list is frozen, only compute it once per
session.  The colorizer already handles context keywords.
(cherry picked from commit 42ac06dcd234bdda989dcfe854ac5173337024c9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Automerge-Triggered-By: GH:terryjreedy
4 years agobpo-45249: Fix caret location when end_offset is set to 0 (GH-28855)
Miss Islington (bot) [Sat, 16 Oct 2021 17:51:05 +0000 (10:51 -0700)] 
bpo-45249: Fix caret location when end_offset is set to 0 (GH-28855)

(cherry picked from commit fe0d9e22a52a10c4cbe52254b51f2d4e74d83568)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years ago[3.10]bpo-45463: Clarify that global statements allows multiple names (GH-28851)...
Miss Islington (bot) [Sat, 16 Oct 2021 14:01:54 +0000 (07:01 -0700)] 
[3.10]bpo-45463: Clarify that global statements allows multiple names (GH-28851) (GH-28989)

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-45428: Fix reading filenames from stdin in py_compile (GH-28848)
Miss Islington (bot) [Fri, 15 Oct 2021 12:14:35 +0000 (05:14 -0700)] 
bpo-45428: Fix reading filenames from stdin in py_compile (GH-28848)

Strip trailing '\n'.
(cherry picked from commit 59a633d3e2071d65aa6638da5cf767a5c1310271)

Co-authored-by: Graham Inggs <ginggs@debian.org>
4 years ago[3.10] bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape...
Serhiy Storchaka [Thu, 14 Oct 2021 18:23:39 +0000 (21:23 +0300)] 
[3.10] bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28952)

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)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.10] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape...
Miss Islington (bot) [Thu, 14 Oct 2021 17:02:20 +0000 (10:02 -0700)] 
[3.10] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) (GH-28943)

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 ago[3.10] no-issue: Make silence about warning '_POSIX_C_SOURCE redefined' (GH-28948...
Dong-hee Na [Thu, 14 Oct 2021 16:35:53 +0000 (01:35 +0900)] 
[3.10] no-issue: Make silence about  warning '_POSIX_C_SOURCE redefined' (GH-28948) (GH-28951)

4 years agobpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (GH-28765) (GH...
Miss Islington (bot) [Wed, 13 Oct 2021 17:59:45 +0000 (10:59 -0700)] 
bpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (GH-28765) (GH-28934)

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 agobpo-24444: fix an error in argparse help when help for an option is blank (GH-28050...
Miss Islington (bot) [Wed, 13 Oct 2021 17:15:43 +0000 (10:15 -0700)] 
bpo-24444: fix an error in argparse help when help for an option is blank (GH-28050) (GH-28931)

(cherry picked from commit 6fafc25aea8689048314b5bf7a9bb986bb1ce238)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years ago[3.10] bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452...
Łukasz Langa [Wed, 13 Oct 2021 17:12:22 +0000 (19:12 +0200)] 
[3.10] bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) (GH-28930)

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

Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
4 years agobpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28927)
Miss Islington (bot) [Wed, 13 Oct 2021 16:59:04 +0000 (09:59 -0700)] 
bpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28927)

(cherry picked from commit f59ed3c310a7ceebf2a56a84ea969a7f75d95b64)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[docs] lexical_analysis: Expand the text on ``_`` (GH-28903) (GH-28933)
Miss Islington (bot) [Wed, 13 Oct 2021 16:58:06 +0000 (09:58 -0700)] 
[docs] lexical_analysis: Expand the text on ``_`` (GH-28903) (GH-28933)

Also:
* Expand the discussion into its own entry. (Even before this,
  text on ``_`` was longet than the text on ``_*``.)

* Briefly note the other common convention for `_`: naming unused
  variables.

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3dee0cb6217db326e844955a7f8b424c67990557)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 years agobpo-45453: Fix test_embed.StdPrinterTests (GH-28916) (GH-28917)
Miss Islington (bot) [Wed, 13 Oct 2021 10:24:47 +0000 (03:24 -0700)] 
bpo-45453: Fix test_embed.StdPrinterTests (GH-28916) (GH-28917)

test_embed.StdPrinterTests now always use the file descriptor 1 for
stdout, rather than using sys.__stdout__.fileno().
PyFile_NewStdPrinter() does crash if the argument is not 1 or 2.

Fix also a few pyflakes warnings: remove unused import and variables.
(cherry picked from commit 678433f25e0d08dad7edf72be8f0cf9420e4ed2c)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)
Miss Islington (bot) [Wed, 13 Oct 2021 05:37:51 +0000 (22:37 -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.10] bpo-45405: Prevent ``internal configure error`` when running ``configure`...
Miss Islington (bot) [Wed, 13 Oct 2021 00:31:32 +0000 (17:31 -0700)] 
[3.10] bpo-45405: Prevent ``internal configure error`` when running ``configure``  with recent versions of non-Apple clang. (GH-28845) (GH-28911)

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:59 +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:11 +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:43 +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-28872)
Miss Islington (bot) [Tue, 12 Oct 2021 07:19:09 +0000 (00:19 -0700)] 
bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28872)

(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-28874)
Miss Islington (bot) [Tue, 12 Oct 2021 07:17:53 +0000 (00:17 -0700)] 
bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28874)

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:47 +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:43 +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:12 +0000 (03:01 -0700)] 
bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822) (#28867)

…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:22:29 +0000 (02:22 -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) (#28839)
Miss Islington (bot) [Sun, 10 Oct 2021 21:43:38 +0000 (14:43 -0700)] 
Fix the "Finding all Adverbs" example (GH-21420) (#28839)

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

Co-authored-by: Rim Chatti <chattiriim@gmail.com>
4 years agobpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850)
Miss Islington (bot) [Sun, 10 Oct 2021 16:25:14 +0000 (09:25 -0700)] 
bpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850)

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

Co-authored-by: Joongi Kim <joongi@lablup.com>
4 years agoFix class pattern docs to refer to class patterns (GH-28849)
Miss Islington (bot) [Sun, 10 Oct 2021 14:35:23 +0000 (07:35 -0700)] 
Fix class pattern docs to refer to class patterns (GH-28849)

(cherry picked from commit 0bcc5ade9bff086a0b24d71307fae0a891f4efd2)

Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
4 years ago[3.10] bpo-45419: Fix interfaces on DegenerateFiles.Path (GH-28844)
Jason R. Coombs [Sun, 10 Oct 2021 14:23:06 +0000 (10:23 -0400)] 
[3.10] bpo-45419: Fix interfaces on DegenerateFiles.Path (GH-28844)

4 years agobpo-45353: Remind sys.modules users to copy when iterating. (GH-28842)
Miss Islington (bot) [Sat, 9 Oct 2021 19:54:20 +0000 (12:54 -0700)] 
bpo-45353: Remind sys.modules users to copy when iterating. (GH-28842)

This is true of all dictionaries in Python, but this one tends to
catch people off guard as they don't realize when sys.modules might
change out from underneath them as a hidden side effect of their
code.  Copying it first avoids the RuntimeError.  An example when
this happens in single threaded code are codecs being loaded which
are an implicit time of use import that most need not think about.
(cherry picked from commit 3d1ca867ed0e3ae343166806f8ddd9739e568ab4)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agoFix dataclassses spelling (GH-28837) (GH-28841)
Miss Islington (bot) [Sat, 9 Oct 2021 19:50:45 +0000 (12:50 -0700)] 
Fix dataclassses spelling (GH-28837) (GH-28841)

(cherry picked from commit 5b4a7675bcfc6368aff955f4a6231579718f5dad)

Co-authored-by: Landon Yarrington <33426811+jly36963@users.noreply.github.com>
Co-authored-by: Landon Yarrington <33426811+jly36963@users.noreply.github.com>
4 years ago[3.10] bpo-20028: Keep original exception when PyUnicode_GetLength return -1 (GH...
Dong-hee Na [Sat, 9 Oct 2021 16:13:21 +0000 (01:13 +0900)] 
[3.10] bpo-20028: Keep original exception when PyUnicode_GetLength return -1 (GH-28832) (GH-28834)

4 years agobpo-20028: Improve error message of csv.Dialect when initializing (GH-28705)
Miss Islington (bot) [Sat, 9 Oct 2021 15:35:33 +0000 (08:35 -0700)] 
bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705)

(cherry picked from commit 34bbc87b2ddbaf245fbed6443c3e620f80c6a843)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years agobpo-45262, asyncio: Fix cache of the running loop holder (GH-28796) (GH-28816)
Miss Islington (bot) [Fri, 8 Oct 2021 08:55:41 +0000 (01:55 -0700)] 
bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796) (GH-28816)

Prevent use-after-free of running loop holder via cache.
(cherry picked from commit 392a89835371baa0fc4bf79ae479abb80661f57d)

Co-authored-by: Matthias Reichl <github@hias.horus.com>
4 years ago[3.10] bpo-45408: Don't override previous tokenizer errors in the second parser pass...
Pablo Galindo Salgado [Thu, 7 Oct 2021 23:50:10 +0000 (00:50 +0100)] 
[3.10] bpo-45408: Don't override previous tokenizer errors in the second parser pass (GH-28812). (GH-28813)

(cherry picked from commit 0219017df7ec41839fd0d56a3076b5f09c58d313)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-45337: Use the realpath of the new executable when creating a venv on Windows...
Miss Islington (bot) [Thu, 7 Oct 2021 22:55:05 +0000 (15:55 -0700)] 
bpo-45337: Use the realpath of the new executable when creating a venv on Windows (GH-28663)

(cherry picked from commit 6811fdaec825bd6ab64e358a4b480108f5634d2d)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years ago[3.10] Remove draft notice on the 3.10 What's new document (GH-28806) (GH-28807)
Miss Islington (bot) [Thu, 7 Oct 2021 18:25:26 +0000 (11:25 -0700)] 
[3.10] Remove draft notice on the 3.10 What's new document (GH-28806) (GH-28807)

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 32485cecab0111a858055b7a60df3b9903b162e3)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years ago[3.10] Fix typos in the Lib directory (GH-28775) (GH-28804)
Christian Clauss [Thu, 7 Oct 2021 15:49:47 +0000 (17:49 +0200)] 
[3.10] Fix typos in the Lib directory (GH-28775) (GH-28804)

Fix typos in the Lib directory as identified by codespell.

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

Co-authored-by: Christian Clauss <cclauss@me.com>
4 years ago[3.10] Fix typos in the Tools directory (GH-28769) (GH-28801)
Christian Clauss [Thu, 7 Oct 2021 15:34:55 +0000 (17:34 +0200)] 
[3.10] Fix typos in the Tools directory (GH-28769) (GH-28801)

Like GH-28744 but for the Tools directory.

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 682aecfdeba481c876bfc9f3796c635bd5b5df50)

Co-authored-by: Christian Clauss <cclauss@me.com>
4 years ago[3.10] Fix typos in the Python directory (GH-28767) (GH-28799)
Christian Clauss [Thu, 7 Oct 2021 15:30:08 +0000 (17:30 +0200)] 
[3.10] Fix typos in the Python directory (GH-28767) (GH-28799)

(cherry picked from commit db693df3e112c5a61f2cbef63eedce3a36520ded)

4 years ago[3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794)
Christian Clauss [Thu, 7 Oct 2021 15:09:30 +0000 (17:09 +0200)] 
[3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794)

(cherry picked from commit 470145f572b53fe73518cda1eeacc56fec78c1b2)

4 years ago[3.10] Fix typos in the Objects directory (GH-28766) (GH-28797)
Christian Clauss [Thu, 7 Oct 2021 14:31:33 +0000 (16:31 +0200)] 
[3.10] Fix typos in the Objects directory (GH-28766) (GH-28797)

(cherry picked from commit 5f401f10400123afa9171548c432ea3fc37c0736)

Automerge-Triggered-By: GH:JulienPalard
4 years ago[3.10] Fix typos in the Include directory (GH-28745) (GH-28789)
Christian Clauss [Thu, 7 Oct 2021 13:00:23 +0000 (15:00 +0200)] 
[3.10] Fix typos in the Include directory (GH-28745) (GH-28789)

(cherry picked from commit 8e8f7522171ef82f2f5049940f815e00e38c6f42)

4 years agobpo-45400: Fix suggestion test of test_exceptions (GH-28783)
Miss Islington (bot) [Thu, 7 Oct 2021 12:11:38 +0000 (05:11 -0700)] 
bpo-45400: Fix suggestion test of test_exceptions (GH-28783)

Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals()
of test_exceptions if a directory name contains "a1" (like
"Python-3.11.0a1"): use a stricter regular expression.
(cherry picked from commit 4e605666b08b8f863cbbbdaa34bb06988e648d26)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years ago[3.10] Fix typo in whatsnew 3.10.rst (GH-26854) (GH-28782)
Miss Islington (bot) [Thu, 7 Oct 2021 09:26:12 +0000 (02:26 -0700)] 
[3.10] Fix typo in whatsnew 3.10.rst (GH-26854) (GH-28782)

Thanks for the fix @wiggin15 .
(cherry picked from commit 599c07006a636b0a6904008534118a9ba3daf726)

Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
Automerge-Triggered-By: GH:JulienPalard