summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* GH-121832: Assert that the version number of static builtin types is not ↵Mark Shannon2024-07-243-67/+46
| | | | | changed by PyType_Modified. (GH-122182) Update datetime module and test_type_cache.py to not call PyType_Modified.
* gh-122085: Use include files for `whatsnew/3.12.rst` deprecations (#122093)Hugo van Kemenade2024-07-244-146/+77
|
* Fix typo in news document (GH-122209)Xie Yanbo2024-07-241-1/+1
|
* GH-120754: Add more tests around seek + readall (#122103)Cody Maloney2024-07-241-0/+19
| | | | | | | | | | In the process of speeding up readall, A number of related tests (ex. large file tests in test_zipfile) found problems with the change I was making. This adds I/O tests to specifically test these cases to help ensure they don't regress and hopefully make debugging easier. This is part of the improvements from https://github.com/python/cpython/pull/121593#issuecomment-2222261986
* gh-122029: Log call events in sys.setprofile when it's a method with c ↵Tian Gao2024-07-233-0/+28
| | | | | function (GH-122072) Log call events in sys.setprofile when it is a method with a C function.
* gh-122199: Skip test_slot_wrappers When Checking For Refleaks (gh-122200)Eric Snow2024-07-231-1/+5
|
* gh-119180: Add `annotationlib` module to support PEP 649 (#119891)Jelle Zijlstra2024-07-2315-510/+1815
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-117657: Skip tests that use threads after fork (#122194)Sam Gross2024-07-231-0/+3
| | | | These tests fail when run under thread sanitizer due to the use of fork and threads.
* gh-117482: Expand Tests for Slot Wrappers of Inherited Slots of Static ↵Eric Snow2024-07-232-10/+66
| | | | Builtin Types (gh-122192)
* gh-122129: Improve support of method descriptors and wrappers in the help ↵Serhiy Storchaka2024-07-233-3/+18
| | | | title (GH-122157)
* gh-120974: Make _asyncio._leave_task atomic in the free-threaded build (#122139)Sam Gross2024-07-234-45/+48
| | | | | | | * gh-120974: Make _asyncio._leave_task atomic in the free-threaded build Update `_PyDict_DelItemIf` to allow for an argument to be passed to the predicate.
* gh-122163: Add notes for JSON serialization errors (GH-122165)Serhiy Storchaka2024-07-238-66/+135
| | | This allows to identify the source of the error.
* gh-120974: Use common freelist code in asyncio (#122132)Sam Gross2024-07-233-70/+10
| | | | | This refactors asyncio to use the common freelist helper functions and macros. As a side effect, the freelist for _asyncio.Future is now re-enabled in the free-threaded build.
* gh-121973: Fix flaky test_pyrepl tests (GH-122140)Sam Gross2024-07-231-4/+4
| | | | | | | | | | | | | | | This fixes the flakiness in: * test_inspect_keeps_globals_from_inspected_file * test_inspect_keeps_globals_from_inspected_module The output already includes newlines. Adding newlines for every entry in the output list introduces non-determinism because it added '\n' in places where stdout is flushed or some buffer becomes full. The regex also needed to be updated because pyrepl includes control characters -- the visible output on each line doesn't immediately follow a newline character. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* GH-122155: Fix cases generator to correctly compute 'peek' offset for error ↵Mark Shannon2024-07-234-6/+68
| | | | handling (GH-122158)
* Docs: Use cross-reference to `os.uname` in `sysconfig.get_platform` (#122083)Ville Skyttä2024-07-231-1/+1
|
* GH-121970: Remove ``escape4chm`` (#122065)Adam Turner2024-07-233-60/+0
|
* gh-121832: Skip subinterpreter static type check on iOS to restore test ↵Russell Keith-Magee2024-07-231-1/+2
| | | | suite. (GH-122150)
* gh-122088: Copy the coroutine status of the underlying callable in ↵Sebastian Rittau2024-07-233-0/+31
| | | | | | `@warnings.deprecated` (#122086) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Fix typos in comments and exception message (#122147)Xie Yanbo2024-07-233-3/+3
|
* gh-120974: Make _asyncio._enter_task atomic in the free-threaded build (#122138)Sam Gross2024-07-231-10/+5
| | | | Use `PyDict_SetDefaultRef` to set the current task in a single operation under the dictionary's lock.
* gh-121996: Introduce --disable-safety and --enable-slower-safety options ↵Donghee Na2024-07-237-7/+93
| | | | | | | | | | | | | (#122054) * gh-121996: Introduce --disable-safty and --enable-slower-safty * Update GA * fix * Address code review * Update CI
* gh-121637: Syntax error for optimized-away incorrect await (#121656)Jelle Zijlstra2024-07-225-55/+107
| | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Refactor test_capi.test_long (GH-122113)Serhiy Storchaka2024-07-221-179/+66
| | | | | Share common code for tests for PyLong_As*() functions. Co-authored-by: Victor Stinner <vstinner@python.org>
* Revert "gh-121946: Temporarily switch to llvm-17 in TSan CI (#121975)" (#122032)Sam Gross2024-07-221-5/+5
| | | | | This reverts commit 12c1afa9d153fbdf78c970054c08c755f504c5e9. The LLVM 18 Ubuntu package is working now.
* gh-121404: move calculation of module start location from compiler_body up ↵Irit Katriel2024-07-221-20/+28
| | | | to compiler_codegen (#122127)
* gh-100240: Use a consistent implementation for freelists (#121934)Sam Gross2024-07-2227-700/+290
| | | | | | | | This combines and updates our freelist handling to use a consistent implementation. Objects in the freelist are linked together using the first word of memory block. If configured with freelists disabled, these operations are essentially no-ops.
* gh-121795: Improve performance of set membership testing from set arguments ↵HarryLHW2024-07-223-23/+47
| | | | (#121796)
* Remove now unused function from itertools tests (#122100)Bradley Reynolds2024-07-221-20/+0
|
* gh-119698: deprecate ``symtable.Class.get_methods`` (#121902)Bénédikt Tran2024-07-225-16/+53
|
* gh-121957: Emit audit events for `python -i` and `python -m asyncio` (GH-121958)Łukasz Langa2024-07-226-2/+36
| | | | Relatedly, emit the `cpython.run_startup` event from the Python version of `PYTHONSTARTUP` handling.
* gh-111051: [tests] Wait a second to support filesystems with low-resolution ↵Łukasz Langa2024-07-221-0/+4
| | | | mtime (GH-121959)
* Docs: spelling and grammar fixes (#122084)Ville Skyttä2024-07-2222-30/+30
| | | | | | Corrected some grammar and spelling issues in documentation. Co-authored-by: Russell Keith-Magee <russell@keith-magee.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-120522: Apply App Store compliance patch during installation (#121947)Russell Keith-Magee2024-07-219-2/+207
| | | Adds a --with-app-store-compliance configuration option that patches out code known to be an issue with App Store review processes. This option is applied automatically on iOS, and optionally on macOS.
* gh-122096: Remove accidentally left debugging prints (#122097)Kirill Podoprigora2024-07-211-2/+0
|
* Merge Ubuntu test matrices in CI (#121813)Sviatoslav Sydorenko (Святослав Сидоренко)2024-07-212-26/+20
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-118124: fix assert related C++ checks on Solaris/Illumos (#121974)Jakub Kulík2024-07-211-5/+5
| | | Fix check for static_assert() for C++ on some platforms.
* Delete stale note about mp.Lock.acquire/SIGINT (#120929)Andrey Mishchenko2024-07-211-11/+0
|
* gh-121977: Add tips for handling unhashable data (#122075)Raymond Hettinger2024-07-211-0/+6
|
* GH-73991: Support preserving metadata in `pathlib.Path.copytree()` (#121438)Barney Gale2024-07-203-3/+45
| | | | | Add *preserve_metadata* keyword-only argument to `pathlib.Path.copytree()`, defaulting to false. When set to true, we copy timestamps, permissions, extended attributes and flags where available, like `shutil.copystat()`.
* GH-73991: Add `pathlib.Path.rmtree()` (#119060)Barney Gale2024-07-207-5/+448
| | | | | | | | | | | Add a `Path.rmtree()` method that removes an entire directory tree, like `shutil.rmtree()`. The signature of the optional *on_error* argument matches the `Path.walk()` argument of the same name, but differs from the *onexc* and *onerror* arguments to `shutil.rmtree()`. Consistency within pathlib is probably more important. In the private pathlib ABCs, we add an implementation based on `walk()`. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Docs: Fix duplicate object description warnings (#122068)Adam Turner2024-07-203-1/+7
|
* gh-121988: Fix test hang when pyrepl is not available (#121990)Sam Gross2024-07-201-1/+5
| | | | Also explicitly fail the test if we timeout while waiting for output so that this failure mode is caught earlier.
* GH-121970: Modernise the patchlevel extension (#121995)Adam Turner2024-07-203-54/+62
|
* Docs: Fix a typo in What's New in Python 3.13 (#122051)Rafael Fontenelle2024-07-201-1/+1
|
* gh-121621: Disable asyncio freelist in free-threaded build (#122046)Sam Gross2024-07-191-5/+17
| | | | The futureobj freelist isn't thread-safe. We intend to re-enable the freelist in a thread-safe way for 3.14 (but not 3.13).
* gh-120973: Fix thread-safety issues with `threading.local` (#121655)mpage2024-07-193-150/+245
| | | | | | This is a small refactoring to the current design that allows us to avoid manually iterating over threads. This should also fix gh-118490.
* gh-122026: Fix identification of mismatched parentheses inside f-strings ↵Pablo Galindo Salgado2024-07-193-0/+6
| | | | (#122028)
* gh-122014: Account for abi_thread in test_sysconfig.test_user_similar ↵Karolina Surma2024-07-191-2/+2
| | | | (gh-122017)
* gh-118830: Bump pickle.DEFAULT_PROTOCOL to 5 (GH-119340)Rodrigo Oliveira2024-07-196-20/+33
|