]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 6 Jun 2023 12:47:45 +0000 (05:47 -0700)]
[3.12] gh-105259: Ensure we don't show newline characters for trailing NEWLINE tokens (GH-105364) (#105367)
Erlend E. Aasland [Tue, 6 Jun 2023 10:58:13 +0000 (12:58 +0200)]
[3.12] gh-90005: Don't link with libbsd if not needed (#105236) (#105360)
The regression was introduced with commit
5b946cada .
Restore pre gh-29696 behaviour.
Miss Islington (bot) [Mon, 5 Jun 2023 19:44:20 +0000 (12:44 -0700)]
[3.12] gh-105324: Fix tokenize module main function for stdin (GH-105325) (#105330)
Miss Islington (bot) [Mon, 5 Jun 2023 17:02:14 +0000 (10:02 -0700)]
[3.12] gh-89412: Add missing attributes (added in 3.10) to traceback module docs (GH-105046) (#105327)
(cherry picked from commit
a4f72fa39a9d391c7b931ba1906d81da4ae01949 )
Co-authored-by: Jakub Kuczys <me@jacken.men>
Miss Islington (bot) [Mon, 5 Jun 2023 16:24:12 +0000 (09:24 -0700)]
[3.12] gh-97908: CAPI docs: Remove repeated struct names from member docs (GH-100054) (#105057)
And add raw HTML fragments to keep old links working.
(cherry picked from commit
1668b41dc477bc9562e4c50ab36a232839b4621b )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Hugo van Kemenade [Mon, 5 Jun 2023 15:28:03 +0000 (18:28 +0300)]
[3.12] What's New in 3.12: List 'Improved Modules' alphabetically (GH-105315) (#105321)
Miss Islington (bot) [Mon, 5 Jun 2023 15:09:11 +0000 (08:09 -0700)]
[3.12] Clarify that error messages are better with PEP 701 (GH-105150) (#105169)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
Alex Waygood [Mon, 5 Jun 2023 15:05:21 +0000 (16:05 +0100)]
[3.12] gh-105286: Improve `typing.py` docstrings (#105287) (#105319)
gh-105286: Improve `typing.py` docstrings (#105287)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 5 Jun 2023 14:51:26 +0000 (07:51 -0700)]
[3.12] gh-105280: Ensure `isinstance([], collections.abc.Mapping)` always evaluates to `False` (GH-105281) (#105318)
gh-105280: Ensure `isinstance([], collections.abc.Mapping)` always evaluates to `False` (GH-105281)
(cherry picked from commit
08756dbba647440803d2ba4545ba0ab2f0cdfe1c )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Mon, 5 Jun 2023 14:06:25 +0000 (07:06 -0700)]
[3.12] gh-105237: Allow calling `issubclass(X, typing.Protocol)` again (GH-105239) (#105316)
gh-105237: Allow calling `issubclass(X, typing.Protocol)` again (GH-105239)
(cherry picked from commit
cdfb201bfa35b7c50de5099c6d9078c806851d98 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Mon, 5 Jun 2023 13:42:31 +0000 (06:42 -0700)]
[3.12] gh-105164: Detect annotations inside match blocks (GH-105177) (#105313)
(cherry picked from commit
69d1245685cf95ddc678633e978a56673da64865 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Mon, 5 Jun 2023 03:45:12 +0000 (20:45 -0700)]
[3.12] gh-98963: Restore the ability to have a dict-less property. (GH-105262) (#105297)
gh-98963: Restore the ability to have a dict-less property. (GH-105262)
Ignore doc string assignment failures in `property` as has been the
behavior of all past Python releases. (the docstring is discarded)
(cherry picked from commit
418befd75d4d0d1cba83d8b81e1a7bcc9a65be8e )
This fixes a behavior regression in 3.12beta1 where an AttributeError was being raised in a situation it has never been in the past. It keeps the existing unusual single situation where AttributeError does get raised.
Existing widely deployed projects depend on this not raising an exception.
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sun, 4 Jun 2023 16:07:59 +0000 (09:07 -0700)]
[3.12] gh-104882: Docs: fix description of relationship between `socket.getblocking()` and `socket.gettimeout()` (GH-105026) (#105283)
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) [Sun, 4 Jun 2023 15:50:27 +0000 (08:50 -0700)]
[3.12] Fix typo in Python 3.12 What's New (GH-105278) (#105282)
Fix typo in Python 3.12 What's New (GH-105278)
(cherry picked from commit
9a90c9ace2ed878715107bf4ae39e5967d7c931f )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sun, 4 Jun 2023 04:32:00 +0000 (21:32 -0700)]
[3.12] gh-104690 Disallow thread creation and fork at interpreter finalization (GH-104826) (#105277)
gh-104690 Disallow thread creation and fork at interpreter finalization (GH-104826)
Disallow thread creation and fork at interpreter finalization.
in the following functions, check if interpreter is finalizing and raise `RuntimeError` with appropriate message:
* `_thread.start_new_thread` and thus `threading`
* `posix.fork`
* `posix.fork1`
* `posix.forkpty`
* `_posixsubprocess.fork_exec` when a `preexec_fn=` is supplied.
---------
(cherry picked from commit
ce558e69d4087dd3653207de78345fbb8a2c7835 )
Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sat, 3 Jun 2023 15:29:18 +0000 (08:29 -0700)]
[3.12] gh-89415: Mention new `IP_*` constants in `socket` module in the docs (GH-105266) (#105270)
gh-89415: Mention new `IP_*` constants in `socket` module in the docs (GH-105266)
(cherry picked from commit
eaff9c39aa1a70d401521847cc35bec883ae9772 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 2 Jun 2023 23:05:49 +0000 (16:05 -0700)]
[3.12] gh-105080: Fixed inconsistent signature on derived classes (GH-105217) (#105257)
gh-105080: Fixed inconsistent signature on derived classes (GH-105217)
(cherry picked from commit
9ad199ba36791711f596393ca9a20dbf118ef858 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Fri, 2 Jun 2023 17:09:51 +0000 (10:09 -0700)]
[3.12] gh-104614: Fix potential ref. leak in _testcapimodule/get_basic_static_type() (GH-105225) (#105248)
(cherry picked from commit
e01b04c9075c6468ed57bc883693ec2a06a6dd8e )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 2 Jun 2023 16:04:22 +0000 (09:04 -0700)]
[3.12] gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc (GH-105190) (#105246)
gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc (GH-105190)
(cherry picked from commit
0dafc785ee6629dbcb9bec6f7aee43a56cd0b26e )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Jun 2023 12:53:27 +0000 (05:53 -0700)]
[3.12] gh-105194: Fix format specifier escaped characters in f-strings (GH-105231) (#105234)
Miss Islington (bot) [Fri, 2 Jun 2023 08:24:25 +0000 (01:24 -0700)]
[3.12] gh-105184: document that marshal functions can fail and need to be checked with PyErr_Occurred (GH-105185) (#105218)
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>
Miss Islington (bot) [Fri, 2 Jun 2023 02:06:07 +0000 (19:06 -0700)]
[3.12] gh-104799: Default missing lists in AST to the empty list (GH-104834) (#105213)
(cherry picked from commit
77d25795862f19c6e3d647b76cfb10d5ce1f149c )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Thu, 1 Jun 2023 23:06:38 +0000 (16:06 -0700)]
[3.12] gh-104614: Make Sure ob_type is Always Set Correctly by PyType_Ready() (gh-105122) (gh-105211)
When I added the relevant condition to type_ready_set_bases() in gh-103912, I had missed that the function also sets tp_base and ob_type (if necessary). That led to problems for third-party static types.
We fix that here, by making those extra operations distinct and by adjusting the condition to be more specific.
(cherry picked from commit
1469393 )
Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
Miss Islington (bot) [Thu, 1 Jun 2023 22:50:28 +0000 (15:50 -0700)]
[3.12] gh-104341: Call _PyEval_ReleaseLock() with NULL When Finalizing the Current Thread (gh-105109) (gh-105209)
This avoids the problematic race in drop_gil() by skipping the FORCE_SWITCHING code there for finalizing threads.
(The idea for this approach came out of discussions with @markshannon.)
(cherry picked from commit
3698fda )
Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
Miss Islington (bot) [Thu, 1 Jun 2023 22:24:55 +0000 (15:24 -0700)]
[3.12] gh-105020: Share tp_bases and tp_mro Between Interpreters For All Static Builtin Types (gh-105115) (gh-105124)
In gh-103912 we added tp_bases and tp_mro to each PyInterpreterState.types.builtins entry. However, doing so ignored the fact that both PyTypeObject fields are public API, and not documented as internal (as opposed to tp_subclasses). We address that here by reverting back to shared objects, making them immortal in the process.
(cherry picked from commit
7be667d )
Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
Erlend E. Aasland [Thu, 1 Jun 2023 22:19:19 +0000 (00:19 +0200)]
[3.12] GH-89886: Bump to GNU Autoconf v2.71 (#104925) (#105207)
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Thu, 1 Jun 2023 17:13:35 +0000 (10:13 -0700)]
[3.12] gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174) (#105199)
gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174)
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, and adds a new _ssl_data_31.h file from 3.1.1 along with the ssl.c code to use it.
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).
backports of this prior to 3.12 will not include the openssl 3.1 header.
(cherry picked from commit
ede89af605b1c0442353435ad22195c16274f65d )
Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
Miss Islington (bot) [Thu, 1 Jun 2023 12:08:37 +0000 (05:08 -0700)]
[3.12] gh-89886: Rely on HAVE_SYS_TIME_H (GH-105058) (#105192)
Quoting autoconf (v2.71):
All current systems provide time.h; it need not be checked for.
Not all systems provide sys/time.h, but those that do, all allow
you to include it and time.h simultaneously.
(cherry picked from commit
9ab587b7146618866cee52c220aecf7bd5b44b02 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Wed, 31 May 2023 21:42:48 +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>
Miss Islington (bot) [Wed, 31 May 2023 21:34:21 +0000 (14:34 -0700)]
[3.12] gh-102251: Explicitly free state for test modules with state in test_import (GH-105085) (#105170)
(cherry picked from commit
a99b9d911e0f8cb11b3436bdd8eb649b15d01a50 )
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Eric Snow [Wed, 31 May 2023 21:17:24 +0000 (15:17 -0600)]
[3.12] gh-102304: Fix 2 New Stable ABI Functions (gh-104762) (gh-105123)
Barney Gale [Wed, 31 May 2023 20:37:37 +0000 (21:37 +0100)]
[3.12] GH-105113: Improve performance of `pathlib.PurePath.match()` (GH-105114)
We now compile a `re.Pattern` object for the entire pattern. This is made
more difficult by `fnmatch` not treating directory separators as special
when evaluating wildcards (`*`, `?`, etc), and so we arrange the path parts
onto separate *lines* in a string, and ensure we don't set `re.DOTALL`.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Wed, 31 May 2023 17:35:03 +0000 (10:35 -0700)]
[3.12] gh-105144: Runtime-checkable protocols: move all 'sanity checks' to `_ProtocolMeta.__subclasscheck__` (GH-105152) (#105160)
(cherry picked from commit
c05c31db8c9dfd708b9857bb57f8e5f3ce40266d )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Wed, 31 May 2023 13:47:03 +0000 (06:47 -0700)]
[3.12] gh-87729: add LOAD_SUPER_ATTR to 3.12 What's New (GH-105125) (#105143)
Miss Islington (bot) [Wed, 31 May 2023 13:46:26 +0000 (06:46 -0700)]
[3.12] gh-97933: add LOAD_FAST_AND_CLEAR to 3.12 What's New bytecode section (GH-105126) (#105142)
Victor Stinner [Wed, 31 May 2023 12:04:21 +0000 (14:04 +0200)]
[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 )
Miss Islington (bot) [Wed, 31 May 2023 10:11:53 +0000 (03:11 -0700)]
[3.12] gh-105069: Add a readline-like callable to the tokenizer to consume input iteratively (GH-105070) (#105119)
gh-105069: Add a readline-like callable to the tokenizer to consume input iteratively (GH-105070)
(cherry picked from commit
9216e69a87d16d871625721ed5a8aa302511f367 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Wed, 31 May 2023 10:11:39 +0000 (03:11 -0700)]
[3.12] gh-105042: Disable unmatched parens syntax error in python tokenize (GH-105061) (#105120)
gh-105042: Disable unmatched parens syntax error in python tokenize (GH-105061)
(cherry picked from commit
70f315c2d6de87b0514ce16cc00a91a5b60a6098 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Miss Islington (bot) [Wed, 31 May 2023 07:48:28 +0000 (00:48 -0700)]
[3.12] gh-105091: stable_abi.py: Remove "Unixy" check from --all on other platforms (GH-105092) (GH-105133)
gh-105091: stable_abi.py: Remove "Unixy" check from --all on other platforms (GH-105092)
(cherry picked from commit
0656d23d82cd5b88e578a26c65dd4a64414c833b )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Wed, 31 May 2023 06:18:55 +0000 (23:18 -0700)]
[3.12] gh-103142: Update macOS installer to use OpenSSL 1.1.1u. (GH-105132)
(cherry picked from commit
f90d3f68db720bd6d0deda8cc0030339ccd43858 )
Co-authored-by: Ned Deily <nad@python.org>
Erlend E. Aasland [Tue, 30 May 2023 21:54:31 +0000 (23:54 +0200)]
[3.12] gh-89886: Properly quote Autoconf macro arguments (#105062) (#105118)
Autoconf 2.70 macros are picky about argument quotation.
Miss Islington (bot) [Tue, 30 May 2023 21:10:46 +0000 (14:10 -0700)]
[3.12] gh-105035: fix super() calls on unusual types (e.g. meta-types) (GH-105094) (#105117)
gh-105035: fix super() calls on unusual types (e.g. meta-types) (GH-105094)
(cherry picked from commit
68c75c31536e8c87901934f2d6da81f54f4334f9 )
Co-authored-by: Carl Meyer <carl@oddbird.net>
Miss Islington (bot) [Tue, 30 May 2023 19:33:17 +0000 (12:33 -0700)]
gh-88745: Add _winapi.CopyFile2 and update shutil.copy2 to use it (GH-105055)
(cherry picked from commit
cda1bd3c9d3b2cecdeeba0c498cd2df83fbdb535 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Tue, 30 May 2023 17:03:57 +0000 (10:03 -0700)]
[3.12] gh-105071: add missing versionadded directive (GH-105097) (#105105)
gh-105071: add missing versionadded directive (GH-105097)
(cherry picked from commit
4571eedca2f70768ddc4a2fd4fba2ae11b4c8037 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Tue, 30 May 2023 16:34:57 +0000 (09:34 -0700)]
[3.12] gh-103921: Minor PEP-695 fixes to the `ast` module docs (GH-105093) (#105101)
(cherry picked from commit
c8c1e73d95d5dcd7a2c8d7c10cfafc3fe5a9377e )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Steve Dower [Tue, 30 May 2023 16:31:51 +0000 (17:31 +0100)]
[3.12] Enable the ABI check job to publish the updated ABI data file (GH-105088)
Irit Katriel [Tue, 30 May 2023 15:50:23 +0000 (16:50 +0100)]
[3.12] gh-105071: add PyUnstable_Exc_PrepReraiseStar to expose except* implementation in the unstable API (GH-105072) (#105095)
(cherry picked from commit
b7aadb4583b040ddc8564896b91f4e5e571c82d6 )
Miss Islington (bot) [Tue, 30 May 2023 14:33:01 +0000 (07:33 -0700)]
[3.12] gh-104799: Move location of type_params AST fields (GH-104828) (#104974)
gh-104799: Move location of type_params AST fields (GH-104828)
(cherry picked from commit
ba73473f4c18ba4cf7ab18d84d94a47d2d37a0c5 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Tue, 30 May 2023 09:53:46 +0000 (02:53 -0700)]
[3.12] gh-102251: Fix reference leak in _testsinglephase initialization (GH-105082) (#105083)
Correctly decref 'initialized' in init_module()
(cherry picked from commit
d14eb3433cf2a40a202471b815f0a935f2840ead )
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 30 May 2023 04:25:52 +0000 (21:25 -0700)]
[3.12] gh-105077: Fix test_tkinter refleak checking (GH-105078) (GH-105079)
Use specific symbols from `test.support` to avoid having `support`
overwritten by `test_tkinter`'s own `support` submodule.
(cherry picked from commit
5454db4ace66018179f034fbffcea8d791d66a98 )
Miss Islington (bot) [Mon, 29 May 2023 19:37:02 +0000 (12:37 -0700)]
[3.12] GH-89455: Add missing attributes (added in 3.11) to traceback module docs (GH-105044) (#105066)
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>
Miss Islington (bot) [Mon, 29 May 2023 17:21:03 +0000 (10:21 -0700)]
gh-103646: Remove --include-pip-user from default APPX package build (GH-105064)
(cherry picked from commit
6da701511e70fb26ad4710153d8d5a82b809919c )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 29 May 2023 16:57:04 +0000 (09:57 -0700)]
gh-104820: Fixes os.stat on Windows to better handle file systems that do not support FileIdInformation (GH-104892)
(cherry picked from commit
6031727a37c6003f78e3b0c7414a0a214855dd08 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 29 May 2023 12:36:08 +0000 (05:36 -0700)]
gh-104803: Implement ntpath.isdevdrive for checking whether a path is on a Windows Dev Drive (GH-104805)
(cherry picked from commit
bfd20d257e4ad16a25f4bac0ea4dbb719cdf6bc7 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 29 May 2023 09:05:42 +0000 (02:05 -0700)]
Fix compiler warning in unicodeobject.c (GH-105050)
Fix compiler warning in unicodeobject.c (GH-105050)
(cherry picked from commit
e92ac0a741b125f1cffe8c07b054d1dea7b0a05a )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Sun, 28 May 2023 19:15:36 +0000 (12:15 -0700)]
[3.12] Document PEP 698 and other new typing features in What's New (GH-104957) (#105045)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sun, 28 May 2023 14:16:43 +0000 (07:16 -0700)]
[3.12] gh-105017: Include CRLF lines in strings and column numbers (GH-105030) (#105041)
gh-105017: Include CRLF lines in strings and column numbers (GH-105030)
(cherry picked from commit
96fff35325e519cc76ffacf22e57e4c393d4446f )
Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Miss Islington (bot) [Sun, 28 May 2023 11:18:43 +0000 (04:18 -0700)]
[3.12] gh-105013: Fix inspect.getsource with parenthesized multiline lambdas (GH-105021) (#105032)
gh-105013: Fix inspect.getsource with parenthesized multiline lambdas (GH-105021)
(cherry picked from commit
3a5be878be6f89ee98d0ef9a1274e6a9d9ccbc37 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sun, 28 May 2023 08:12:30 +0000 (01:12 -0700)]
[3.12] gh-104992: [What's New in 3.12] Document unittest.TestProgram.usageExit's deprecation (GH-104995) (#105036)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 27 May 2023 21:51:05 +0000 (14:51 -0700)]
[3.12] gh-104497: Make tkinter test pass with tk 8.7 (GH-104789) (#105028)
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>
Miss Islington (bot) [Sat, 27 May 2023 17:24:30 +0000 (10:24 -0700)]
[3.12] gh-105017: Fix including additional NL token when using CRLF (GH-105022) (#105023)
Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 27 May 2023 10:10:03 +0000 (03:10 -0700)]
[3.12] CI: Precompute hash for config cache key in check_source job (GH-105008) (#105014)
Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
Miss Islington (bot) [Sat, 27 May 2023 02:17:09 +0000 (19:17 -0700)]
[3.12] gh-104992: [What's New in 3.11] Document unittest.TestProgram.usageExit's deprecation (GH-104994) (#105009)
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) [Sat, 27 May 2023 01:41:21 +0000 (18:41 -0700)]
[3.12] gh-104839: Prevent test_venv AddressSanitizer spam (GH-105005) (#105006)
gh-104839: Prevent test_venv AddressSanitizer spam (GH-105005)
Pass any ASAN_OPTIONS environment variable through to the child process
so that leak sanitizer being disabled on our CI and buildbots stays
true in the children.
(cherry picked from commit
a17f160376955d369c8d332e1b1a90a6e18c852a )
Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
Miss Islington (bot) [Fri, 26 May 2023 22:14:45 +0000 (15:14 -0700)]
[3.12] gh-104976: Ensure trailing dedent tokens are emitted as the previous tokenizer (GH-104980) (#105000)
Miss Islington (bot) [Fri, 26 May 2023 21:02:42 +0000 (14:02 -0700)]
[3.12] GH-101588: Deprecate pickle/copy/deepcopy support in itertools (GH-104965) (GH-104997)
Miss Islington (bot) [Fri, 26 May 2023 18:42:36 +0000 (11:42 -0700)]
[3.12] GH-103631: Fix `PurePosixPath(PureWindowsPath(...))` separator handling (GH-104949) (GH-104991)
For backwards compatibility, accept backslashes as path separators in
`PurePosixPath` if an instance of `PureWindowsPath` is supplied.
This restores behaviour from Python 3.11.
(cherry picked from commit
328422ce6162eb18735a2c0de12f8a696be97d0c )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Fri, 26 May 2023 18:33:09 +0000 (11:33 -0700)]
[3.12] GH-104947: Make pathlib.PureWindowsPath comparisons consistent across platforms (GH-104948) (GH-104990)
Use `str.lower()` rather than `ntpath.normcase()` to normalize case of
Windows paths. This restores behaviour from Python 3.11.
(cherry picked from commit
ad0be361c9922a918c7c3eaf83e1d8f2b019279c )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Fri, 26 May 2023 18:19:34 +0000 (11:19 -0700)]
[3.12] gh-103921: Document PEP 695 (GH-104642) (#104989)
(cherry picked from commit
060277d96bf4ba86df8e4d65831a8cbdfeb51fc5 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Fri, 26 May 2023 17:12:41 +0000 (10:12 -0700)]
[3.12] gh-104984: remove kwargs and starargs from Call & ClassDef (GH-104986) (#104987)
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:02:51 +0000 (19:02 +0300)]
[3.12] CI: Cache config.cache across runs to speed up build (GH-104800) (#104967)
Miss Islington (bot) [Fri, 26 May 2023 15:25:46 +0000 (08:25 -0700)]
[3.12] gh-104972: Ensure that line attributes in tokens in the tokenize module are correct (GH-104975) (#104982)
gh-104972: Ensure that line attributes in tokens in the tokenize module are correct (GH-104975)
(cherry picked from commit
3fdb55c48291a459fb1e33edb5140ec0383222df )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Fri, 26 May 2023 14:35:35 +0000 (07:35 -0700)]
[3.12] Remove raw asserts in test_typing.py (GH-104951) (#104978)
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 13:15:08 +0000 (06:15 -0700)]
[3.12] gh-104955: Fix __release_buffer__ signature (GH-104956) (#104973)
(cherry picked from commit
6e1eccdcce5ea3bf1ef9d326d20ef9df21262c6b )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Fri, 26 May 2023 12:08:58 +0000 (05:08 -0700)]
[3.12] gh-104924: Fix `read()able` in `http.client` log messages (gh-104926) (gh-104970)
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 10:33:45 +0000 (03:33 -0700)]
[3.12] Fix typo in the tokenizer (GH-104950) (#104953)
(cherry picked from commit
705e387dd81b971cb1ee5727da54adfb565f61d0 )
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
Miss Islington (bot) [Fri, 26 May 2023 07:15:56 +0000 (00:15 -0700)]
[3.12] gh-104943: Remove mentions of old Python versions (GH-104945) (#104963)
(cherry picked from commit
46857d0b2a2ac6aeb6dcce2bf2c92ddf4abe7496 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Fri, 26 May 2023 06:30:12 +0000 (23:30 -0700)]
[3.12] gh-104479: Update outdated tutorial floating-point reference (GH-104681) (#104960)
(cherry picked from commit
2cf04e455d8f087bd08cd1d43751007b5e41b3c5 )
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Miss Islington (bot) [Fri, 26 May 2023 06:21:15 +0000 (23:21 -0700)]
[3.12] gh-102024: Reduced _idle_semaphore.release calls (GH-102025) (#104959)
gh-102024: Reduced _idle_semaphore.release calls (GH-102025)
Reduced _idle_semaphore.release calls in concurrent.futures.thread._worker
_idle_semaphore.release() is now only called if only work_queue is empty.
---------
(cherry picked from commit
0242e9a57aa87ed0b5cac526f65631c654a39054 )
Co-authored-by: Andrii Kuzmin <jack.cvr@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Thu, 25 May 2023 20:44:29 +0000 (13:44 -0700)]
[3.12] gh-104372: Drop the GIL around the vfork() call. (GH-104782) (#104942)
gh-104372: Drop the GIL around the vfork() call. (GH-104782)
On Linux where the `subprocess` module can use the `vfork` syscall for
faster spawning, prevent the parent process from blocking other threads
by dropping the GIL while it waits for the vfork'ed child process `exec`
outcome. This prevents spawning a binary from a slow filesystem from
blocking the rest of the application.
Fixes GH-104372.
(cherry picked from commit
d08679212d9af52dd074cd4a6abb440edb944c9c )
Co-authored-by: Gregory P. Smith <gps@python.org>
Miss Islington (bot) [Thu, 25 May 2023 17:15:48 +0000 (10:15 -0700)]
[3.12] gh-104935: typing: Fix interactions between `@runtime_checkable` and `Generic` (GH-104939) (#104941)
gh-104935: typing: Fix interactions between `@runtime_checkable` and `Generic` (GH-104939)
---------
(cherry picked from commit
2b7027d0b2ee2e102a24a0da27d01b8221f9351c )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Thu, 25 May 2023 15:49:46 +0000 (08:49 -0700)]
Improves the Windows MSI test run on PR (GH-104929)
Correctly set the exit code when builds fail
Also build docs as part of the test
(cherry picked from commit
569b2b8d612354062b8679d2d3f44f7ee03e66c2 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Thu, 25 May 2023 13:16:20 +0000 (06:16 -0700)]
[3.12] Fix indentation in `json.AttrDict` REPL example (GH-104930) (#104931)
Fix indentation in `json.AttrDict` REPL example (GH-104930)
This is causing the docs to be rendered incorrectly.
(cherry picked from commit
38539ef1267f26a8b3508fcc8c6199cf46fc300b )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Thu, 25 May 2023 03:39:41 +0000 (20:39 -0700)]
[3.12] Misc improvements to the itertools docs (GH-104916) (GH-104917)
Miss Islington (bot) [Thu, 25 May 2023 02:14:11 +0000 (19:14 -0700)]
[3.12] Misc updates to Whatsnew 3.12 (GH-104912) (GH-104915)
Miss Islington (bot) [Thu, 25 May 2023 00:36:13 +0000 (17:36 -0700)]
[3.12] Fix test_importlib.test_side_effect_import() (GH-104840) (#104842)
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:33:52 +0000 (16:33 -0700)]
[3.12] gh-104874: Document NewType.__supertype__ (GH-104875) (#104906)
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 20:55:37 +0000 (13:55 -0700)]
[3.12] gh-99108: Refresh HACL* (GH-104808) (#104893)
gh-99108: Refresh HACL* (GH-104808)
Refresh HACL* from upstream to improve SHA2 performance and fix a 32-bit issue in SHA3.
(cherry picked from commit
160321e5304b962a162eb023472aa2bc8307ae15 )
Co-authored-by: Jonathan Protzenko <protz@microsoft.com>
Miss Islington (bot) [Wed, 24 May 2023 19:30:57 +0000 (12:30 -0700)]
[3.12] gh-104879: Fix TypeAliasType.__module__ in exec() (GH-104881) (#104890)
(cherry picked from commit
fe77a99fc8b549a8bf9ccbc5485fe5ea9bcf47b9 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 24 May 2023 19:21:28 +0000 (12:21 -0700)]
[3.12] Improve test coverage for is_typeddict (GH-104884) (#104889)
Improve test coverage for is_typeddict (GH-104884)
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>
Miss Islington (bot) [Wed, 24 May 2023 18:41:58 +0000 (11:41 -0700)]
[3.12] gh-104866: Tokenize should emit NEWLINE after exiting block with comment (GH-104870) (#104872)
gh-104866: Tokenize should emit NEWLINE after exiting block with comment (GH-104870)
(cherry picked from commit
c90a862cdcf55dc1753c6466e5fa4a467a13ae24 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Ned Deily [Wed, 24 May 2023 18:32:50 +0000 (14:32 -0400)]
gh-103207: The macOS 13 Ventura Installer.app permission problem is fixed by Apple in macOS 13.4. (GH-104883)
Terry Jan Reedy [Wed, 24 May 2023 17:41:50 +0000 (13:41 -0400)]
[3.12] gh-104825: add omitted idlelib text fix (#104880)
Order of events:
Terry merged new idlelib test into main.
Ms. I. made a 3.12 backport; tests passed.
Pablo merged the tokenize change with idlelib test fix into main.
Pablo merged a 3.12 backport without the idle test fix
as the backport of the latter had not yet been been merged.
Terry merged the idlelib test backport. The new test failed
on at least 4 3.12 buildbots because of the tokenize change.
This PR backports the now needed idlelib test fix.
(cherry picked from commit
c8cf9b4 )
Miss Islington (bot) [Wed, 24 May 2023 13:40:31 +0000 (06:40 -0700)]
[3.12] gh-102856: Update "Formatted string literals" docs section after PEP701 (GH-104861) (#104865)
(cherry picked from commit
8e5b3b90c83d9aaca1dc2299da696b994780bcc0 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Miss Islington (bot) [Wed, 24 May 2023 12:46:22 +0000 (05:46 -0700)]
[3.12] gh-104719: IDLE - test existence of all tokenize references. (GH-104767) (#104844)
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>
Dong-hee Na [Wed, 24 May 2023 10:47:07 +0000 (19:47 +0900)]
[3.12] gh-101282: Enclose BOLT_APPLY_FLAGS value in double quotes (gh… (gh-104853)
[3.12] gh-101282: Enclose BOLT_APPLY_FLAGS value in double quotes (gh-104752)
(cherry picked from commit
c43785192c97698a0217a680b30baae22106ed3e )
Pablo Galindo Salgado [Wed, 24 May 2023 10:40:51 +0000 (11:40 +0100)]
[3.12] gh-104825: Remove implicit newline in the line attribute in tokens emitted in the tokenize module (GH-104846). (#104850)
(cherry picked from commit
c8cf9b42eb2bfbd4c3e708ec28d32430248a1d7a )
Miss Islington (bot) [Wed, 24 May 2023 10:21:59 +0000 (03:21 -0700)]
[3.12] gh-102856: Add missing quote to fix doctest (GH-104852) (#104854)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Wed, 24 May 2023 10:00:34 +0000 (03:00 -0700)]
[3.12] gh-102856: Add changes related to PEP 701 in 3.12 What's New docs (GH-104824) (#104847)
gh-102856: Add changes related to PEP 701 in 3.12 What's New docs (GH-104824)
(cherry picked from commit
c45701e9ef004a523ebb28f3be902b3cf2cf7a9b )
Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 24 May 2023 09:05:34 +0000 (02:05 -0700)]
[3.12] gh-104797: Allow Protocols to inherit from collections.abc.Buffer (GH-104827) (#104841)
gh-104797: Allow Protocols to inherit from collections.abc.Buffer (GH-104827)
(cherry picked from commit
c0ab7d401c736c37bf4462eef7c7d69fef8fab93 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>