]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 13 Jun 2023 23:39:56 +0000 (16:39 -0700)]
[3.11] gh-105436: Ignore unrelated errors when checking empty env (GH-105742) (#105757)
gh-105436: Ignore unrelated errors when checking empty env (GH-105742)
(cherry picked from commit
4cefe3cf10f498c0927ae4fdba4880d5a64826e4 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Erlend E. Aasland [Tue, 13 Jun 2023 09:07:20 +0000 (11:07 +0200)]
[3.11] gh-105375: Improve error handling in _Unpickler_SetInputStream() (#105667) (#105721)
Prevent exceptions from possibly being overwritten in case of multiple
failures.
(cherry picked from commit
217589d4f3246d67c6ef0eb0be2b1c33987cf260 )
Erlend E. Aasland [Tue, 13 Jun 2023 06:50:00 +0000 (08:50 +0200)]
[3.11] gh-105375: Explicitly initialise all {Pickler,Unpickler}Object fields (#105686) (#105711)
* [3.11] gh-105375: Explicitly initialise all {Pickler,Unpickler}Object fields (#105686)
All fields must be explicitly initialised to prevent manipulation of
uninitialised fields in dealloc.
Align initialisation order with the layout of the object structs.
(cherry picked from commit
ca3cc4b95d66f7527ebe0ba4cdb1907082d9bfc8 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Mon, 12 Jun 2023 16:49:57 +0000 (09:49 -0700)]
[3.11] gh-105436: The environment block should end with two null wchar_t values (GH-105495) (#105701)
gh-105436: The environment block should end with two null wchar_t values (GH-105495)
(cherry picked from commit
4f7d3b602d47d61137e82145f601dccfe6f6cd3c )
Co-authored-by: Dora203 <66343334+sku2000@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Jun 2023 16:02:39 +0000 (09:02 -0700)]
[3.11] ARM64 clamping bug also exists in MSVC 14.35 (GH-105679) (#105696)
ARM64 clamping bug also exists in MSVC 14.35 (GH-105679)
(cherry picked from commit
58f0bda34126ed790000451874b96140737f40ed )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 12 Jun 2023 09:13:03 +0000 (02:13 -0700)]
[3.11] gh-105673: Fix uninitialized warning in sysmodule.c (GH-105674) (#105676)
In sys_add_xoption(), 'value' may be uninitialized for some error paths.
(cherry picked from commit
a8d69fe92c65d636fc454cfb1825c357eb2e6325 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Erlend E. Aasland [Sun, 11 Jun 2023 21:28:12 +0000 (23:28 +0200)]
[3.11] gh-105375: Harden pyexpat initialisation (#105606) (#105668)
(cherry picked from commit
20a56d8becba1a5a958b167fdb43b1a1b9228095 )
Add proper error handling to add_errors_module() to prevent exceptions
from possibly being overwritten.
Erlend E. Aasland [Sun, 11 Jun 2023 21:08:40 +0000 (23:08 +0200)]
[3.11] gh-105375: Improve error handling in the sys extension module (#105611) (#105666)
(cherry picked from commit
41cddc2e93a285b81fa30ac542b088bd9d0112e9 )
In _PySys_AddXOptionWithError() and sys_add_xoption(),
bail on first error to prevent exceptions from possibly being
overwritten.
Miss Islington (bot) [Sun, 11 Jun 2023 20:30:47 +0000 (13:30 -0700)]
[3.11] gh-105375: Improve error handling in _ctypes (GH-105593) (#105664)
Prevent repeated PyLong_FromVoidPtr() from possibly overwriting the
current exception.
(cherry picked from commit
e8998e46a7ce8ad336e0941a6da6e50cb88d1e47 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Sun, 11 Jun 2023 20:01:52 +0000 (13:01 -0700)]
[3.11] gh-105375: Improve error handling in PyUnicode_BuildEncodingMap() (GH-105491) (#105662)
Bail on first error to prevent exceptions from possibly being overwritten.
(cherry picked from commit
555be81026fe1205d16c02f6321221381174cd07 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Sun, 11 Jun 2023 19:46:02 +0000 (12:46 -0700)]
[3.11] gh-105375: Improve PyErr_WarnExplicit() error handling (GH-105610) (#105660)
Bail on first error to prevent exceptions from possibly being
overwritten.
(cherry picked from commit
567d6ae8e77579173510fc948ac06b2ababf3d40 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Erlend E. Aasland [Sun, 11 Jun 2023 19:25:36 +0000 (21:25 +0200)]
[3.11] gh-105375: Harden _ssl initialisation (#105599) (#105651)
(cherry picked from commit
01f4230460454d4a849a5ba93320142c1a0c93a8 )
Add proper error handling to prevent reference leaks and overwritten
exceptions.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Alex Waygood [Sun, 11 Jun 2023 16:10:49 +0000 (17:10 +0100)]
[3.11] Remove stray reference to PEP-695 in the typing docs (#105655)
Miss Islington (bot) [Sun, 11 Jun 2023 14:33:50 +0000 (07:33 -0700)]
[3.11] Fix typo in configparser module docstring (GH-105652) (#105654)
Fix typo in configparser module docstring (GH-105652)
"zc.buildbot" -> "zc.buildout"
(cherry picked from commit
845e593c4ec97dd9f73b50536c1e1e7ed10ceecd )
Co-authored-by: litlighilit <97860435+litlighilit@users.noreply.github.com>
Miss Islington (bot) [Sun, 11 Jun 2023 11:13:45 +0000 (04:13 -0700)]
[3.11] gh-105375: Improve error handling in the builtins extension module (GH-105585) (#105650)
(cherry picked from commit
d4fa52934a282df51cff800eee5caeb94a229547 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Sun, 11 Jun 2023 10:58:56 +0000 (03:58 -0700)]
[3.11] gh-105375: Improve _decimal error handling (GH-105605) (#105648)
Fix a bug where an exception could end up being overwritten.
(cherry picked from commit
c932f7284977ebf813313157c52d716ba225a7ac )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Sun, 11 Jun 2023 10:41:37 +0000 (03:41 -0700)]
[3.11] gh-105375: Harden _datetime initialisation (GH-105604) (#105646)
Improve error handling so init bails on the first exception.
(cherry picked from commit
16d49680b56e00c53c00683b949138e584669fd3 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Sun, 11 Jun 2023 10:22:31 +0000 (03:22 -0700)]
[3.11] gh-105375: Improve array.array exception handling (GH-105594) (#105643)
Fix a bug where 'tp_richcompare' could end up overwriting an exception.
(cherry picked from commit
35cff545db7c7912046c0ce5627db2e4d2b60f57 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Sat, 10 Jun 2023 18:50:27 +0000 (11:50 -0700)]
[3.11] Cleanup and clarify our hashlib docs. (GH-105624) (#105633)
Cleanup and clarify our hashlib docs. (GH-105624)
Clarify and improve our hashlib docs. Now with 50% less mess!
(cherry picked from commit
0d1d6ab966ff4e4d651d0dee0ec9a2f868ef42da )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Fri, 9 Jun 2023 22:54:00 +0000 (15:54 -0700)]
[3.11] gh-105375: Improve error handling in `zoneinfo` module (GH-105586) (#105613)
Fix bugs where exceptions could end up being overwritten
because of deferred error handling.
(cherry picked from commit
33c92c4f15539806c8aff8574ff30a8b307e3e4d )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Alex Waygood [Fri, 9 Jun 2023 21:41:22 +0000 (22:41 +0100)]
[3.11] Miscellaneous improvements to the typing docs (#105529) (#105568)
Miscellaneous improvements to the typing docs (#105529)
Mostly, these are changes so that we use shorter sentences and shorter paragraphs. In particular, I've tried to make the first sentence introducing each object in the typing API short and declarative.
Miss Islington (bot) [Fri, 9 Jun 2023 21:19:59 +0000 (14:19 -0700)]
[3.11] gh-105375: Improve error handling in _elementtree (GH-105591) (#105601)
Fix bugs where exceptions could end up being overwritten.
(cherry picked from commit
00b599ab5a76023fa0083d7cc5d3c569342a5191 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 9 Jun 2023 20:55:34 +0000 (13:55 -0700)]
[3.11] gh-105375: Improve posix error handling (GH-105592) (#105597)
Fix a bug where an IndexError could end up being overwritten.
(cherry picked from commit
f668f73bc88cce0112b304d87aa998fb28013c71 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Erlend E. Aasland [Fri, 9 Jun 2023 20:35:30 +0000 (22:35 +0200)]
[3.11] gh-105375: Improve errnomodule error handling (#105590) (#105595)
(cherry picked from commit
eede1d2f48b4fe7f7918952d9ebeb744b58668c1 )
Bail immediately if an exception is set, to prevent exceptions from
being overwritten.
Erlend E. Aasland [Fri, 9 Jun 2023 17:56:02 +0000 (19:56 +0200)]
[3.11] gh-105375: Improve _pickle error handling (#105475) (#105583)
(cherry picked from commit
89aac6f6b7b3af046ec137121c90732289e79efc )
Error handling was deferred in some cases, which could potentially lead
to exceptions being overwritten.
Erlend E. Aasland [Fri, 9 Jun 2023 17:36:06 +0000 (19:36 +0200)]
[3.11] gh-105375: Improve error handling in compiler_enter_scope() (#105494) (#105582)
(cherry picked from commit
6c832ddcf28187f86100c790afb16a0223d945d0 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 9 Jun 2023 16:00:53 +0000 (09:00 -0700)]
[3.11] Clarify the supported cases in the tokenize module (GH-105569) (#105574)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Fri, 9 Jun 2023 14:02:15 +0000 (07:02 -0700)]
[3.11] gh-105557: Remove duplicate sqlite3 test method (GH-105558) (#105562)
test_func_return_too_large_int() was defined twice.
Keep only the redefined method, as that also checks the tracebacks.
(cherry picked from commit
b8fa7bda4f286503447dc12327b789bbfc836458 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Alex Waygood [Fri, 9 Jun 2023 13:14:47 +0000 (14:14 +0100)]
[3.11] Fix two errors in the typing docs (#105559)
Miss Islington (bot) [Fri, 9 Jun 2023 01:02:12 +0000 (18:02 -0700)]
[3.11] gh-105332: [Enum] Fix unpickling flags in edge-cases (GH-105348) (GH-105519)
* revert enum pickling from by-name to by-value
(cherry picked from commit
4ff5690e591b7d11cf11e34bf61004e2ea58ab3c )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Thu, 8 Jun 2023 22:57:01 +0000 (15:57 -0700)]
[3.11] CI: Configure macOS build as per updated devguide recommendations (GH-105533) (#105537)
(cherry picked from commit
a5f23d411062f9f29f8a7d7ddefe60d5d8e17d2e )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Thu, 8 Jun 2023 20:48:10 +0000 (13:48 -0700)]
[3.11] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339) (#105527)
gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339)
(cherry picked from commit
3ee921d84f06da9dfa8aa29e0d33778b9dbf8f23 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Thu, 8 Jun 2023 15:33:40 +0000 (08:33 -0700)]
[3.11] test_types: Replace raw assert statements (GH-105500) (#105508)
(cherry picked from commit
a8eb7372eebe182fd4ef7381a742d84a368a7d1b )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Thu, 8 Jun 2023 15:06:39 +0000 (08:06 -0700)]
[3.11] Further improve docs for `typing.Annotated` (GH-105498) (#105504)
* Further improve docs for `typing.Annotated` (GH-105498)
(cherry picked from commit
d213c2990f0db62ed39fc5468977f989c2658675 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Alex Waygood [Thu, 8 Jun 2023 12:09:52 +0000 (13:09 +0100)]
[3.11] [typing docs] Don't describe `Sized` and `Hashable` as deprecated in the 3.11 docs (#105496)
Federico Caselli [Wed, 7 Jun 2023 22:30:33 +0000 (00:30 +0200)]
[3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269 (#105468)
Jelle Zijlstra [Wed, 7 Jun 2023 21:41:46 +0000 (14:41 -0700)]
[3.11] gh-105286: Further improvements to `typing.py` docstrings (GH-105363) (#105417)
[3.11] gh-105286: Further improvements to `typing.py` docstrings (GH-105363).
(cherry picked from commit
9a89f1bf1e7bb819fe7240be779c99a84f47ea46 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Alex Waygood [Wed, 7 Jun 2023 21:27:15 +0000 (22:27 +0100)]
[3.11] typing: Improve documentation of generic classes and aliases (#105369) (#105454)
Miss Islington (bot) [Wed, 7 Jun 2023 21:22:01 +0000 (14:22 -0700)]
[3.11] gh-105375: Improve error handling in sqlite3 collation callback (GH-105412) (#105441)
Check for error after each call to PyUnicode_FromStringAndSize().
(cherry picked from commit
a24a780d937109a0982d807473ae410cc75b0e3b )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Alex Waygood [Wed, 7 Jun 2023 21:18:21 +0000 (22:18 +0100)]
[3.11] gh-103171: Revert undocumented behaviour change for runtime-checkable protocols decorated with `@final` (#105445)
Erlend E. Aasland [Wed, 7 Jun 2023 20:55:00 +0000 (22:55 +0200)]
[3.11] gh-105455: Regen configure with GNU Autoconf 2.69 (#105467)
Miss Islington (bot) [Wed, 7 Jun 2023 18:11:33 +0000 (11:11 -0700)]
[3.11] gh-90015: Document that PEP-604 unions do not support forward references (GH-105366) (#105461)
gh-90015: Document that PEP-604 unions do not support forward references (GH-105366)
(cherry picked from commit
fbdee000de47ae96fbf53ce8908e8efbb23cfba4 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Jelle Zijlstra [Wed, 7 Jun 2023 14:14:36 +0000 (07:14 -0700)]
[3.11] Improve docs for `typing.TypeAlias` (GH-105372). (#105447)
(cherry picked from commit
c5ec51ec8f4508e1f01f6d98ac8364a13da9bec7 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Jelle Zijlstra [Wed, 7 Jun 2023 14:14:01 +0000 (07:14 -0700)]
[3.11] gh-97797: Improve documentation for typing.Annotated (GH-105365). (#105449)
(cherry picked from commit
e26d296984b2b6279231922ab0940d904aa6144e )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Alex Waygood [Wed, 7 Jun 2023 13:41:35 +0000 (14:41 +0100)]
[3.11] Improve code examples in `typing.rst` (#105346) (#105427)
Pablo Galindo [Wed, 7 Jun 2023 08:37:18 +0000 (09:37 +0100)]
Merge remote-tracking branch 'upstream/3.11' into 3.11
Pablo Galindo [Wed, 7 Jun 2023 08:37:03 +0000 (09:37 +0100)]
Post 3.11.4
Miss Islington (bot) [Wed, 7 Jun 2023 06:50:31 +0000 (23:50 -0700)]
[3.11] typing docs: Make the PEPs list an expandable section, hidden by default (GH-105353) (#105421)
typing docs: Make the PEPs list an expandable section, hidden by default (GH-105353)
(cherry picked from commit
d7645124f56c8832a7630a7f76c99e2630e685d7 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Wed, 7 Jun 2023 03:56:03 +0000 (20:56 -0700)]
[3.11] GH-95088: Clarify rules for parsing an item key for format strings (GH-103779) (#105418)
GH-95088: Clarify rules for parsing an item key for format strings (GH-103779)
(cherry picked from commit
3e7316d7e8969febb56fbc7416d483b073bd1702 )
Co-authored-by: achhina <amanschhina@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 7 Jun 2023 03:55:46 +0000 (20:55 -0700)]
[3.11] `typing.NewType` docs: the future performance improvements are now in the past (GH-105354) (#105415)
`typing.NewType` docs: the future performance improvements are now in the past (GH-105354)
(cherry picked from commit
5f65ff0370e1123084ff300a5ff02cd57623b575 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Pablo Galindo [Tue, 6 Jun 2023 21:58:02 +0000 (22:58 +0100)]
Python 3.11.4
Miss Islington (bot) [Tue, 6 Jun 2023 14:04:21 +0000 (07:04 -0700)]
[3.11] gh-104411: Update test_getint for Tcl 9.0 (GH-104412) (#105357)
gh-104411: Update test_getint for Tcl 9.0 (GH-104412)
(cherry picked from commit
2c49c759e880a32539f50c31dbd35d2bc4b4e030 )
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Miss Islington (bot) [Tue, 6 Jun 2023 14:01:54 +0000 (07:01 -0700)]
[3.11] gh-104399: Use newer libtommath APIs when necessary (GH-104407) (#105344)
gh-104399: Use newer libtommath APIs when necessary (GH-104407)
(cherry picked from commit
00d73caf804c0474980e471347d6385757af975f )
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Erlend E. Aasland [Tue, 6 Jun 2023 11:00:38 +0000 (13:00 +0200)]
[3.11] gh-90005: Don't link with libbsd if not needed (#105236) (#105359)
The regression was introduced with commit
5b946cada .
Restore pre gh-29696 behaviour.
Miss Islington (bot) [Mon, 5 Jun 2023 17:02:23 +0000 (10:02 -0700)]
[3.11] gh-89412: Add missing attributes (added in 3.10) to traceback module docs (GH-105046) (#105328)
(cherry picked from commit
a4f72fa39a9d391c7b931ba1906d81da4ae01949 )
Co-authored-by: Jakub Kuczys <me@jacken.men>
Alex Waygood [Mon, 5 Jun 2023 16:11:35 +0000 (17:11 +0100)]
[3.11] gh-105286: Improve typing.py docstrings (#105287) (#105322)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Jelle Zijlstra [Mon, 5 Jun 2023 13:46:12 +0000 (06:46 -0700)]
[3.11] gh-105164: Detect annotations inside match blocks (GH-105177). (#105314)
(cherry picked from commit
69d1245685cf95ddc678633e978a56673da64865 )
Tian Gao [Sun, 4 Jun 2023 21:26:01 +0000 (14:26 -0700)]
[3.11] gh-105080: Fixed inconsistent signature on derived classes (GH… (#105274)
Miss Islington (bot) [Sun, 4 Jun 2023 16:09:13 +0000 (09:09 -0700)]
[3.11] gh-104882: Docs: fix description of relationship between `socket.getblocking()` and `socket.gettimeout()` (GH-105026) (#105284)
gh-104882: Docs: fix description of relationship between `socket.getblocking()` and `socket.gettimeout()` (GH-105026)
(cherry picked from commit
5a5ed7a3e616a372f054a1dd2e9a31ba32a87a67 )
Co-authored-by: Joe Geisbauer <joegeisbauer@gmail.com>
Miss Islington (bot) [Fri, 2 Jun 2023 08:28:35 +0000 (01:28 -0700)]
[3.11] gh-105184: document that marshal functions can fail and need to be checked with PyErr_Occurred (GH-105185) (#105219)
gh-105184: document that marshal functions can fail and need to be checked with PyErr_Occurred (GH-105185)
(cherry picked from commit
ee26ca13a129da8cf549409d0a1b2e892ff2b4ec )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Gregory P. Smith [Thu, 1 Jun 2023 18:07:53 +0000 (11:07 -0700)]
[3.11] gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174) (#105200)
Upgrade builds to OpenSSL 1.1.1u.
This OpenSSL version addresses a pile if less-urgent CVEs since 1.1.1t.
The Mac/BuildScript/build-installer.py was already updated.
Also updates _ssl_data_111.h from OpenSSL 1.1.1u, _ssl_data_300.h from 3.0.9.
Manual edits to the _ssl_data_300.h file prevent it from removing any existing definitions in case those exist in some peoples builds and were important (avoiding regressions during backporting).
(cherry picked from commit
ede89af )
Miss Islington (bot) [Wed, 31 May 2023 21:42:57 +0000 (14:42 -0700)]
gh-105146: Update links at end of Windows installer (uninstall/repair) (GH-105147)
(cherry picked from commit
ed86e14b1672f32f0a31d72070e93d361ee0e2b4 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Victor Stinner [Wed, 31 May 2023 16:40:25 +0000 (18:40 +0200)]
[3.11] gh-105096: Reformat wave documentation (#105136) (#105138) (#105155)
[3.12] gh-105096: Reformat wave documentation (#105136) (#105138)
gh-105096: Reformat wave documentation (#105136)
Add ".. class::" markups in the wave documentation.
* Reformat also wave.py (minor PEP 8 changes).
* Remove redundant "import struct": it's already imported at top
level.
* Remove wave.rst from .nitignore
(cherry picked from commit
85e5d03163cac106ac8ec142ef03f1349a48948b )
(cherry picked from commit
01b42f9559b614d729c3f055d09269db13d2433c )
Miss Islington (bot) [Wed, 31 May 2023 06:15:45 +0000 (23:15 -0700)]
[3.11] gh-103142: Update macOS installer to use OpenSSL 1.1.1u. (GH-105131)
(cherry picked from commit
f90d3f68db720bd6d0deda8cc0030339ccd43858 )
Co-authored-by: Ned Deily <nad@python.org>
Steve Dower [Tue, 30 May 2023 19:33:42 +0000 (20:33 +0100)]
Enable the ABI check job to publish the updated ABI data file (GH-105103)
Miss Islington (bot) [Mon, 29 May 2023 19:37:49 +0000 (12:37 -0700)]
[3.11] GH-89455: Add missing attributes (added in 3.11) to traceback module docs (GH-105044) (#105067)
GH-89455: Add missing attributes (added in 3.11) to traceback module docs (GH-105044)
(cherry picked from commit
39f6a0489fcc815a578d27dfee2feea003c896f8 )
Co-authored-by: Jakub Kuczys <me@jacken.men>
Jelle Zijlstra [Sat, 27 May 2023 23:30:41 +0000 (16:30 -0700)]
[3.11] gh-103921: Improve typing documentation (GH-104642) (#105007)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sat, 27 May 2023 21:52:14 +0000 (14:52 -0700)]
[3.11] gh-104497: Make tkinter test pass with tk 8.7 (GH-104789) (#105029)
For test_widgets.MenuTest.test_configure_type, the options
in the error message change to alphabetical order.
---------
(cherry picked from commit
897e716d03d559a10dd5015ecb501ceb98955f3a )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Itamar Ostricher [Sat, 27 May 2023 18:40:43 +0000 (11:40 -0700)]
[3.11] CI: Precompute hash for config cache key in check_source job (GH-105008) (#105024)
Miss Islington (bot) [Sat, 27 May 2023 02:43:04 +0000 (19:43 -0700)]
[3.11] gh-104992: [What's New in 3.11] Document unittest.TestProgram.usageExit's deprecation (GH-104994) (#105010)
gh-104992: [What's New in 3.11] Document unittest.TestProgram.usageExit's deprecation (GH-104994)
Document unittest.TestProgram.usageExit's pending removal in 3.13
(cherry picked from commit
7df861c23cd61e7c55943d4036ea5c6b1df5cb49 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 26 May 2023 17:14:03 +0000 (10:14 -0700)]
[3.11] gh-104984: remove kwargs and starargs from Call & ClassDef (GH-104986) (#104988)
gh-104984: remove kwargs and starargs from Call & ClassDef (GH-104986)
These fields are removed in https://github.com/python/cpython/commit/
025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1
(cherry picked from commit
61c1d6760facbc172a58512cad46148f587b4da1 )
Co-authored-by: Shaygan Hooshyari <sh.hooshyari@gmail.com>
Hugo van Kemenade [Fri, 26 May 2023 16:09:09 +0000 (19:09 +0300)]
[3.11] CI: Cache config.cache across runs to speed up build (GH-104800) (#104968)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 26 May 2023 14:34:37 +0000 (07:34 -0700)]
[3.11] Remove raw asserts in test_typing.py (GH-104951) (#104979)
Remove raw asserts in test_typing.py (GH-104951)
(cherry picked from commit
2cb445635e99d4401949cabebd373288cfdd0138 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Fri, 26 May 2023 12:02:13 +0000 (05:02 -0700)]
[3.11] gh-104924: Fix `read()able` in `http.client` log messages (gh-104926) (gh-104971)
gh-104924: Fix `read()able` in `http.client` log messages (gh-104926)
(cherry picked from commit
6c81d7572edbe3a5800b1128e55a2dcef03cc13c )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Fri, 26 May 2023 07:13:45 +0000 (00:13 -0700)]
[3.11] gh-104943: Remove mentions of old Python versions (GH-104945) (#104962)
(cherry picked from commit
46857d0b2a2ac6aeb6dcce2bf2c92ddf4abe7496 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Fri, 26 May 2023 06:32:04 +0000 (23:32 -0700)]
[3.11] Fix typo in the tokenizer (GH-104950) (#104952)
(cherry picked from commit
705e387dd81b971cb1ee5727da54adfb565f61d0 )
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
Shantanu [Fri, 26 May 2023 06:30:03 +0000 (23:30 -0700)]
[3.11] gh-104479: Update outdated tutorial floating-point reference (GH-104681) (#104961)
(cherry picked from commit
2cf04e455d8f087bd08cd1d43751007b5e41b3c5 )
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Miss Islington (bot) [Thu, 25 May 2023 00:35:34 +0000 (17:35 -0700)]
[3.11] Fix test_importlib.test_side_effect_import() (GH-104840) (#104843)
Fix test_importlib.test_side_effect_import() (GH-104840)
Wait until the thread spawn by the import completes to avoid dangling
threads. With this fix, the following command no longer fails:
./python -m test --fail-env-changed test_importlib -m test_side_effect_import -F -j20
(cherry picked from commit
426950993f6a39cdf3f6a3333ac8b518833c7e61 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 24 May 2023 23:35:58 +0000 (16:35 -0700)]
[3.11] gh-104874: Document NewType.__supertype__ (GH-104875) (#104907)
gh-104874: Document NewType.__supertype__ (GH-104875)
(cherry picked from commit
41768a2bd3a8f57e6ce4e4ae9cab083b69817ec1 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 24 May 2023 19:23:35 +0000 (12:23 -0700)]
[3.11] Improve test coverage for is_typeddict (GH-104884) (#104888)
In particular, it's important to test that is_typeddict(TypedDict)
returns False.
(cherry picked from commit
1497607a8e99f1103c40368dd5f9057f0146a520 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Ned Deily [Wed, 24 May 2023 18:34:25 +0000 (14:34 -0400)]
[3.11] gh-103207: The macOS 13 Ventura Installer.app permission problem is fixed by Apple in macOS 13.4. (GH-104885)
Miss Islington (bot) [Wed, 24 May 2023 12:46:33 +0000 (05:46 -0700)]
[3.11] gh-104719: IDLE - test existence of all tokenize references. (GH-104767) (#104845)
gh-104719: IDLE - test existence of all tokenize references. (GH-104767)
Class editor.IndentSearcher contains all editor references to tokenize module.
Module io tokenize reference cover those other modules.
(cherry picked from commit
e561c09975bf67ad8bb67c56a81e30a9165bcc84 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Gregory P. Smith [Wed, 24 May 2023 03:42:25 +0000 (20:42 -0700)]
[3.11] gh-104372: Cleanup _posixsubprocess make_inheritable for async signal safety gh-104518 (#104785)
Move all of the Python C API calls into the parent process up front
instead of doing PyLong_AsLong and PyErr_Occurred and PyTuple_GET from
the post-fork/vfork child process.
Much of this was long overdue. We shouldn't have been using PyTuple and
PyLong APIs within all of these low level functions anyways.
This is a backport of
c649df6 for #104518 and the tiny adjustment in
d1732fe #104697.
Backporting this allows backporting of the real bug fix that requires it.
Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
Miss Islington (bot) [Tue, 23 May 2023 19:48:20 +0000 (12:48 -0700)]
[3.11] gh-104271: Fix auto() fallback in case of mixed type Enum (GH-104809)
[3.12] gh-104271: Fix auto() fallback in case of mixed type Enum (GH-104279)
(cherry picked from commit
f4e2049f14d40c1b893c68530eec5e341cf3d929 )
Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
Miss Islington (bot) [Tue, 23 May 2023 08:10:44 +0000 (01:10 -0700)]
[3.11] gh-103726: Set up gcc-10 for ASAN (gh-103728) (#104794)
Set up gcc-10 for ASAN CI as the existing config's default 9.x does not
play well with `vfork()`.
<!--
Thanks for your contribution!
Please read this comment in its entirety. It's quite important.
GH- Pull Request title
It should be in the following format:
```
gh-NNNNN: Summary of the changes made
```
Where: gh-NNNNN refers to the GitHub issue number.
Most PRs will require an issue number. Trivial changes, like fixing a
typo, do not need an issue.
GH- Backport Pull Request title
If this is a backport PR (PR made against branches other than `main`),
please ensure that the PR title is in the following format:
```
[X.Y] <title from the original PR> (GH-NNNN)
```
Where: [X.Y] is the branch name, e.g. [3.6].
GH-NNNN refers to the PR number from `main`.
-->
<!-- gh-issue-number: gh-103726 -->
* Issue: gh-103726
<!-- /gh-issue-number -->
(cherry picked from commit
83305808000e03cbad31ac3e9ef65454fb409282 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Mon, 22 May 2023 17:57:05 +0000 (10:57 -0700)]
[3.11] howto/urllib2: remove link to an outdated french translation (GH-104193) (GH-104746)
howto/urllib2: remove link to an outdated french translation (GH-104193)
We now have our own translation and it's not outdated
(cherry picked from commit
151b6bfb5d9a15b6e2682e5a3008a3f9ec3086ae )
Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
Miss Islington (bot) [Mon, 22 May 2023 10:49:33 +0000 (03:49 -0700)]
[3.11] gh-104536: Improve `multiprocessing.process._cleanup` logic (GH-104537) (#104737)
Fix a race condition in the internal `multiprocessing.process` cleanup
logic that could manifest as an unintended `AttributeError` when calling
`BaseProcess.close()`.
(cherry picked from commit
ef5d00a59207a63c6d5ae0d5d44054847d1bf3b5 )
Co-authored-by: Luccccifer <lukezhang764@gmail.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Mon, 22 May 2023 10:47:12 +0000 (03:47 -0700)]
[3.11] gh-102978: Fix mock.patch function signatures for class and staticmethod decorators (GH-103228) (#103499)
Fixes unittest.mock.patch not enforcing function signatures for methods
decorated with @classmethod or @staticmethod when patch is called with
autospec=True.
(cherry picked from commit
59e0de4903c02e72b329e505fddf1ad9794928bc )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Mon, 22 May 2023 10:46:45 +0000 (03:46 -0700)]
[3.11] Add IPv6 into to the docstring for socket.getsockname (GH-102961) (#103137)
Add IPv6 into to the docstring for socket.getsockname (GH-102961)
(cherry picked from commit
ecc5441505cd7cb54f3d38409c732e2e9f102137 )
Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
Co-authored-by: Brian Haley <brianphaley@gmail.com>
Alex Waygood [Sun, 21 May 2023 23:48:25 +0000 (00:48 +0100)]
[3.11] gh-104683: `clinic.py`: Improve coverage for the `parse_converter` method (#104729) (#104730)
Prince Roshan [Sun, 21 May 2023 19:17:18 +0000 (00:47 +0530)]
[3.11] gh-103606: Improve error message from logging.config.FileConfig (GH-103628) (#104687)
* gh-103606: Improve error message from logging.config.FileConfig (GH-103628)
(cherry picked from commit
152227b569c3a9b87fe0483706f704762ced6d75 )
plus backport the followup exception change fix to that in #104701
Miss Islington (bot) [Sun, 21 May 2023 19:16:12 +0000 (12:16 -0700)]
[3.11] gh-104719: IDLE - delete useless monkeypatch of tokenize (GH-104726) (#104727)
gh-104719: IDLE - delete useless monkeypatch of tokenize (GH-104726)
(cherry picked from commit
0c5e79bcdf99a6a07c65b0ea6d7701b6e041481c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Jelle Zijlstra [Sun, 21 May 2023 13:31:26 +0000 (06:31 -0700)]
[3.11] typing docs: Move some classes out of the "Generics" section (GH-104707) (#104721)
- AnyStr can be used in type annotations, contrary to the section header
- Unpack can also be used in annotations, and its use is not restricted
to generics. It makes more sense with other building blocks like Required.
- Protocol is not necessarily generic.
Also fix the indentation for two notes associated with Concatenate.
(cherry picked from commit
ab71acd67b5b09926498b8c7f855bdb28ac0ec2f )
---------
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sun, 21 May 2023 06:06:17 +0000 (23:06 -0700)]
[3.11] Corrected identifier (GH-104713) (#104714)
Corrected identifier (GH-104713)
(cherry picked from commit
60993ba8b4a04dfcf2d3067d919bcce160f01bd5 )
Co-authored-by: William Sawyer <wmsawyer2609@gmail.com>
Miss Islington (bot) [Sun, 21 May 2023 01:43:18 +0000 (18:43 -0700)]
[3.11] gh-104698: Fix reference leak in mmapmodule.c (GH-104700) (#104710)
(cherry picked from commit
99b641886a09252bbcf99a1d322fa8734f1ca30d )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sun, 21 May 2023 00:17:27 +0000 (17:17 -0700)]
[3.11] gh-101857: Allow xattr detection on musl libc (GH-101858) (#101894)
gh-101857: Allow xattr detection on musl libc (GH-101858)
Previously, we checked exclusively for `__GLIBC__` (AND'd with some other
conditions). Checking for `__linux__` instead should be fine.
This fixes using e.g. `os.listxattr()` on systems using musl libc.
Bug: https://bugs.gentoo.org/894130
(cherry picked from commit
8be8101bca34b60481ec3d7ecaea4a3379fb7dbb )
Co-authored-by: Sam James <sam@gentoo.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sat, 20 May 2023 20:12:52 +0000 (13:12 -0700)]
[3.11] gh-49174: document that the effect of calling gc.collect() during a collection is undefined (GH-104699) (#104703)
gh-49174: document that the effect of calling gc.collect() during a collection is undefined (GH-104699)
(cherry picked from commit
30488fa22a8f63753192ae7f1d01665857764e45 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
han-solo [Sat, 20 May 2023 16:36:43 +0000 (22:06 +0530)]
[3.11] gh-104679 Fixed syntax highlighting in turtle docs (GH-104682). (#104695)
(cherry picked from commit
2c97878bb8a09f5aba8bf413bb794f6efd5065df )
Miss Islington (bot) [Sat, 20 May 2023 16:31:42 +0000 (09:31 -0700)]
[3.11] gh-56276: Add tests to test_compare (GH-3199) (#104694)
gh-56276: Add tests to test_compare (GH-3199)
(cherry picked from commit
68ee8b3f15b744339c156bfeb583a414061ab22d )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Sat, 20 May 2023 03:59:54 +0000 (20:59 -0700)]
[3.11] gh-103987: fix several crashes in mmap module (GH-103990) (#104677)
gh-103987: fix several crashes in mmap module (GH-103990)
(cherry picked from commit
ceaa4c3476ac49b5b31954fec53796c7a3b40349 )
Co-authored-by: Prince Roshan <princekrroshan01@gmail.com>
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>