]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Victor Stinner [Wed, 28 Jun 2023 02:58:34 +0000 (04:58 +0200)]
[3.11] gh-101634: regrtest reports decoding error as failed test (#106169) (#106175)
gh-101634: regrtest reports decoding error as failed test (#106169)
When running the Python test suite with -jN option, if a worker stdout
cannot be decoded from the locale encoding report a failed testn so the
exitcode is non-zero.
(cherry picked from commit
2ac3eec103cf450aaaebeb932e51155d2e7fb37b )
Miss Islington (bot) [Tue, 27 Jun 2023 17:37:20 +0000 (10:37 -0700)]
[3.11] IDLE: Condense run.main threading.Thread start. (GH-106125) (#106153)
IDLE: Condense run.main threading.Thread start. (GH-106125)
Use daemon argument added in 3.3 and directly call .start.
Remove now unused 'sockthread' name.
(cherry picked from commit
eaa1eae55ea66d74c5303924320185dac74d4eb1 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 27 Jun 2023 13:44:32 +0000 (06:44 -0700)]
[3.11] gh-92788: Add docs for `ast.Module`, `ast.Expression`, and others (GH-101055) (#106138)
gh-92788: Add docs for `ast.Module`, `ast.Expression`, and others (GH-101055)
(cherry picked from commit
33608fd67df8b1033519f808441ee00289e2dac0 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 27 Jun 2023 04:32:43 +0000 (21:32 -0700)]
[3.11] GH-105774: Clarify operation of normalize() (GH-106093) (GH-106129)
Miss Islington (bot) [Mon, 26 Jun 2023 18:12:40 +0000 (11:12 -0700)]
[3.11] gh-106107: document correct error that's raised when a mutable default value for a field is detected (gh-106109) (gh-106116)
gh-106107: document correct error that's raised when a mutable default value for a field is detected (gh-106109)
(cherry picked from commit
512f299e557f4ab60768d36cee9968bd92116367 )
Co-authored-by: Roderich Schupp <roderich.schupp@gmail.com>
Kumar Aditya [Mon, 26 Jun 2023 09:00:51 +0000 (14:30 +0530)]
[3.11] gh-105979: Fix exception handling in unmarshal_frozen_code (`Python/import.c`) (GH-105980). (#106100)
* [3.11] gh-105979: Fix exception handling in `unmarshal_frozen_code` (`Python/import.c`) (GH-105980).
(cherry picked from commit
cd5280367a3a7065d13b8f7234474f7a2e9a18fd )
Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
Miss Islington (bot) [Mon, 26 Jun 2023 08:43:41 +0000 (01:43 -0700)]
[3.11] Improve typing docs on the type of class objects (GH-106081) (#106097)
Improve typing docs on the type of class objects (GH-106081)
(cherry picked from commit
3eeb8c89063d5ac22c0b1d26e4ae2fd12c149650 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sun, 25 Jun 2023 08:16:30 +0000 (01:16 -0700)]
[3.11] Docs: add links to 'callable' term in sqlite3 docs (GH-106072) (#106074)
(cherry picked from commit
bef1c8761e3b0dfc5708747bb646ad8b669cbd67 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Serhiy Storchaka [Sat, 24 Jun 2023 23:41:02 +0000 (02:41 +0300)]
[3.11] gh-106033: Get rid of new occurrences of PyDict_GetItem and Py… (#106040)
[3.11] gh-106033: Get rid of new occurrences of PyDict_GetItem and PyObject_HasAttr (GH-106034)
These functions are broken by design because they discard any exceptions raised
inside, including MemoryError and KeyboardInterrupt. They should not be
used in new code..
(cherry picked from commit
1d33d5378058671bfabb6f4d4b5bfd4726973ff9 )
Miss Islington (bot) [Sat, 24 Jun 2023 23:30:09 +0000 (16:30 -0700)]
[3.11] gh-106033: [docs] Improve C API GetItem & HasAttr notes. (GH-106047) (#106071)
gh-106033: [docs] Improve C API GetItem & HasAttr notes. (GH-106047)
Use a note:: tag so that these dict and object API deficiencies show up clearly.
A caution:: tag was considered, but our current python docs rendering doesn't do much with that (no box or color change). warning:: seemed too extreme. note looks good.
(cherry picked from commit
19d6511b0b8f3f74e668ae32ccef89bcbf1a8a62 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Fri, 23 Jun 2023 20:35:16 +0000 (13:35 -0700)]
[3.11] Typing docs: fix typo in annotating tuples comment (GH-106048) (#106050)
Typing docs: fix typo in annotating tuples comment (GH-106048)
(cherry picked from commit
8ef0ee4ebc84ee68f16cea85ffdb949ecccb4ba5 )
Co-authored-by: Eamon Tracey <66919574+EamonTracey@users.noreply.github.com>
Serhiy Storchaka [Fri, 23 Jun 2023 18:13:07 +0000 (21:13 +0300)]
[3.11] gh-106030: Miscellaneous fixes in Python/suggestions.c (GH-106… (GH-106039)
* PyUnicode_CompareWithASCIIString() only works if the second argument
is ASCII string.
* Refleak in get_suggestions_for_name_error.
* Add some missing error checks.
(cherry picked from commit
c8c162ef5294cddb7ac75fe93ab918e5661c68ee )
Miss Islington (bot) [Fri, 23 Jun 2023 14:53:14 +0000 (07:53 -0700)]
[3.11] Typing docs: improve the guidance on annotating tuples (GH-106021) (#106029)
Typing docs: improve the guidance on annotating tuples (GH-106021)
(cherry picked from commit
968435ddb1c1af9333befb26f7970cded8a5c710 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Fri, 23 Jun 2023 08:14:25 +0000 (01:14 -0700)]
[3.11] Docs: Avoid a DeprecationWarning in `pyspecific.py` when running with Sphinx >=6.1 (GH-105886) (#106011)
Docs: Avoid a DeprecationWarning in `pyspecific.py` when running with Sphinx >=6.1 (GH-105886)
(cherry picked from commit
a72683ba8e0337650cc490dbe593a5e46aba60cb )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Wed, 21 Jun 2023 14:40:46 +0000 (07:40 -0700)]
[3.11] stdtypes.rst: remove a period (GH-105959) (#105969)
stdtypes.rst: remove a period (GH-105959)
(cherry picked from commit
c5a722be5f7979c73e2451e537a8fc58bf9af12e )
Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
Alex Waygood [Mon, 19 Jun 2023 00:17:06 +0000 (01:17 +0100)]
[3.11] typing docs: Improve the intro to each section (#105901) (#105903)
typing docs: Improve the intro to each section (#105901)
Miss Islington (bot) [Sun, 18 Jun 2023 17:56:13 +0000 (10:56 -0700)]
[3.11] gh-105844: Use devguide terminology to denote versions (GH-105882) (#105893)
(cherry picked from commit
dba72175116373c1d15e25d84c88b516daf9f5c4 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 16 Jun 2023 19:26:56 +0000 (12:26 -0700)]
[3.11] CI: Bump macOS build to use OpenSSL v3.0 (GH-105538) (#105868)
(cherry picked from commit
34e93d3998bab8acd651c50724eb1977f4860a08 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 16 Jun 2023 18:30:22 +0000 (11:30 -0700)]
[3.11] GH-105840: Fix assertion failures when specializing calls with too many __defaults__ (GH-105864)
GH-105840: Fix assertion failures when specializing calls with too many __defaults__ (GH-105847)
(cherry picked from commit
2beab5bdef5fa2a00a59371e6137f769586b7404 )
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
Carl Meyer [Fri, 16 Jun 2023 17:17:58 +0000 (12:17 -0500)]
[3.11] bpo-44530: Document the change in MAKE_FUNCTION behavior (GH-93189) (#105842)
* bpo-44530: Document the change in MAKE_FUNCTION behavior
Fixes dis module documentation for MAKE_FUNCTION due to https://github.com/python/cpython/commit/
2f180ce2cb6e6a7e3c517495e0f4873d6aaf5f2f (bpo-44530, released as part of 3.11) removes the qualified name at TOS.
(cherry picked from commit
486b52a3158e0f64fc54efdfa34ed5437b3619f2 )
Co-authored-by: Alex Doe <alexdoesh@gmail.com>
Alex Waygood [Fri, 16 Jun 2023 16:39:12 +0000 (17:39 +0100)]
[3.11] gh-105834: Backport new tests for `typing.Protocol` (#105835) (#105860)
Miss Islington (bot) [Fri, 16 Jun 2023 11:29:35 +0000 (04:29 -0700)]
[3.11] CI: Remove docs build from Azure Pipelines (GH-105823) (#105855)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 16 Jun 2023 08:56:58 +0000 (01:56 -0700)]
[3.11] gh-105844: Consistently use 'minor version' for X.Y versions (GH-105851) (#105852)
(cherry picked from commit
0bffe1acd78069ea21f6b1347bec9cc9747342cb )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 16 Jun 2023 05:43:30 +0000 (22:43 -0700)]
[3.11] tarfile: Fix positional-only syntax in docs (GH-105770) (#105772)
The syntax used in the current docs (a / before any args) is invalid.
I think the right approach is for the arguments to arbitrary
filter functions to be treated as positional-only, meaning that users
can supply filter functions with any names for the argument. tarfile.py
only calls the filter function with positional arguments.
(cherry picked from commit
5cdd5ba49db10f05e204e7a49ce184222a93dce8 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Thu, 15 Jun 2023 23:13:51 +0000 (16:13 -0700)]
[3.11] GH-105588: Add missing error checks to some obj2ast_* converters (GH-105839)
GH-105588: Add missing error checks to some obj2ast_* converters (GH-105589)
(cherry picked from commit
a4056c8f9c2d9970d39e3cb6bffb255cd4b8a42c )
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
Dong-hee Na [Thu, 15 Jun 2023 15:29:00 +0000 (00:29 +0900)]
[3.11] gh-102541: Hide traceback in help prompt (gh-102614). (gh-105830)
(cherry picked from commit
ba516e70c6d156dc59dede35b6fc3db0151780a5 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Alex Waygood [Thu, 15 Jun 2023 09:05:50 +0000 (10:05 +0100)]
[3.11] More reorganisation of the typing docs (#105787) (#105816)
Alex Waygood [Thu, 15 Jun 2023 08:56:14 +0000 (09:56 +0100)]
[3.11] Improve docs for `typing.dataclass_transform` (#105792) (#105815)
(cherry-picked from commit
006a4532058f1fadba93283c0f45b0d82735b364 )
Irit Katriel [Thu, 15 Jun 2023 03:34:37 +0000 (04:34 +0100)]
[3.11] gh-105196: Fix indentations of section headings in C API docs (#105672) (#105786)
gh-105196: Fix indentations of section headings in C API docs (#105672)
Co-authored-by: TATHAGATA ROY <royzen9495@gmail.com>
Alex Waygood [Wed, 14 Jun 2023 14:40:02 +0000 (15:40 +0100)]
[3.11] Typing docs: move the deprecated stuff below the non-deprecated stuff (#105781) (#105785)
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>