summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-117597: Clarify exception handling in the tutorial (#117681)Nice Zombies2024-04-091-3/+3
|
* gh-117648: Amend NEWS entry (#117697)Erlend E. Aasland2024-04-091-1/+1
| | | | Make the wording more vague; the performance impact varies a lot depending on platform and input.
* Merge branch 'main' of https://github.com/python/cpythonThomas Wouters2024-04-0921-92/+548
|\
| * gh-117663: [Enum] fix _simple_enum's detection of aliases (GH-117664)Ethan Furman2024-04-093-29/+97
| |
| * gh-117534: Add checking for input parameter in iso_to_ymd (#117543)Vlad48962024-04-094-7/+16
| | | | | | | | | | | | | | Moves the validation for invalid years in the C implementation of the `datetime` module into a common location between `fromisoformat` and `fromisocalendar`, which improves the error message and fixes a failed assertion when parsing invalid ISO 8601 years using one of the "ISO weeks" formats. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
| * Revert "gh-106023: Update What's New in 3.13: _PyObject_FastCall() ↵Victor Stinner2024-04-091-0/+5
| | | | | | | | | | | | | | | | (#117633)" (#117676) This reverts commit 9a12f5d1c19dee1f89684be776680aeaf117be5b. I was wrong: the _PyObject_FastCall() function was removed. But we kept the _PyObject_FastCallDict() function.
| * gh-117658: Fix check_dump_traceback_threads in free-threaded build (#117659)Sam Gross2024-04-091-1/+3
| | | | | | | | With the GIL disabled, the waiting thread may still be in the `self.running.set() ` call when faulthandler dumps tracebacks.
| * gh-116720: Fix corner cases of taskgroups (#117407)Guido van Rossum2024-04-098-13/+183
| | | | | | | | | | | | | | | | | | | | This prevents external cancellations of a task group's parent task to be dropped when an internal cancellation happens at the same time. Also strengthen the semantics of uncancel() to clear self._must_cancel when the cancellation count reaches zero. Co-Authored-By: Tin Tvrtković <tinchester@gmail.com> Co-Authored-By: Arthur Tacca
| * gh-116622: Enable `test_doctest` on platforms that don't support ↵Malcolm Smith2024-04-091-3/+8
| | | | | | | | | | subprocesses (#116758) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
| * gh-117516: Implement typing.TypeIs (#117517)Jelle Zijlstra2024-04-095-39/+236
| | | | | | | | | | | | See PEP 742. Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* | Post 3.13.0a6Thomas Wouters2024-04-091-1/+1
| |
* | Python 3.13.0a6v3.13.0a6Thomas Wouters2024-04-09122-346/+1315
|/
* gh-107674: Remove some unnecessary code in instrumentation code (GH-117393)Tian Gao2024-04-091-1/+1
|
* gh-117648: Improve performance of os.join (#117654)Nice Zombies2024-04-093-2/+4
| | | | | Replace map() with a method call in the loop body. Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
* gh-117182: Allow lazily loaded modules to modify their own __class__Chris Markiewicz2024-04-093-4/+38
|
* gh-117645: Skip test_dynamic global specialization on WASI (#117646)Victor Stinner2024-04-081-2/+2
| | | | Skip test_load_global_specialization_failure_keeps_oparg() of test_dynamic on WASI build. The test uses too much stack memory.
* Enhance regrtest get_signal_name(): support shell exit code (#117647)Victor Stinner2024-04-082-0/+9
|
* gh-81322: support multiple separators in StreamReader.readuntil (#16429)Bruce Merry2024-04-084-21/+103
|
* gh-117642: Fix PEP 737 implementation (GH-117643)Serhiy Storchaka2024-04-085-8/+42
| | | | | * Fix implementation of %#T and %#N (they were implemented as %T# and %N#). * Restore tests removed in gh-116417.
* gh-117439: Make refleak checking thread-safe without the GIL (#117469)Sam Gross2024-04-089-44/+62
| | | | | This keeps track of the per-thread total reference count operations in PyThreadState in the free-threaded builds. The count is merged into the interpreter's total when the thread exits.
* gh-117547: Fix mimalloc compile error on OpenBSD (#117548)Sam Gross2024-04-081-2/+2
|
* gh-111926: Make weakrefs thread-safe in free-threaded builds (#117168)mpage2024-04-0817-327/+491
| | | | | | | | | Most mutable data is protected by a striped lock that is keyed on the referenced object's address. The weakref's hash is protected using the weakref's per-object lock. Note that this only affects free-threaded builds. Apart from some minor refactoring, the added code is all either gated by `ifdef`s or is a no-op (e.g. `Py_BEGIN_CRITICAL_SECTION`).
* gh-96471: Correct documentation for asyncio queue shutdown (#117621)Laurie O2024-04-083-6/+9
|
* gh-117293: Fix race condition in run_workers.py (#117298)Sam Gross2024-04-081-16/+21
| | | | | | | | | The worker thread may still be alive after it enqueues it's last result, which can lead to a delay of 30 seconds after the test finishes. This happens much more frequently in the free-threaded build with the GIL disabled. This changes run_workers.py to track of live workers by enqueueing a `WorkerExited()` instance before the worker exits.
* gh-117552: Add timeout in HTTPHandlerTest (#117553)Sam Gross2024-04-081-1/+2
|
* gh-116303: Skip tests if C recursion limit is unavailable (GH-117368)Erlend E. Aasland2024-04-0814-35/+32
| | | | | The test suite fetches the C recursion limit from the _testcapi extension module. Test extension modules can be disabled using the --disable-test-modules configure option.
* gh-106023: Update What's New in 3.13: _PyObject_FastCall() (#117633)Victor Stinner2024-04-081-5/+0
| | | The function _PyObject_FastCall() was restored.
* gh-111726: Explicitly close database connections in sqlite3 doctests (#111730)Nikita Sobolev2024-04-081-0/+27
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-111726: Remove some doctests from sqlite3 docs (#117623)Erlend E. Aasland2024-04-081-36/+7
| | | | | * remove load extension doctest since we cannot skip it conditionally * remove sys.unraisablehook example; using unraisable hooks is not "an improved debug experience"
* gh-113317: Remove unused INVALID constant in Argument Clinic (#117624)Victor Stinner2024-04-082-5/+0
|
* gh-111726: Cleanup test files after running sqlite3 doctest (#117604)Hugo van Kemenade2024-04-081-0/+8
| | | | Remove all temporary databases in a dedicated 'testcleanup' step at the end of the file.
* gh-117594: Require cpu resource to test_search_anchor_at_beginning (gh-117595)Donghee Na2024-04-071-1/+4
|
* Fix reference in code.rst (#117615)Anita Hammer2024-04-071-1/+1
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Cases generator: Remove type_prop and passthrough (#117614)Ken Jin2024-04-073-33/+22
|
* gh-117584: Raise TypeError for non-paths in posixpath.relpath() (GH-117585)Nice Zombies2024-04-073-1/+3
|
* GH-117512: Allow 64-bit JIT operands on 32-bit platforms (GH-117527)Brandt Bucher2024-04-064-31/+47
|
* gh-96471: Add asyncio queue shutdown (#104228)Laurie O2024-04-065-3/+301
| | | Co-authored-by: Duprat <yduprat@gmail.com>
* gh-116622: Test updates for Android (#117299)Malcolm Smith2024-04-058-14/+21
| | | | | | | - re-enable test_fcntl_64_bit on Linux aarch64, but disable it on all Android ABIs - use support.setswitchinterval in all relevant tests - skip test_fma_zero_result on Android x86_64 - accept EACCES when calling os.get_terminal_size on Android
* GH-77609: Add recurse_symlinks argument to `pathlib.Path.glob()` (#117311)Barney Gale2024-04-055-95/+34
| | | | | | | | | | | | | | | Replace tri-state `follow_symlinks` with boolean `recurse_symlinks` argument. The new argument controls whether symlinks are followed when expanding recursive `**` wildcards. The possible argument values correspond as follows: follow_symlinks recurse_symlinks =============== ================ False N/A None False True True We therefore drop support for not following symlinks when expanding non-recursive pattern parts; it wasn't requested in the original issue, and it's a feature not found in any shells. This makes the API a easier to grok by eliminating `None` as an option. No news blurb as `follow_symlinks` was new in 3.13.
* gh-116608: Ignore UTF-16 BOM in importlib.resources._functional tests ↵Petr Viktorin2024-04-051-4/+10
| | | | | | | | | | | | | (GH-117569) gh-116609: Ignore UTF-16 BOM in importlib.resources._functional tests To test the `errors` argument, we read a UTF-16 file as UTF-8 with "backslashreplace" error handling. However, the utf-16 codec adds an endian-specific byte-order mark, so on big-endian machines the expectation doesn't match the test file (which was saved on a little-endian machine). Use endswith to ignore the BOM.
* gh-111140: PyLong_From/AsNativeBytes: Take *flags* rather than just ↵Steve Dower2024-04-056-88/+319
| | | | *endianness* (GH-116053)
* GH-114847: Speed up `posixpath.realpath()` (#114848)Barney Gale2024-04-053-34/+64
| | | | | | | | | | | Apply the following optimizations to `posixpath.realpath()`: - Remove use of recursion - Construct child paths directly rather than using `join()` - Use `os.getcwd[b]()` rather than `abspath()` - Use `startswith(sep)` rather than `isabs()` - Use slicing rather than `split()` Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-116608: importlib.resources: Un-deprecate functional API & add ↵Petr Viktorin2024-04-056-15/+533
| | | | subdirectory support (GH-116609)
* gh-117457: Regen executor cases post PR #117477 (#117559)Erlend E. Aasland2024-04-051-2/+8
|
* gh-116303: Don't build xxlimited and xxlimited_35 if --disable-test-modules ↵Erlend E. Aasland2024-04-052-4/+4
| | | | is given (#117554)
* GH-117457: Correct pystats uop "miss" counts (GH-117477)Michael Droettboom2024-04-044-144/+548
|
* gh-117549: Match declaration order for _Py_BackoffCounter initializer (#117551)Michael Droettboom2024-04-041-1/+1
| | | Otherwise it might not compile with C++ (or certain C compilers/flags?).
* gh-117474: Skip GIL test in free-threaded build (#117475)Sam Gross2024-04-041-0/+1
| | | | In the free-threaded build, the GIL will typically be disabled so `py-bt` will not show threads waiting on the GIL.
* gh-112075: Make _PyDict_LoadGlobal thread safe (#117529)Dino Viehland2024-04-046-29/+23
| | | Make _PyDict_LoadGlobal threadsafe
* gh-117478: Add `@support.requires_gil_enabled` decorator (#117479)Sam Gross2024-04-047-11/+23
| | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>