summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] gh-89392: Use normal unittest runner in test_type_cache (GH-108911) ↵Miss Islington (bot)2023-09-081-1/+1
| | | | | | | | (#108913) gh-89392: Use normal unittest runner in test_type_cache (GH-108911) (cherry picked from commit eaabaac7c099884f92428a7bb04ffa1f1d6080dd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-91960: Skip test_gdb if gdb cannot retrive Python frames ↵Miss Islington (bot)2023-09-082-4/+10
| | | | | | | | | | | | | | | | | (GH-108999) (#109010) gh-91960: Skip test_gdb if gdb cannot retrive Python frames (GH-108999) Skip test_gdb if gdb is unable to retrieve Python frame objects: if a frame is "<optimized out>". When Python is built with "clang -Og", gdb can fail to retrive the 'frame' parameter of _PyEval_EvalFrameDefault(). In this case, tests like py_bt() are likely to fail. Without getting access to Python frames, python-gdb.py is mostly clueless on retrieving the Python traceback. Moreover, test_gdb is no longer skipped on macOS if Python is built with Clang. (cherry picked from commit fbce43a251488f666be9794c908a6613bf8ae260) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-108983: Add more PEP 526 tests to `test_grammar` (GH-108984) (#109000)Miss Islington (bot)2023-09-081-0/+11
| | | | | | gh-108983: Add more PEP 526 tests to `test_grammar` (GH-108984) (cherry picked from commit 1fb20d42c58924e2e941622b3539645c7b843e0e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-108962: Skip test_tempfile.test_flags() if not supported ↵Miss Islington (bot)2023-09-082-1/+20
| | | | | | | | | | | (GH-108964) (#108967) gh-108962: Skip test_tempfile.test_flags() if not supported (GH-108964) Skip test_tempfile.test_flags() if chflags() fails with "OSError: [Errno 45] Operation not supported" (ex: on FreeBSD 13). (cherry picked from commit cd2ef21b076b494224985e266c5f5f8b37c66618) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-108834: Sync libregrtest with the main branch (#108966)Victor Stinner2023-09-0829-499/+892
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gh-108834: regrtest reruns failed tests in subprocesses (#108839) When using --rerun option, regrtest now re-runs failed tests in verbose mode in fresh worker processes to have more deterministic behavior. So it can write its final report even if a test killed a worker progress. Add --fail-rerun option to regrtest: exit with non-zero exit code if a test failed pass passed when re-run in verbose mode (in a fresh process). That's now more useful since tests can pass when re-run in a fresh worker progress, whereas they failed when run after other tests when tests are run sequentially. Rename --verbose2 option (-w) to --rerun. Keep --verbose2 as a deprecated alias. Changes: * Fix and enhance statistics in regrtest summary. Add "(filtered)" when --match and/or --ignore options are used. * Add RunTests class. * Add TestResult.get_rerun_match_tests() method * Rewrite code to serialize/deserialize worker arguments as JSON using a new WorkerJob class. * Fix stats when a test is run with --forever --rerun. * If failed test names cannot be parsed, log a warning and don't filter tests. * test_regrtest.test_rerun_success() now uses a marker file, since the test is re-run in a separated process. * Add tests on normalize_test_name() function. * Add test_success() and test_skip() tests to test_regrtest. (cherry picked from commit 31c2945f143c6b80c837fcf09a5cfb85fea9ea4c) * gh-108834: regrtest --fail-rerun exits with code 5 (#108896) When the --fail-rerun option is used and a test fails and then pass, regrtest now uses exit code 5 ("rerun) instead of 2 ("bad test"). (cherry picked from commit 1170d5a292b46f754cd29c245a040f1602f70301) * gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) (cherry picked from commit 1e0d62793a84001e92f1c80b511d3a212b435acc) * Manually sync Lib/test/libregrtest/ from main --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-107755: Document the correct default value of slice step ↵Miss Islington (bot)2023-09-081-1/+1
| | | | | | | | | | (GH-107756) (#108955) gh-107755: Document the correct default value of slice step (GH-107756) Document the correct default value of slice step. (cherry picked from commit 9bf350b0662fcf1a8b43b9293e6c8ecf3c711561) Co-authored-by: wim glenn <hey@wimglenn.com>
* [3.12] gh-107732: Mention dir support in importlib.resources docs ↵Hugo van Kemenade2023-09-082-5/+14
| | | | | | | | | | | (GH-107734) (#109058) gh-107732: Mention dir support in importlib.resources docs (#107734) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> (cherry picked from commit 9f0c0a46f00d687e921990ee83894b2f4ce8a6e7) Co-authored-by: Shahriar Heidrich <smheidrich@weltenfunktion.de>
* [3.12] gh-109015: Add test.support.socket_helper.tcp_blackhole() (GH-109016) ↵Miss Islington (bot)2023-09-087-0/+79
| | | | | | | | | | | (#109041) gh-109015: Add test.support.socket_helper.tcp_blackhole() (GH-109016) Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP blackhole is enabled (net.inet.tcp.blackhole=2). (cherry picked from commit a52a3509770f29f940cda9307704908949912276) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] Docs: Fix typo in datetime.tzinfo docstring (GH-107257) (#109032)Miss Islington (bot)2023-09-081-1/+1
| | | | | | | | Docs: Fix typo in datetime.tzinfo docstring (GH-107257) (cherry picked from commit 60a9eea3f56c002356998f5532b3ad870a1ffa8e) Co-authored-by: Mikhail Samylov <Samylov-Mikhail@yandex.com> Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] GH-108202: Document ``calendar``'s command-line interface (GH-109020) ↵Miss Islington (bot)2023-09-082-1/+144
| | | | | | | | | (#109030) GH-108202: Document ``calendar``'s command-line interface (GH-109020) (cherry picked from commit f0f96a9f40762499811681d405b6f922b6ed7a55) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] GH-90690: Mention removal of ``PRECALL`` in What's New (GH-103910) ↵Miss Islington (bot)2023-09-081-0/+3
| | | | | | | | | | (#109027) GH-90690: Mention removal of ``PRECALL`` in What's New (GH-103910) (cherry picked from commit f9bd6e49ae58e0ba2934f29dd0f3299ba844cc8d) Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] C API tests: use special markers to test that output parameters were ↵Serhiy Storchaka2023-09-086-20/+50
| | | | | | set (GH-109014) (#109023) [3.12] C API tests: use special markers to test that output parameters were set (GH-109014). (cherry picked from commit bf414b7fcb7c8ba780a5e1d9f320ecef0c7f9488)
* [3.12] gh-109002: Ensure only one wheel for each vendored package ↵Miss Islington (bot)2023-09-061-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-109003) (#109005) Output with one wheel: ``` ❯ GITHUB_ACTIONS=true ./Tools/build/verify_ensurepip_wheels.py Verifying checksum for /Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-23.2.1-py3-none-any.whl. Expected digest: 7ccf472345f20d35bdc9d1841ff5f313260c2c33fe417f48c30ac46cccabf5be Actual digest: 7ccf472345f20d35bdc9d1841ff5f313260c2c33fe417f48c30ac46cccabf5be ::notice file=/Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-23.2.1-py3-none-any.whl::Successfully verified the checksum of the pip wheel. ``` Output with two wheels: ``` ❯ GITHUB_ACTIONS=true ./Tools/build/verify_ensurepip_wheels.py ::error file=/Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-22.0.4-py3-none-any.whl::Found more than one wheel for package pip. ::error file=/Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-23.2.1-py3-none-any.whl::Found more than one wheel for package pip. ``` Output without wheels: ``` ❯ GITHUB_ACTIONS=true ./Tools/build/verify_ensurepip_wheels.py ::error file=::Could not find a pip wheel on disk. ``` (cherry picked from commit f8a047941f2e4a1848700c21d58a08c9ec6a9c68) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Merge branch '3.12' of https://github.com/python/cpython into 3.12Thomas Wouters2023-09-061-1/+1
|\
| * [3.12] gh-108857: improve markup in inspect.Signature.replace() docs ↵Miss Islington (bot)2023-09-061-1/+1
| | | | | | | | | | | | | | | | (GH-108862) (#108971) gh-108857: improve markup in inspect.Signature.replace() docs (GH-108862) (cherry picked from commit 6f8411cfd68134ccae01b0b4cb332578008a69e3) Co-authored-by: nabin2004 <107109731+nabin2004@users.noreply.github.com>
* | Post 3.12.0rc2Thomas Wouters2023-09-061-1/+1
| |
* | Python 3.12.0rc2v3.12.0rc2Thomas Wouters2023-09-0552-1076/+1499
|/
* [3.12] gh-108469: Update ast.unparse for unescaped quote support from PEP701 ↵Miss Islington (bot)2023-09-054-28/+31
| | | | | | | [3.12] (GH-108553) (#108960) Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
* [3.12] gh-108927: Fix test_import + test_importlib + test_unittest problem ↵Miss Islington (bot)2023-09-051-2/+3
| | | | | | | | (GH-108929) (#108954) gh-108927: Fix test_import + test_importlib + test_unittest problem (GH-108929) (cherry picked from commit 3f89b257639dd817a32079da2ae2c4436b8e82eb) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-107565: Update Windows build to use OpenSSL 3.0.10 (GH-108928) ↵Miss Islington (bot)2023-09-053-4/+5
| | | | | | | | (#108930) gh-107565: Update Windows build to use OpenSSL 3.0.10 (GH-108928) (cherry picked from commit deea7c82682848b2a0db971a4dcc3a32c73a9f8c) Co-authored-by: Zachary Ware <zach@python.org>
* [3.12] GH-103082: Document PEP-669: Low Impact Monitoring for CPython ↵Miss Islington (bot)2023-09-054-0/+323
| | | | | | | | (GH-107772) (#108909) GH-103082: Document PEP-669: Low Impact Monitoring for CPython (GH-107772) (cherry picked from commit 8b515f60ee1dec65cb3d64f1cc1d4b32aa2f4184) Co-authored-by: Mark Shannon <mark@hotpy.org>
* [3.12] GH-108390: Prevent non-local events being set with ↵Mark Shannon2023-09-058-2966/+3066
| | | | | | | | | | | `sys.monitoring.set_local_events()` (GH-108420) (#108899) * GH-108390: Prevent non-local events being set with `sys.monitoring.set_local_events()` (GH-108420) * Restore generated objects * Restore size of monitoring arrays in code object for 3.12 ABI compatibility. * Update ABI file
* [3.12] gh-89392: Remove support of test_main() in libregrtest (GH-108876) ↵Serhiy Storchaka2023-09-053-9/+10
| | | | | | | | | (#108897) [3.12] gh-89392: Remove support of test_main() in libregrtest (GH-108876). (cherry picked from commit 04a0830b00879efe057e3dfe75e9aa9c0caf1a26) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Link to PEP sections in What's New in 3.12 (GH-108878) (#108890)Miss Islington (bot)2023-09-051-3/+7
| | | | | | Link to PEP sections in What's New in 3.12 (GH-108878) (cherry picked from commit 7855d325e638a4b7f7b40f2c35dc80de82d8fe70) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] bpo-45229: Make ElementTree tests discoverable (GH-108859) (#108873)Serhiy Storchaka2023-09-052-62/+35
| | | | [3.12] bpo-45229: Make ElementTree tests discoverable (GH-108859). (cherry picked from commit 074ac1f72e392a576516639f650bac0519d1cb52)
* [3.12] CI: Bump GitHub Actions (GH-108879) (#108889)Miss Islington (bot)2023-09-056-17/+17
| | | | | | CI: Bump GitHub Actions (GH-108879) (cherry picked from commit 572678e1f864cb042df6962848a436d84ef7a8a4) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-89392: Remove test_main() in test_netrc (GH-108860) (#108872)Serhiy Storchaka2023-09-041-4/+2
| | | | | | [3.12] gh-89392: Remove test_main() in test_netrc (GH-108860). (cherry picked from commit 76f3c043b6c5971d5a13fc6decf87a80ddf7ef95) Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] Disable `differing_test_runners` health check (GH-108886) (#108887)Miss Islington (bot)2023-09-043-2/+9
| | | | | | Disable `differing_test_runners` health check (GH-108886) (cherry picked from commit 6ead5bd6ae20b902e6c11a3c0acede22632dc0d5) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-89392: Make test_pep646_syntax discoverable (GH-108861) (#108871)Serhiy Storchaka2023-09-041-5/+8
| | | | | | | | * [3.12] gh-89392: Make test_pep646_syntax discoverable (GH-108861). (cherry picked from commit d0b22f6bd84239e50b43709f98f2bb950222cfe5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * Add "import unittest".
* [3.12] Resolve reference warnings in faq/gui.rst (GH-108147) (#108193)Miss Islington (bot)2023-09-042-6/+6
| | | | | | | | | | | | | | * Resolve reference warnings in faq/gui.rst (GH-108147) (cherry picked from commit 8f3d09bf5d16b508fece5420a22abe6f0c1f00b7) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Resolve reference warnings in faq/gui.rst --------- Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-46376: Revert "Return existing pointer when possible in ctypes ↵Łukasz Langa2023-09-042-56/+0
| | | | | | | (GH-107131) (GH-107487)" (#108864) This reverts commit 54aaaadef8a44324f6be674707c67a3516470ff6. Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] Reorder some test's decorators (GH-108804) (#108844)Miss Islington (bot)2023-09-042-4/+4
| | | | | | | | | Reorder some test's decorators (GH-108804) For example, do not demand the 'cpu' resource if the test cannot be run due to non-working threads. (cherry picked from commit 509bb61977cc8a4487efd3f9cdd63d9f7b86be62) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-107208: Fix iter_index() recipe to not swallow exceptions ↵Miss Islington (bot)2023-09-041-12/+23
| | | | | | | | | | | (gh-108835) (#108837) gh-107208: Fix iter_index() recipe to not swallow exceptions (gh-108835) (cherry picked from commit f373c6b9483e12d7f6e03a631601149ed60ab883) gh-107208: iter_index now supports "stop" and no longer swallows ValueError Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.12] gh-108822: regrtest computes statistics (#108793) (#108833)Victor Stinner2023-09-0410-308/+511
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gh-108822: regrtest computes statistics (#108793) test_netrc, test_pep646_syntax and test_xml_etree now return results in the test_main() function. Changes: * Rewrite TestResult as a dataclass with a new State class. * Add test.support.TestStats class and Regrtest.stats_dict attribute. * libregrtest.runtest functions now modify a TestResult instance in-place. * libregrtest summary lists the number of run tests and skipped tests, and denied resources. * Add TestResult.has_meaningful_duration() method. * Compute TestResult duration in the upper function. * Use time.perf_counter() instead of time.monotonic(). * Regrtest: rename 'resource_denieds' attribute to 'resource_denied'. * Rename CHILD_ERROR to MULTIPROCESSING_ERROR. * Use match/case syntadx to have different code depending on the test state. Notes on the backport: doctest.TestResults.skipped is a new feature in Python 3.13, so don't use it in the backport. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit d4e534cbb35678c82b3a1276826af55d7bfc23b6)
* [3.12] gh-108416: Mark slow test methods with @requires_resource('cpu') ↵Miss Islington (bot)2023-09-0232-5/+57
| | | | | | | | | | | | (GH-108421) (#108798) gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421) Only mark tests which spend significant system or user time, by itself or in subprocesses. (cherry picked from commit f3ba0a74cd50274acdcd592d4ce8395b92492b7c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-63760: Don't declare gethostname() on Solaris (#108817) (#108824)Victor Stinner2023-09-022-5/+3
| | | | | | | | | | | | | | | | gh-63760: Don't declare gethostname() on Solaris (#108817) Since 2005, Solaris defines gethostname(). socketmodule.c no longer has to define gethostname() for Solaris. Oracle Solaris and OpenSolaris have patches to remove the gethostname() definition in Python: * https://github.com/oracle/solaris-userland/blob/master/components/python/python37/patches/15-gethostname.patch * https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/python/python37/patches/15-gethostname.patch * https://github.com/omniosorg/omnios-build/blob/master/build/python27/patches/24-gethostname.patch Co-authored-by: Jakub Kulík <Kulikjak@gmail.com> (cherry picked from commit 0e6d582b3b73a88e71cae04327b31a1ee203722c)
* [3.12] gh-101100: Fix sphinx warnings in `unittest.mock-examples.rst` ↵Nikita Sobolev2023-09-022-7/+7
| | | | | | | | | | | | | | (GH-108810) (#108813) * [3.12] gh-101100: Fix sphinx warnings in `unittest.mock-examples.rst` (GH-108810). (cherry picked from commit 5141b1ebe07ad54279e0770b4704eaf76f24951d) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> * Make the requested changes --------- Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `uuid.rst` (GH-108805) (#108807)Miss Islington (bot)2023-09-022-22/+30
| | | | | | | | | | | | | | | | | | | | * gh-101100: Fix sphinx warnings in `uuid.rst` (GH-108805) * gh-101100: Fix sphinx warnings in `uuid.rst` * Use anchors (cherry picked from commit 21da4980f5916e8fd648f04367a9e60d141af366) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> * Fix typo * another typo --------- Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-106392: Fix inconsistency in deprecation warnings (GH-106436) ↵Miss Islington (bot)2023-09-021-2/+2
| | | | | | | | | | (#108792) gh-106392: Fix inconsistency in deprecation warnings (GH-106436) They used "datetime" to refer to both the object and the module. (cherry picked from commit d5c5d4bfd3260219397326795d3b2ff62a9ab8cb) Co-authored-by: William Andrea <william.j.andrea@gmail.com>
* [3.12] gh-105563: reference DateType in datetime's documentation (GH-105946) ↵Miss Islington (bot)2023-09-021-0/+4
| | | | | | | | (#108789) gh-105563: reference DateType in datetime's documentation (GH-105946) (cherry picked from commit 8f9ea43ee805f98391f857397daac9df7ffa71cd) Co-authored-by: TATHAGATA ROY <royzen9495@gmail.com>
* [3.12] Improve some C API documentation (GH-108768) (#108785)Serhiy Storchaka2023-09-023-44/+43
| | | | | | | * Express functions which take argument as a C string in terms of functions which take Python object. * Use "note" directive for PyMapping_HasKey() and PyMapping_HasKeyString() notes.. (cherry picked from commit 6f97eeec222f81bd7ae836c149872a40b079e2a6)
* [3.12] Add Modules/_testcapi/util.h header (GH-108774) (#108780)Miss Islington (bot)2023-09-027-94/+49
| | | | | | | | Add Modules/_testcapi/util.h header (GH-108774) It contains common macros used in C API tests. (cherry picked from commit 0e01fac315dfa705ac8a6954485546f28cf4c87d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `tutorial/appendix.rst` (GH-108750) ↵Hugo van Kemenade2023-09-022-5/+4
| | | | | | | | (#108759) (cherry picked from commit 3047f09490ae63f25d57efe1d14a9a65d9b5f6db) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Make test_fcntl quiet (GH-108758) (#108760)Miss Islington (bot)2023-09-011-31/+32
| | | | | | | | | | | Make test_fcntl quiet (GH-108758) Running test_fcntl logs two "struct.pack: ..." lines because multiprocessing imports test_fcntl twice with test.support.verbose=1. Move get_lockdata() inside TestFcntl test case and only call it where it's needed, to stop logging these lines. (cherry picked from commit 23f54c120067c96973619b9501fe4dff1b055188) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (GH-108746) ↵Miss Islington (bot)2023-09-012-2/+1
| | | | | | | | (#108756) gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (GH-108746) (cherry picked from commit e775601ef1ada83a80e1539d0bcd5509deadee14) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-107805: Fix signatures of module-level generated functions in ↵Miss Islington (bot)2023-09-013-19/+45
| | | | | | | | | `turtle` (GH-107807) (#108749) gh-107805: Fix signatures of module-level generated functions in `turtle` (GH-107807) (cherry picked from commit 044b8b3b6a65e6651b161e3badfa5d57c666db19) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] `ast` docs: Fix incorrect link on `keyword` (GH-108728) (#108737)Miss Islington (bot)2023-09-011-2/+2
| | | | | | | | `ast` docs: Fix incorrect link on `keyword` (GH-108728) In two places, Sphinx was erroneously adding links to the `keyword` module instead of the `ast.keyword` class (cherry picked from commit c1e2f3b2f70b8a72ea7e1bf792addf62a94ae65d) Co-authored-by: Alex Povel <git@alexpovel.de>
* [3.12] gh-108682: [Enum] raise TypeError if super().__new__ called in custom ↵Miss Islington (bot)2023-08-314-56/+260
| | | | | | | | | | | | | | | | __new__ (GH-108704) (#108733) gh-108682: [Enum] raise TypeError if super().__new__ called in custom __new__ (GH-108704) When overriding the `__new__` method of an enum, the underlying data type should be created directly; i.e. . member = object.__new__(cls) member = int.__new__(cls, value) member = str.__new__(cls, value) Calling `super().__new__()` finds the lookup version of `Enum.__new__`, and will now raise an exception when detected. (cherry picked from commit d48760b2f1e28dd3c1a35721939f400a8ab619b8) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.12] gh-97850: Note in py312 whatsnew that `importlib.util.set_loader` and ↵Miss Islington (bot)2023-08-311-2/+3
| | | | | | | | | | `importlib.util.module_for_loader` have been removed (GH-108719) (#108723) gh-97850: Note in py312 whatsnew that `importlib.util.set_loader` and `importlib.util.module_for_loader` have been removed (GH-108719) Note in py312 whatsnew that `importlib.util.set_loader` and `importlib.util.module_for_loader` have been removed (cherry picked from commit 013a99a47b3299f48cf7f95aa451a116441b029c) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `threading.rst` (GH-108684) (#108707)Miss Islington (bot)2023-08-312-9/+8
| | | | | | | gh-101100: Fix sphinx warnings in `threading.rst` (GH-108684) (cherry picked from commit 991e4e76b54b69f227242e73c2ec9d62f903da53) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>