]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.11] gh-107801: Improve the accuracy of io.IOBase.seek docs (#108268) (#108656)
Erlend E. Aasland [Tue, 29 Aug 2023 19:57:49 +0000 (21:57 +0200)] 
[3.11] gh-107801: Improve the accuracy of io.IOBase.seek docs (#108268) (#108656)

(cherry picked from commit 8178a88bd81edae87d6974483e4de9b32e808797)

- Add param docstrings
- Link to os.SEEK_* constants
- Mention the return value in the initial paragraph

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] Use non alternate name for Kyiv (GH-108533) (GH-108641)
Miss Islington (bot) [Tue, 29 Aug 2023 15:47:54 +0000 (08:47 -0700)] 
[3.11] Use non alternate name for Kyiv (GH-108533) (GH-108641)

tzdata provides Kiev as an alternative to Kyiv:

https://sources.debian.org/src/tzdata/2023c-10/backward/?hl=314GH-L314

But Debian moved it to the tzdata-legacy package breaking the test:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050530

This patch switches to the name provided by tzdata.
(cherry picked from commit 7659128b9d7a30ddbcb063bc12e2ddb0f1f119e0)

Co-authored-by: Jochen Sprickerhof <github@jochen.sprickerhof.de>
2 years ago[3.11] gh-108558: Improve sqlite3 row factory tests (GH-108578) (#108616)
Miss Islington (bot) [Tue, 29 Aug 2023 09:47:27 +0000 (02:47 -0700)] 
[3.11] gh-108558: Improve sqlite3 row factory tests (GH-108578) (#108616)

Add test_sqlite_row_keys() to explicitly test sqlite3.Row.keys().

Cleanups:
- Reduce test noise by converting docstrings to regular comments
- Reduce boilerplate code by adding a setUp() method to RowFactoryTests

(cherry picked from commit 6eaddc10e972273c1aed8b88c538e65e4773496e)

Co-authored-by: Edward Schauman-Haigh <142528725+EddInSverige@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.11] Fix misc doc typos (GH-108592) (#108613)
Alex Waygood [Tue, 29 Aug 2023 08:56:14 +0000 (09:56 +0100)] 
[3.11] Fix misc doc typos (GH-108592) (#108613)

(cherry picked from commit 88f1c5b)

Co-authored-by: xzmeng <aumo@foxmail.com>
2 years ago[3.11] gh-105821: Use a raw f-string in test_httpservers.py (GH-105822) (#108576)
Miss Islington (bot) [Mon, 28 Aug 2023 17:44:13 +0000 (10:44 -0700)] 
[3.11] gh-105821: Use a raw f-string in test_httpservers.py (GH-105822) (#108576)

gh-105821: Use a raw f-string in test_httpservers.py (GH-105822)

Use a raw f-string in test_httpservers.py
(cherry picked from commit 09ce8c3b48f940eb8865330f029b8069854c3106)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 years ago[3.11] gh-64662: Fix virtual table support in sqlite3.Connection.iterdump (#108340...
Erlend E. Aasland [Mon, 28 Aug 2023 13:09:33 +0000 (15:09 +0200)] 
[3.11] gh-64662: Fix virtual table support in sqlite3.Connection.iterdump (#108340) (#108564)

(cherry picked from commit d0160c7c22c8dff0a61c49b5304244df6e36465e)

Co-authored-by: Aviv Palivoda <palaviv@gmail.com>
2 years ago[3.11] gh-108550: Speed up sqlite3 tests (#108551) (#108567)
Erlend E. Aasland [Mon, 28 Aug 2023 13:09:10 +0000 (15:09 +0200)] 
[3.11] gh-108550: Speed up sqlite3 tests (#108551) (#108567)

Disable the busy handler for all concurrency tests; we have full
control over the order of the SQLite C API calls, so we can safely
do this.

test_sqlite3.test_transactions now completes ~10 times faster than before.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] Fix typo in typing docs: Remove redundant backtick (GH-108559) (#108561)
Miss Islington (bot) [Mon, 28 Aug 2023 11:28:19 +0000 (04:28 -0700)] 
[3.11] Fix typo in typing docs: Remove redundant backtick (GH-108559) (#108561)

Fix typo in typing docs: Remove redundant backtick (GH-108559)
(cherry picked from commit 72b615ab015ccff8a92e22c5b5f97fa8aca3ba1f)

Co-authored-by: nikkie <takuyafjp+develop@gmail.com>
2 years ago[3.11] gh-107801: Document io.TextIOWrapper.tell (#108265) (#108548)
Erlend E. Aasland [Sun, 27 Aug 2023 21:22:43 +0000 (23:22 +0200)] 
[3.11] gh-107801: Document io.TextIOWrapper.tell (#108265) (#108548)

(cherry picked from commit 38afa4af9bfc8297a5ee270c37f3f120a04297ea)

2 years ago[3.11] gh-108542: Fix incorrect module name in NEWS entry for gh-105475 (#108543...
Erlend E. Aasland [Sun, 27 Aug 2023 20:07:56 +0000 (22:07 +0200)] 
[3.11] gh-108542: Fix incorrect module name in NEWS entry for gh-105475 (#108543) (#108544)

(cherry picked from commit a429eafef2d86eafc007ac19682e7d372c32da31)

2 years ago[3.11] Fix grammatical error in stringprep documentation (GH-108414) (#108538)
Miss Islington (bot) [Sun, 27 Aug 2023 13:12:51 +0000 (06:12 -0700)] 
[3.11] Fix grammatical error in stringprep documentation (GH-108414) (#108538)

Fix grammatical error in stringprep documentation (GH-108414)

Remove the word "them", which didn't make grammatical sense.

(cherry picked from commit cd0a8aece974330ef44ffe4e0f2e8aa632e98438)

Co-authored-by: Matthew James Kraai <kraai@ftbfs.org>
Co-authored-by: KRAAI, MATTHEW [VISUS] <mkraai@its.jnj.com>
2 years ago[3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524)
Serhiy Storchaka [Sun, 27 Aug 2023 12:18:58 +0000 (15:18 +0300)] 
[3.11] gh-107913: Fix possible losses of OSError error codes (GH-107930) (GH-108524)

Functions like PyErr_SetFromErrno() and SetFromWindowsErr() should be
called immediately after using the C API which sets errno or the Windows
error code.
(cherry picked from commit 2b15536fa94d07e9e286826c23507402313ec7f4)

2 years ago[3.11] gh-105052:update timeit function's description (GH-105060) (#108535)
Miss Islington (bot) [Sun, 27 Aug 2023 07:57:32 +0000 (00:57 -0700)] 
[3.11] gh-105052:update timeit function's description (GH-105060) (#108535)

---------
Co-authored-by: Terry Jan Reedy tjreedy@udel.edu
Co-authored-by: R <cherrymelon@foxmail.com>
(cherry picked from commit 7096a2be33619dc02c06a6dc30aac414a9eba462)

2 years ago[3.11] gh-107453: Document errno.{ECANCELED,EOWNERDEAD,ENOTRECOVERABLE,ENOTSUP} ...
Miss Islington (bot) [Sun, 27 Aug 2023 05:33:23 +0000 (22:33 -0700)] 
[3.11] gh-107453: Document errno.{ECANCELED,EOWNERDEAD,ENOTRECOVERABLE,ENOTSUP} (GH-107486) (#108530)

Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] gh-102211: Document `re.{Pattern,Match}`’s existence (GH-102212) (#108491)
Miss Islington (bot) [Fri, 25 Aug 2023 17:28:56 +0000 (10:28 -0700)] 
[3.11] gh-102211: Document `re.{Pattern,Match}`’s existence (GH-102212) (#108491)

Co-authored-by: Philipp A <flying-sheep@web.de>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.11] [3.12] gh-108314: PyDict_GetItemString() mentions UTF-8 (GH-108448) (#108489)
Miss Islington (bot) [Fri, 25 Aug 2023 16:48:25 +0000 (09:48 -0700)] 
[3.11] [3.12] gh-108314: PyDict_GetItemString() mentions UTF-8 (GH-108448) (#108489)

[3.12] gh-108314: PyDict_GetItemString() mentions UTF-8 (GH-108448)

gh-108314: PyDict_GetItemString() mentions UTF-8

PyDict_GetItemString(), PyDict_SetItemString() and
PyDict_DelItemString() expects a UTF-8 encoding string for the key.
(cherry picked from commit 9a225d7d5b0530ee73fa00d4816897997a9eb733)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.11] Datamodel: Add headings to the standard type hierarchy (GH-108146) (#108484)
Adam Turner [Fri, 25 Aug 2023 15:27:34 +0000 (16:27 +0100)] 
[3.11] Datamodel: Add headings to the standard type hierarchy (GH-108146) (#108484)

* [3.11] Datamodel: Add headings to the standard type hierarchy (GH-108146)

Dedent content according to the new layout..
(cherry picked from commit 2b7bff0655a4caf51cd1a9e5bf85b3b96dd031c9)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Fix indentation

2 years ago[3.11] gh-108418: Speed up bigmem compression tests in dry mode (GH-108419) (GH-108481)
Serhiy Storchaka [Fri, 25 Aug 2023 12:10:22 +0000 (15:10 +0300)] 
[3.11] gh-108418: Speed up bigmem compression tests in dry mode (GH-108419) (GH-108481)

Only generate and compress small amount of random data in dry run.
(cherry picked from commit 4ae3edf3008b70e20663143553a736d80ff3a501)

2 years ago[3.11] Docs: Datamodel: Merge "Notes on using __slots__" with the parent section...
Miss Islington (bot) [Fri, 25 Aug 2023 11:04:00 +0000 (04:04 -0700)] 
[3.11] Docs: Datamodel: Merge "Notes on using __slots__" with the parent section (GH-108400) (#108475)

(cherry picked from commit 7f5b1a06612bf1454232ac634ad4d2c845f77b37)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] GH-108202: Document ``calendar`` exceptions (GH-108398) (#108468)
Miss Islington (bot) [Fri, 25 Aug 2023 06:06:34 +0000 (23:06 -0700)] 
[3.11] GH-108202: Document ``calendar`` exceptions (GH-108398) (#108468)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agoPost 3.11.5
Pablo Galindo [Thu, 24 Aug 2023 19:31:59 +0000 (20:31 +0100)] 
Post 3.11.5

2 years agoPython 3.11.5 v3.11.5
Pablo Galindo [Thu, 24 Aug 2023 12:05:22 +0000 (13:05 +0100)] 
Python 3.11.5

2 years ago[3.11] gh-107432 Update Porting Python 2 Code to Python 3 how-to (GH-107434) (#108410)
Miss Islington (bot) [Thu, 24 Aug 2023 11:26:56 +0000 (04:26 -0700)] 
[3.11] gh-107432 Update Porting Python 2 Code to Python 3 how-to (GH-107434) (#108410)

https://docs.python.org/3/howto/pyporting.html was written for another time. In this patch:

- material that frames Python 3 as "new" is removed
- descriptions and directions have been trimmed
(cherry picked from commit 809ea7c4b6c2b818ae510f1f58e82b6b05ed4ef9)

Co-authored-by: Daniele Procida <daniele@vurt.org>
2 years ago[3.11] Revert "gh-46376: Return existing pointer when possible in ctypes (GH-107131...
Łukasz Langa [Thu, 24 Aug 2023 11:26:19 +0000 (13:26 +0200)] 
[3.11] Revert "gh-46376: Return existing pointer when possible in ctypes (GH-107131) (GH-107488)" (#108412)

This reverts commit 57f27e444175a8a5ffcd86971e06de61c1c38628.

The fix caused gh-107940. Until we have a bulletproof fix for that, the 3.11 backport needs to be reverted to make way for 3.11.5.

2 years ago[3.11] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370) (#108405)
Łukasz Langa [Thu, 24 Aug 2023 10:08:52 +0000 (12:08 +0200)] 
[3.11] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370) (#108405)

* In preauth tests of test_ssl, explicitly break reference cycles
  invoving SingleConnectionTestServerThread to make sure that the
  thread is deleted. Otherwise, the test marks the environment as
  altered because the threading module sees a "dangling thread"
  (SingleConnectionTestServerThread). This test leak was introduced
  by the test added for the fix of issue gh-108310.
* Use support.SHORT_TIMEOUT instead of hardcoded 1.0 or 2.0 seconds
  timeout.
* SingleConnectionTestServerThread.run() catchs TimeoutError
* Fix a race condition (missing synchronization) in
  test_preauth_data_to_tls_client(): the server now waits until the
  client connect() completed in call_after_accept().
* test_https_client_non_tls_response_ignored() calls server.join()
  explicitly.
* Replace "localhost" with server.listener.getsockname()[0].
(cherry picked from commit 592bacb6fc0833336c0453e818e9b95016e9fd47)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.11] gh-70766: Mention the object getstate caveat in 3.11 What's new. (GH-108379...
Miss Islington (bot) [Wed, 23 Aug 2023 22:10:27 +0000 (15:10 -0700)] 
[3.11] gh-70766: Mention the object getstate caveat in 3.11 What's new. (GH-108379) (#108385)

gh-70766: Mention the object getstate caveat in 3.11 What's new. (GH-108379)
(cherry picked from commit b6be18812c68fce5ab56c266dc5fc5a3cceb09c0)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.11] gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process...
Miss Islington (bot) [Wed, 23 Aug 2023 21:11:20 +0000 (14:11 -0700)] 
[3.11] gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process before serializing it (GH-107275) (#108378)

gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process before serializing it (GH-107275)

Ensure multiprocessing SemLock is valid for spawn Process before serializing it.

Creating a multiprocessing SemLock with a fork context, and then trying to pass it to a spawn-created Process, would segfault if not detected early.

---------

(cherry picked from commit 1700d34d314f5304a7a75363bda295a8c15c371f)

Co-authored-by: albanD <desmaison.alban@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
2 years ago[3.11] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344) (#108349)
Miss Islington (bot) [Wed, 23 Aug 2023 10:10:04 +0000 (03:10 -0700)] 
[3.11] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344) (#108349)

Explicitly break a reference cycle when SSLSocket._create() raises an
exception. Clear the variable storing the exception, since the
exception traceback contains the variables and so creates a reference
cycle.

This test leak was introduced by the test added for the fix of GH-108310.
(cherry picked from commit 64f99350351bc46e016b2286f36ba7cd669b79e3)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.11] gh-107136: Remove Plausible for docs metrics (GH-107856) (#108335)
Miss Islington (bot) [Wed, 23 Aug 2023 09:01:30 +0000 (02:01 -0700)] 
[3.11] gh-107136: Remove Plausible for docs metrics (GH-107856) (#108335)

(cherry picked from commit fc23f34cc9701949e6832eb32f26ea89f6622b82)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-108267: Dataclasses docs: Fix object.__setattr__ typo (GH-108355) (#108357)
Miss Islington (bot) [Wed, 23 Aug 2023 07:20:57 +0000 (00:20 -0700)] 
[3.11] gh-108267: Dataclasses docs: Fix object.__setattr__ typo (GH-108355) (#108357)

gh-108267: Dataclasses docs: Fix object.__setattr__ typo (GH-108355)

Fixed a sentence in dataclasses.rst

Changed "__setattr__" to "object.__setattr__" in a section that was specifically supposed to refer to the __setattr__ method of the object class. Also suppressed the link to the data model docs for __setattr__, since we're talking about a specific __setattr__ implementation, not __setattr__ methods in general.
(cherry picked from commit 79fdacc0059a3959074d2d9d054653eae1dcfe06)

Co-authored-by: FrozenBob <30644137+FrozenBob@users.noreply.github.com>
2 years ago[3.11] gh-105776: Fix test_cppext when CC contains -std=c11 option (#108343) (#108347)
Victor Stinner [Wed, 23 Aug 2023 03:47:41 +0000 (05:47 +0200)] 
[3.11] gh-105776: Fix test_cppext when CC contains -std=c11 option (#108343) (#108347)

gh-105776: Fix test_cppext when CC contains -std=c11 option (#108343)

Fix test_cppext when the C compiler command has the "-std=c11" option.
Remove "-std=" options from the compiler command.

(cherry picked from commit 9173b2bbe13aeccc075b571da05c653a2a91de1b)

2 years ago[3.11] gh-108303: Add Lib/test/test_cppext/ sub-directory (#108325) (#108336)
Victor Stinner [Wed, 23 Aug 2023 03:11:53 +0000 (05:11 +0200)] 
[3.11] gh-108303: Add Lib/test/test_cppext/ sub-directory (#108325) (#108336)

gh-108303: Add Lib/test/test_cppext/ sub-directory (#108325)

* Move test_cppext to its own directory
* Rename setup_testcppext.py to setup.py
* Rename _testcppext.cpp to extension.cpp
* The source (extension.cpp) is now also copied by the test.

(cherry picked from commit 21dda09600848ac280481f7c64f8d9516dc69bb2)

2 years ago[3.11] Docs: Add link to skip to datetime's format codes (GH-108027) (#108330)
Miss Islington (bot) [Tue, 22 Aug 2023 19:52:51 +0000 (12:52 -0700)] 
[3.11] Docs: Add link to skip to datetime's format codes (GH-108027) (#108330)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] Clarify how topics.py gets created. (GH-106121) (GH-106580)
Miss Islington (bot) [Tue, 22 Aug 2023 19:23:55 +0000 (12:23 -0700)] 
[3.11] Clarify how topics.py gets created. (GH-106121) (GH-106580)

When changing docs, it was easy to find text in topics.py, and I
wondered whether I was supposed to edit it.  Thankfully, the top of the
file says it's auto-generated, so I knew I didn't have to edit it. But I
didn't know what started the auto-generation process.

It's part of the release process, so I'll leave a note here for future
editors.
(cherry picked from commit dac1e364901d3668742e6eecc2ce63586330c11f)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 years ago[3.11] gh-107700: [Enum] Document that `EnumType` was added in 3.11 (GH-108260) ...
Miss Islington (bot) [Tue, 22 Aug 2023 18:33:26 +0000 (11:33 -0700)] 
[3.11] gh-107700: [Enum] Document that `EnumType` was added in 3.11 (GH-108260) (#108300)

(cherry picked from commit e8ef0bdd8c613a722bf7965bf1da912882141a52)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.11] gh-107298: Fix numerous ref errors and typos in the C API docs (GH-108258...
Serhiy Storchaka [Tue, 22 Aug 2023 18:33:07 +0000 (21:33 +0300)] 
[3.11] gh-107298: Fix numerous ref errors and typos in the C API docs (GH-108258) (#108290)

(cherry picked from commit d7202e4879bf4e7e00a69500ddcb3143864139b4)

2 years ago[3.11] gh-107298: Fix C API datetime documentation (GH-108034) (#108233)
Miss Islington (bot) [Tue, 22 Aug 2023 18:32:48 +0000 (11:32 -0700)] 
[3.11] gh-107298: Fix C API datetime documentation (GH-108034) (#108233)

(cherry picked from commit d63972e289e05b0d82e59f32f107312a8b3de7b5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] Resolve reference warnings in faq/gui.rst (GH-108147) (#108194)
Miss Islington (bot) [Tue, 22 Aug 2023 18:32:16 +0000 (11:32 -0700)] 
[3.11] Resolve reference warnings in faq/gui.rst (GH-108147) (#108194)

(cherry picked from commit 8f3d09bf5d16b508fece5420a22abe6f0c1f00b7)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-108310: Fix CVE-2023-40217: Check for & avoid the ssl pre-close flaw (...
Łukasz Langa [Tue, 22 Aug 2023 17:53:19 +0000 (19:53 +0200)] 
[3.11] gh-108310: Fix CVE-2023-40217: Check for & avoid the ssl pre-close flaw (#108317)

gh-108310: Fix CVE-2023-40217: Check for & avoid the ssl pre-close flaw

Instances of `ssl.SSLSocket` were vulnerable to a bypass of the TLS handshake
and included protections (like certificate verification) and treating sent
unencrypted data as if it were post-handshake TLS encrypted data.

The vulnerability is caused when a socket is connected, data is sent by the
malicious peer and stored in a buffer, and then the malicious peer closes the
socket within a small timing window before the other peers’ TLS handshake can
begin. After this sequence of events the closed socket will not immediately
attempt a TLS handshake due to not being connected but will also allow the
buffered data to be read as if a successful TLS handshake had occurred.

Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
2 years ago[3.11] gh-106016: Add Lib/test/test_module/ directory (GH-108293) (#108304)
Miss Islington (bot) [Tue, 22 Aug 2023 15:42:00 +0000 (08:42 -0700)] 
[3.11] gh-106016: Add Lib/test/test_module/ directory (GH-108293) (#108304)

gh-106016: Add Lib/test/test_module/ directory (GH-108293)

* Move Python scripts related to test_module to this new directory:
  good_getattr.py and bad_getattrX.py scripts.
* Move Lib/test/test_module.py to Lib/test/test_module/__init__.py.
(cherry picked from commit adfc118fdab66882599e01a84c22bd897055f3f1)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.11] gh-106242: Make ntpath.realpath errors consistent with abspath when there...
Miss Islington (bot) [Tue, 22 Aug 2023 14:35:16 +0000 (07:35 -0700)] 
[3.11] gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls (GH-108248)

gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls (GH-108248)

---------

(cherry picked from commit de33b5c662ea8d35d81ed857c6a39e34ab94c510)

Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.11] Docs: align the param spec of sqlite3.Connection methods with the implementati...
Miss Islington (bot) [Tue, 22 Aug 2023 13:28:38 +0000 (06:28 -0700)] 
[3.11] Docs: align the param spec of sqlite3.Connection methods with the implementation (GH-108285) (#108288)

- no parameters of create_aggregate() are positional-only
- all parameters of create_collation() are positional-only
(cherry picked from commit 893215a4e7f59eabb8ccdf188c4b9b1de5bd8966)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.11] Docs: move sphinx-lint to pre-commit (GH-105750) (#108276)
Hugo van Kemenade [Tue, 22 Aug 2023 12:18:39 +0000 (15:18 +0300)] 
[3.11] Docs: move sphinx-lint to pre-commit (GH-105750) (#108276)

2 years ago[3.11] Trim trailing whitespace and test on CI (GH-104275) (#108215)
Hugo van Kemenade [Tue, 22 Aug 2023 09:57:31 +0000 (12:57 +0300)] 
[3.11] Trim trailing whitespace and test on CI (GH-104275) (#108215)

2 years ago[3.11] gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846) (GH-108209)
Miss Islington (bot) [Tue, 22 Aug 2023 08:51:58 +0000 (01:51 -0700)] 
[3.11] gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846) (GH-108209)

gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846)

(cherry picked from commit acbd3f9c5c5f23e95267714e41236140d84fe962)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
2 years ago[3.11] gh-102507 Remove invisible pagebreak characters (GH-102531) (#108266)
Miss Islington (bot) [Tue, 22 Aug 2023 08:49:35 +0000 (01:49 -0700)] 
[3.11] gh-102507 Remove invisible pagebreak characters (GH-102531) (#108266)

gh-102507 Remove invisible pagebreak characters (GH-102531)
(cherry picked from commit b097925858c6975c73e989226cf278cc382c0416)

Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2 years ago[3.11] gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs (#107933) (...
Erlend E. Aasland [Tue, 22 Aug 2023 08:19:56 +0000 (10:19 +0200)] 
[3.11] gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs (#107933) (#108264)

(cherry picked from commit 7f87ebbc3f52680c939791f397b9a478edf0c8d4)

Clearly document the supported seek() operations:

- Rewind to the start of the stream
- Restore a previous stream position (given by tell())
- Fast-forward to the end of the stream

2 years ago[3.11] gh-108224: Fix asyncio doc inconsistency (GH-108230) (#108232)
Miss Islington (bot) [Mon, 21 Aug 2023 21:21:26 +0000 (14:21 -0700)] 
[3.11] gh-108224: Fix asyncio doc inconsistency (GH-108230) (#108232)

(Spawning subprocesses does not require the event loop to run in the main thread -- only signal handling does.)

(cherry picked from commit 1cc391d9e2ea24ca750005335507b52933fc0b52)

Co-authored-by: temach <tematibr@gmail.com>
2 years ago[3.11] gh-107298: Fix references to deprecated and removed PyUnicode C API (GH-108077...
Miss Islington (bot) [Mon, 21 Aug 2023 17:35:36 +0000 (10:35 -0700)] 
[3.11] gh-107298: Fix references to deprecated and removed PyUnicode C API (GH-108077) (GH-108226)

(cherry picked from commit db55383829ccd5ce80c551d60f26851346741fdf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485...
Miss Islington (bot) [Mon, 21 Aug 2023 15:16:59 +0000 (08:16 -0700)] 
[3.11] gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485) (GH-108208)

gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485)

In the stack call of: _init_read_gz()
```
_read, tarfile.py:548
read, tarfile.py:526
_init_read_gz, tarfile.py:491
```
a try;except exists that uses `self.exception`, so it needs to be set before
calling _init_read_gz().
(cherry picked from commit 37135d25e269ede92bc7da363bebfa574782e59a)

Co-authored-by: balmeida-nokia <83089745+balmeida-nokia@users.noreply.github.com>
2 years ago[3.11] gh-107916: Save the error code before decoding the filename in PyErr_SetFromEr...
Miss Islington (bot) [Mon, 21 Aug 2023 11:53:05 +0000 (04:53 -0700)] 
[3.11] gh-107916: Save the error code before decoding the filename in PyErr_SetFromErrnoWithFilename() etc (GH-107929) (GH-108206)

(cherry picked from commit 80bdebdd8593f007a2232ec04a7729bba6ebf12c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] Improve references in the tutorial (GH-108069) (GH-108204)
Serhiy Storchaka [Mon, 21 Aug 2023 10:53:36 +0000 (13:53 +0300)] 
[3.11] Improve references in the tutorial (GH-108069) (GH-108204)

* Use full qualified names for references (even if they do not work now,
  they will work in future).
* Silence references to examples.
(cherry picked from commit 622ddc41674c2566062af82f7b079aa01d2aae8c)

2 years ago[3.11] Docs: document 'manager' and '_log' attrs of logging.Logging (GH-108145) ...
Miss Islington (bot) [Mon, 21 Aug 2023 10:44:25 +0000 (03:44 -0700)] 
[3.11] Docs: document 'manager' and '_log' attrs of logging.Logging (GH-108145) (GH-108189)

(cherry picked from commit f904aa4e1f6943e5bd9a8a73cf762f063e6fa247)
Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.11] gh-105736: Sync pure python version of OrderedDict with the C version (GH...
Miss Islington (bot) [Mon, 21 Aug 2023 10:37:09 +0000 (03:37 -0700)] 
[3.11] gh-105736: Sync pure python version of OrderedDict with the C version (GH-108098) (GH-108201)

(cherry picked from commit 20cc90c0df3e368fe7cb63d958f0b17a78fa9d0a)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years ago[3.11] gh-107895: Fix test_asyncio.test_runners when run it in CPython's "development...
Miss Islington (bot) [Mon, 21 Aug 2023 08:36:37 +0000 (01:36 -0700)] 
[3.11] gh-107895: Fix test_asyncio.test_runners when run it in CPython's "development mode" (GH-108168) (GH-108197)

(cherry picked from commit 014a5b71e7538926ae1c03c8c5ea13c96e741be3)

Co-authored-by: Joon Hwan 김준환 <xncbf12@gmail.com>
2 years ago[3.11] Resolve reference warnings in faq/library.rst (GH-108149) (#108183)
Miss Islington (bot) [Sun, 20 Aug 2023 19:26:01 +0000 (12:26 -0700)] 
[3.11] Resolve reference warnings in faq/library.rst (GH-108149) (#108183)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] Resolve reference warnings in faq/design.rst (GH-108148) (#108181)
Adam Turner [Sun, 20 Aug 2023 18:56:14 +0000 (19:56 +0100)] 
[3.11] Resolve reference warnings in faq/design.rst (GH-108148) (#108181)

2 years ago[3.11] Docs: Fix Sphinx warnings in logging.rst (GH-108139) (#108175)
Erlend E. Aasland [Sun, 20 Aug 2023 16:40:57 +0000 (18:40 +0200)] 
[3.11] Docs: Fix Sphinx warnings in logging.rst (GH-108139) (#108175)

(cherry picked from commit c735e79afb62324624864e1943f84825249f58ed)

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2 years ago[3.11] Docs: Fix Sphinx warnings in license.rst (#108142) (#108176)
Erlend E. Aasland [Sun, 20 Aug 2023 16:27:44 +0000 (18:27 +0200)] 
[3.11] Docs: Fix Sphinx warnings in license.rst (#108142) (#108176)

(cherry picked by commit 4d4393139fae39db26dead33529b6ae0bafbfc58)

- Fix links to stdlib modules
- Silence links to external functions

2 years ago[3.11] Resolve reference warnings in faq/programming.rst (GH-108150) (#108171)
Miss Islington (bot) [Sun, 20 Aug 2023 14:01:24 +0000 (07:01 -0700)] 
[3.11] Resolve reference warnings in faq/programming.rst (GH-108150) (#108171)

Resolve reference warnings in faq/programming.rst (GH-108150)
(cherry picked from commit a390ec20f5a85b9c16e8708f117667783d08863c)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] Docs: Fix Sphinx warnings in sys.rst (GH-108106) (#108166)
Miss Islington (bot) [Sun, 20 Aug 2023 13:52:44 +0000 (06:52 -0700)] 
[3.11] Docs: Fix Sphinx warnings in sys.rst (GH-108106) (#108166)

Docs: Fix Sphinx warnings in sys.rst (GH-108106)

- Mark up named tuple attributes as attributes
- Remove links for external functions
- io.BufferedIOBase has no 'buffer' attribute;
  remove the link and mark up using :attr:`!buffer`
- (Re)format some tables as bullet lists:
  - sys._emscripten_info
  - sys.hash_info
  - sys.int_info
  - sys.thread_info
- In the paragraphs mentioning 'f_trace_lines' and 'f_trace_opcodes',
  add links to the frame objects reference.

(cherry picked from commit 29fa7afef94d74e18d97485c085d1ccf80c16ca3)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] gh-107659: Improve wording of the description of `ctypes.pointer` and `ctypes...
Miss Islington (bot) [Sun, 20 Aug 2023 11:05:24 +0000 (04:05 -0700)] 
[3.11] gh-107659: Improve wording of the description of `ctypes.pointer` and `ctypes.POINTER` (GH-107769) (#108164)

gh-107659: Improve wording of the description of `ctypes.pointer` and `ctypes.POINTER` (GH-107769)
(cherry picked from commit beffb30dc7a07044f4198245d049ddda1f4b24db)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 years ago[3.11] gh-107619: Extend functools LRU cache docs with generators and async functions...
Miss Islington (bot) [Sun, 20 Aug 2023 10:39:43 +0000 (03:39 -0700)] 
[3.11] gh-107619: Extend functools LRU cache docs with generators and async functions (GH-107934) (#108162)

gh-107619: Extend functools LRU cache docs with generators and async functions (GH-107934)
(cherry picked from commit 1a713eac47b26899044752f02cbfcb4d628dda2a)

Co-authored-by: Hadházy Tamás <85063808+Hels15@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 years ago[3.11] gh-107980: fix doc role for asyncio.timeouts (GH-108126) (#108153)
Miss Islington (bot) [Sun, 20 Aug 2023 10:12:15 +0000 (03:12 -0700)] 
[3.11] gh-107980: fix doc role for asyncio.timeouts (GH-108126) (#108153)

gh-107980: fix doc role for asyncio.timeouts (GH-108126)
(cherry picked from commit a47c13cae5b32e6f3d7532cc6dbb4e1ac31219de)

Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
2 years ago[3.11] Fix misspellings in sysconfig docs (GH-108156) (#108158)
Miss Islington (bot) [Sun, 20 Aug 2023 08:20:57 +0000 (01:20 -0700)] 
[3.11] Fix misspellings in sysconfig docs (GH-108156) (#108158)

Fix misspellings in sysconfig docs (GH-108156)
(cherry picked from commit 1dc0c58d2b17819720d184ec0287a8a9b1dc347e)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2 years ago[3.11] gh-107565: Update macOS installer to use OpenSSL 3.0.10. (GH-107897) (#108122)
Miss Islington (bot) [Sat, 19 Aug 2023 23:02:12 +0000 (16:02 -0700)] 
[3.11] gh-107565: Update macOS installer to use OpenSSL 3.0.10. (GH-107897) (#108122)

2 years ago[3.11] Docs: Remove links to external C functions and macros in os.rst (GH-108138...
Miss Islington (bot) [Sat, 19 Aug 2023 17:11:29 +0000 (10:11 -0700)] 
[3.11] Docs: Remove links to external C functions and macros in os.rst (GH-108138) (#108144)

(cherry picked from commit c31c61c04e55ef431615ffec959d84ac73a3db81)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] gh-107801: Improve the accuracy of os.lseek docs (#107935) (#108137)
Erlend E. Aasland [Sat, 19 Aug 2023 13:06:36 +0000 (15:06 +0200)] 
[3.11] gh-107801: Improve the accuracy of os.lseek docs (#107935) (#108137)

- name the last parameter *whence*, like it is for seek() methods on
  file objects
- add param docstrings
- structure the valid *whence* params

(cherry picked from commit dd4442c8f597af1ec3eaf20f7ad89c4ac7e2dbc9)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format...
Serhiy Storchaka [Sat, 19 Aug 2023 12:22:13 +0000 (15:22 +0300)] 
[3.11] gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918) (GH-108135)

Such C API functions as PyErr_SetString(), PyErr_Format(),
PyErr_SetFromErrnoWithFilename() and many others no longer crash or
ignore errors if it failed to format the error message or decode the
filename. Instead, they keep a corresponding error.
(cherry picked from commit 633ea217a85f6b6ba5bdbc73094254d5811b3485)

2 years ago[3.11] Docs: format sys.float_info properly (GH-108107) (#108131)
Miss Islington (bot) [Sat, 19 Aug 2023 09:13:09 +0000 (02:13 -0700)] 
[3.11] Docs: format sys.float_info properly (GH-108107) (#108131)

Docs: format sys.float_info properly (GH-108107)

- Normalise capitalisation and punctuation
- Use attribute markup for named tuple attributes
- Use :c:macro: markup for C macros
- Use a list for the 'rounds' attribute values
- Use list-table, for better .rst readability
- Remove one unneeded sys.float_info.dig link

(cherry picked from commit ca0c6c1f1ef79d10bc49b61d638d87cde265aa94)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] gh-107565: Update multissltests and GitHub CI workflows to use OpenSSL 1.1...
Ned Deily [Fri, 18 Aug 2023 20:50:11 +0000 (16:50 -0400)] 
[3.11] gh-107565: Update multissltests and GitHub CI workflows to use OpenSSL 1.1.1v, 3.0.10, and 3.1.2. (GH-108119)

2 years ago[3.11] Docs: emphasise warning and add accurate markups for sys.unraisablehook (GH...
Miss Islington (bot) [Fri, 18 Aug 2023 10:25:08 +0000 (03:25 -0700)] 
[3.11] Docs: emphasise warning and add accurate markups for sys.unraisablehook (GH-108105) (#108110)

(cherry picked from commit cc58ec9724772a8d5c4a5c9a6525f9f96e994227)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.11] GH-107987: Remove the Distributing Python Modules guide (GH-108016) (#108091)
Adam Turner [Fri, 18 Aug 2023 07:12:07 +0000 (08:12 +0100)] 
[3.11] GH-107987: Remove the Distributing Python Modules guide (GH-108016) (#108091)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] gh-107801: Improve the docs of the SEEK_* constants (GH-108099) (#108100)
Miss Islington (bot) [Thu, 17 Aug 2023 20:52:43 +0000 (13:52 -0700)] 
[3.11] gh-107801: Improve the docs of the SEEK_* constants (GH-108099) (#108100)

(cherry picked from commit 02079b010c39a89b284e8f0bb6d5f378e554260e)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.11] Docs: Fix Sphinx warnings in io.rst (GH-107903) (#108094)
Miss Islington (bot) [Thu, 17 Aug 2023 19:29:10 +0000 (12:29 -0700)] 
[3.11] Docs: Fix Sphinx warnings in io.rst (GH-107903) (#108094)

- Mark up parameter and argument names properly
- If possible, link to docs for methods like `seek`, `tell`, `write`, `read`, etc.

(cherry picked from commit 5c76899dadf3bdcfdedf6f30b3ab9742cb87af04)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] gh-107801: Document SEEK_HOLE and SEEK_DATA (GH-107936) (#108087)
Miss Islington (bot) [Thu, 17 Aug 2023 14:22:39 +0000 (07:22 -0700)] 
[3.11] gh-107801: Document SEEK_HOLE and SEEK_DATA (GH-107936) (#108087)

(cherry picked from commit 8a19f225b948db1eebe1d9fc71a486258841f578)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Antoine Pitrou <antoine@python.org>
2 years ago[3.11] gh-102215: importlib documentation cleanups (#108056)
Adam Turner [Thu, 17 Aug 2023 13:57:48 +0000 (14:57 +0100)] 
[3.11] gh-102215: importlib documentation cleanups (#108056)

(cherry picked from commit 4cd95dce0b8d7bb8a16468ec8b5b3429555417f1)

Co-authored-by: Sam Morris <sam@robots.org.uk>
2 years ago[3.11] gh-107298: Fix some references in the C API documentation (GH-108072) (GH...
Serhiy Storchaka [Thu, 17 Aug 2023 08:30:47 +0000 (11:30 +0300)] 
[3.11] gh-107298: Fix some references in the C API documentation (GH-108072) (GH-108076)

(cherry picked from commit f51f0466c07eabc6177c2f64f70c952dada050e8)

2 years ago[3.11] gh-107298: Add standard exceptions and warnings in the nitpick_ignore list...
Miss Islington (bot) [Thu, 17 Aug 2023 06:54:53 +0000 (23:54 -0700)] 
[3.11] gh-107298: Add standard exceptions and warnings in the nitpick_ignore list (GH-108029) (GH-108071)

(cherry picked from commit c9d83f93d804b80ee14480466ebee63a6f97dac2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] GH-92584: Remove reference to Distutils in ``cx_Freeze``'s description (GH...
Adam Turner [Wed, 16 Aug 2023 21:01:27 +0000 (22:01 +0100)] 
[3.11] GH-92584: Remove reference to Distutils in ``cx_Freeze``'s description (GH-108047) (#108061)

Remove reference to Distutils in ``cx_Freeze``'s description.
(cherry picked from commit 57fcf96e4f21b8955b3ae4b4d70e4b756949712f)

2 years ago[3.11] GH-92584: Redirect macOS package installation to the PPUG (GH-108044) (#108059)
Miss Islington (bot) [Wed, 16 Aug 2023 20:50:49 +0000 (13:50 -0700)] 
[3.11] GH-92584: Redirect macOS package installation to the PPUG (GH-108044) (#108059)

GH-92584: Redirect macOS package installation to the PPUG (GH-108044)
(cherry picked from commit 902864256cb261428ae9682ca0ffddd597e1f894)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] gh-107298: Fix C API Buffer documentation (GH-108011) (#108041)
Miss Islington (bot) [Wed, 16 Aug 2023 20:32:17 +0000 (13:32 -0700)] 
[3.11] gh-107298: Fix C API Buffer documentation (GH-108011) (#108041)

gh-107298: Fix C API Buffer documentation (GH-108011)
(cherry picked from commit c2941cba7a986e6158eebb2a0bf33906dcd78616)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.11] Remove Sphinx problem matcher to avoid annotating unchanged files (GH-108005...
Miss Islington (bot) [Wed, 16 Aug 2023 19:02:11 +0000 (12:02 -0700)] 
[3.11] Remove Sphinx problem matcher to avoid annotating unchanged files (GH-108005) (#108050)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-106300: Improve errors testing in test_unittest.test_runner (GH-106737...
Miss Islington (bot) [Wed, 16 Aug 2023 09:59:44 +0000 (02:59 -0700)] 
[3.11] gh-106300: Improve errors testing in test_unittest.test_runner (GH-106737) (GH-108007)

Use a custom exception to prevent unintentional silence of actual errors.
(cherry picked from commit fd9d70a94de5b0756b52b9ae21e236e25545db4f)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.11] bpo-18319: gettext() can retrieve a message even if a plural form exists ...
Miss Islington (bot) [Wed, 16 Aug 2023 09:15:01 +0000 (02:15 -0700)] 
[3.11] bpo-18319: gettext() can retrieve a message even if a plural form exists (GH-19869) (GH-107107)

(cherry picked from commit 54632528eeba841e4a8cc95ecbd84c9aca8eef57)

Co-authored-by: Gilles Bassière <gbassiere@gmail.com>
2 years ago[3.11] gh-100061: Proper fix of the bug in the matching of possessive quantifiers...
Serhiy Storchaka [Wed, 16 Aug 2023 08:36:36 +0000 (11:36 +0300)] 
[3.11] gh-100061: Proper fix of the bug in the matching of possessive quantifiers (GH-102612) (GH-108004)

Restore the global Input Stream pointer after trying to match a sub-pattern.

Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
(cherry picked from commit abd9cc52d94b8e2835322b62c29f09bb0e6fcfe9)

Co-authored-by: SKO <41810398+uyw4687@users.noreply.github.com>
2 years ago[3.11] gh-107237: Fix test_udp_reconnection() of test_logging (GH-107238) (GH-107243)
Miss Islington (bot) [Wed, 16 Aug 2023 08:34:36 +0000 (01:34 -0700)] 
[3.11] gh-107237: Fix test_udp_reconnection() of test_logging (GH-107238) (GH-107243)

test_logging: Fix test_udp_reconnection() by increasing the timeout
from 100 ms to 5 minutes (LONG_TIMEOUT).

Replace also blocking wait() with wait(LONG_TIMEOUT) in
test_output() to prevent the test to hang.
(cherry picked from commit ed082383272c2c238e364e9cc83229234aee23cc)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.11] gh-91795: Update build optimization part of PCbuild/readme.txt (GH-91849)...
Miss Islington (bot) [Wed, 16 Aug 2023 08:15:38 +0000 (01:15 -0700)] 
[3.11] gh-91795: Update build optimization part of PCbuild/readme.txt (GH-91849) (GH-107777)

(cherry picked from commit 906b73be5eada1995bd667a02c59f7a11998310f)

Co-authored-by: Fatih <77548106+fatihkabakk@users.noreply.github.com>
2 years ago[3.11] gh-100814: Fix exception for invalid callable value of Tkinter image option...
Miss Islington (bot) [Wed, 16 Aug 2023 08:07:02 +0000 (01:07 -0700)] 
[3.11] gh-100814: Fix exception for invalid callable value of Tkinter image option (GH-107692) (GH-107723)

Passing a callable object as an option value to a Tkinter image now raises
the expected TclError instead of an AttributeError.
(cherry picked from commit 50e3cc9748eb2103eb7ed6cc5a74d177df3cfb13)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior...
Serhiy Storchaka [Wed, 16 Aug 2023 07:44:21 +0000 (10:44 +0300)] 
[3.11] gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior (GH-99802) (GH-107999)

Restore following CPython <= 3.10.5 behavior of shutil.make_archive()
that went away as part of gh-93160:

Do not create an empty archive if root_dir is not a directory, and, in
that case, raise FileNotFoundError or NotADirectoryError regardless
of format choice. Beyond the brought-back behavior, the function may
now also raise these exceptions in dry_run mode.
(cherry picked from commit a86df298df5b02e2d69ea6879e9ed10a7adb85d0)

Co-authored-by: 6t8k <58048945+6t8k@users.noreply.github.com>
2 years ago[3.11] More actionable error message when spawn is incorrectly used. (GH-102203)...
Miss Islington (bot) [Wed, 16 Aug 2023 01:43:28 +0000 (18:43 -0700)] 
[3.11] More actionable error message when spawn is incorrectly used. (GH-102203) (#107991)

More actionable error message when spawn is incorrectly used. (GH-102203)
(cherry picked from commit a794ebeb028f7ef287c780d3890f816db9c21c51)

Co-authored-by: Yuxin Wu <ppwwyyxxc@gmail.com>
Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2 years ago[3.11] gh-106242: Fix path truncation in os.path.normpath (GH-106816) (#107982)
Steve Dower [Tue, 15 Aug 2023 17:07:52 +0000 (18:07 +0100)] 
[3.11] gh-106242: Fix path truncation in os.path.normpath (GH-106816) (#107982)

Co-authored-by: Finn Womack <flan313@gmail.com>
2 years ago[3.11] gh-107963: Fix set_forkserver_preload to check the type of given list (GH...
Miss Islington (bot) [Tue, 15 Aug 2023 14:53:25 +0000 (07:53 -0700)] 
[3.11] gh-107963: Fix set_forkserver_preload to check the type of given list (GH-107965) (gh-107976)

gh-107963: Fix set_forkserver_preload to check the type of given list (GH-107965)
(cherry picked from commit 6515ec3d3d5acd3d0b99c88794bdec09f0831e5b)

gh-107963: Fix set_forkserver_preload to check the type of given list

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2 years ago[3.11] gh-107877: Update logging levels reference table with usage criteria. (GH...
Miss Islington (bot) [Sun, 13 Aug 2023 13:43:14 +0000 (06:43 -0700)] 
[3.11] gh-107877: Update logging levels reference table with usage criteria. (GH-107894) (GH-107921)

gh-107877: Update logging levels reference table with usage criteria. (GH-107894)
(cherry picked from commit cc2cf85d03cf29994a707aae5cc9a349a4165b84)

2 years ago[3.11] gh-107715: Escape class name in regular expression (GH-107716) (GH-107727)
Miss Islington (bot) [Sat, 12 Aug 2023 11:57:49 +0000 (04:57 -0700)] 
[3.11] gh-107715: Escape class name in regular expression (GH-107716) (GH-107727)

This patch escapes the class name before embedding it in the regular expression
for `pat` in `doctest.DocTestFinder._find_lineno`. While class names do not
ordinarily contain special characters, it is possible to encounter these when a
class is created dynamically. Escaping the name will correctly return `None` in
this scenario, rather than potentially matching a different class or raising
`re.error` depending on the symbols used.
(cherry picked from commit 85793278793708ad6b7132a54ac9fb4b2c5bcac1)

Co-authored-by: Gertjan van Zwieten <git@gjvz.nl>
2 years ago[3.11] gh-106844: Fix issues in _winapi.LCMapStringEx (GH-107832) (GH-107875)
Serhiy Storchaka [Sat, 12 Aug 2023 11:06:56 +0000 (14:06 +0300)] 
[3.11] gh-106844: Fix issues in _winapi.LCMapStringEx (GH-107832) (GH-107875)

* Strings with length from 2**31-1 to 2**32-2 always caused MemoryError,
   it doesn't matter how much memory is available.
* Strings with length exactly 2**32-1 caused OSError.
* Strings longer than 2**32-1 characters were truncated due to integer overflow bug.

Now strings longer than 2**31-1 characters caused OverflowError.
(cherry picked from commit 04cc01453db2f0af72a06440831637f8bf512daf)

2 years ago[3.11] Docs: Document PyBUF_MAX_NDIM (GH-107865) (#107872)
Miss Islington (bot) [Fri, 11 Aug 2023 16:13:53 +0000 (09:13 -0700)] 
[3.11] Docs: Document PyBUF_MAX_NDIM (GH-107865) (#107872)

(cherry picked from commit 637f7ff2c60f262659da0334f1cb672bd361f398)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2 years ago[3.11] Fix the long64 reader in umarshal.py (GH-107828) (GH-107850)
Miss Islington (bot) [Thu, 10 Aug 2023 21:10:46 +0000 (14:10 -0700)] 
[3.11] Fix the long64 reader in umarshal.py (GH-107828) (GH-107850)

(cherry picked from commit 50bbc56009ae7303d2482f28eb62f2603664b58f)

Co-authored-by: Martin DeMello <martindemello@gmail.com>
2 years ago[3.11] [3.12] GH-106684: Close `asyncio.StreamWriter` when `asyncio.StreamWriter...
Miss Islington (bot) [Thu, 10 Aug 2023 10:44:31 +0000 (03:44 -0700)] 
[3.11] [3.12] GH-106684:  Close `asyncio.StreamWriter` when `asyncio.StreamWriter` is not closed by application (GH-107650) (GH-107656) (#107836)

[3.12] GH-106684:  Close `asyncio.StreamWriter` when `asyncio.StreamWriter` is not closed by application (GH-107650) (GH-107656)

GH-106684: raise `ResourceWarning` when `asyncio.StreamWriter` is not closed (GH-107650)
(cherry picked from commit 41178e41995992bbe417f94bce158de93f9e3188)

(cherry picked from commit 7853c769067699c79c0d4fe4967e9d8f8b8b0a5e)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 years ago[3.11] gh-107814: Avoid output from Nuget installation in find_python.bat (GH-107815)
Miss Islington (bot) [Wed, 9 Aug 2023 23:15:43 +0000 (16:15 -0700)] 
[3.11] gh-107814: Avoid output from Nuget installation in find_python.bat (GH-107815)

gh-107814: Avoid output from Nuget installation in find_python.bat (GH-107815)
(cherry picked from commit 1e229e2c3d212accbd5fbe3a46cd42f8252b2868)

Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>