summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-111926: Update _PyWeakref_IS_DEAD to be thread-safe (gh-112267)Donghee Na2023-11-191-4/+11
|
* gh-112266: Remove `(if defined)` part from `__dict__` and `__weakref__` ↵Nikita Sobolev2023-11-193-18/+20
| | | | docstrings (#112268)
* gh-111965: Using critical sections to make ``io.StringIO`` thread safe. ↵AN Long2023-11-192-30/+194
| | | | (gh-112116)
* gh-110383: Explained which error message is generated when there is an ↵Unique-Usman2023-11-191-2/+1
| | | | | | unhandled exception (#111574) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-110383: Fix documentation profile cumtime fix (#112221)Alex Ptakhin2023-11-191-2/+2
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* IDLE: Fix test_debugger bug and buildbot failures (#112258)Terry Jan Reedy2023-11-191-5/+7
| | | | | | | | | Missing "requires('gui')" causes Tk() to fail when no gui. This caused CI Hypothesis test to fail, but I did not understand the its error message. Then buildbots failed. IdbTest failed on draft Bdb replacement because so different. Simplified version works on old and new.
* gh-79871: IDLE - Fix and test debugger module (#11451)Anthony Shaw2023-11-195-77/+400
| | | | | | | Add docstrings to the debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); In Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Make other code changes. Expand test_debugger coverage from 19% to 66%. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-112186: Improve test case `test_loop_is_closed_resource_warnings` (#112187)DPR2023-11-191-6/+3
|
* gh-112213: Update _weakref module to use new AC feature (gh-112250)Donghee Na2023-11-192-25/+31
|
* gh-111903: Update AC to support "pycore_critical_section.h" header (gh-112251)Donghee Na2023-11-197-7/+8
|
* gh-111965: Use critical sections to make io.TextIOWrapper thread safe ↵AN Long2023-11-182-39/+181
| | | | (gh-112193)
* gh-112213: Add @critical_section target directive to Argument Clinic (gh-112232)Donghee Na2023-11-182-4/+191
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-110109: Test pure functionality of `pathlib.Path` user subclasses (#112242)Barney Gale2023-11-181-12/+4
| | | | | | | | | | | Add `PurePathTest` as a superclass of `PathTest`, and therefore also `PathSubclassTest`. This adds coverage of pure functionality in user subclasses of `pathlib.Path`. Remove `PosixPathAsPureTest` and `WindowsPathAsPureTest`, as they now duplicate `PosixPathTest` and `WindowsPathTest`. This makes the MROs of test unit classes match the MROs of pathlib classes.
* GH-110109: Fix misplaced tests for `pathlib.WindowsPath.owner()` and ↵Barney Gale2023-11-181-10/+10
| | | | | | `group()` (#112239) Move test methods from `WindowsPathAsPureTest` to `WindowsPathTest` unit. The former test unit is intended to exercise only pure path functionality.
* gh-112234: Remove the toplevel parameter in converttuple() (GH-112235)Serhiy Storchaka2023-11-181-16/+6
| | | It is and always was 0.
* gh-111926: Update _weakref to be threadsafe in --disable-gil build (gh-112189)Donghee Na2023-11-181-9/+20
|
* gh-110319: Assert type_version != 0 before using it (#112226)Guido van Rossum2023-11-183-6/+6
| | | | | | - Ensure that `assert(type_version != 0);` always comes *before* using `type_version` Also: - In cases_generator, rename `-v` to from `--verbose` to `--viable`
* gh-111810: Fix `test_repr_deep` from `test_userlist` on WASI (#112197)Nikita Sobolev2023-11-181-0/+8
| | | Co-authored-by: Brett Cannon <brett@python.org>
* GH-111808: Make the default value for `test.support.infinite_recursion()` ↵Brett Cannon2023-11-174-4/+16
| | | | | conditional on compiler optimizations (GH-112223) Co-authored-by: Victor Stinner <vstinner@python.org>
* Fix typo in documentation of `importlib.metadata` (GH-112099)Charlie Zhao2023-11-171-1/+1
| | | Fix minor typo in importlib doc
* A few more cases_generator cleanups (#112220)Guido van Rossum2023-11-172-2/+2
|
* gh-112026: Update What's New: _PyObject_Vectorcall() was restored (#112171)Victor Stinner2023-11-171-14/+0
|
* Various small improvements to uop debug output (#112218)Guido van Rossum2023-11-172-13/+20
| | | | | - Show uop name in Error/DEOPT messages - Add target to some messages - Expose uop_name() as _PyUopName()
* gh-106529: Cleanups split off gh-112134 (#112214)Guido van Rossum2023-11-177-8/+29
| | | | | | | - Double max trace size to 256 - Add a dependency on executor_cases.c.h for ceval.o - Mark `_SPECIALIZE_UNPACK_SEQUENCE` as `TIER_ONE_ONLY` - Add debug output back showing the optimized trace - Bunch of cleanups to Tools/cases_generator/
* Fix syntax in CODEOWNERS file (#112210)Alex Waygood2023-11-171-1/+2
|
* gh-112194: Convert more examples to doctests in `typing.py` (#112195)Nikita Sobolev2023-11-171-31/+43
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-110109: Speed up `pathlib._PathBase.resolve()` (#110412)Barney Gale2023-11-171-22/+17
| | | | | | | | - Add fast path to `_split_stack()` - Skip unnecessarily resolution of the current directory when a relative path is given to `resolve()` - Remove stat and target caches, which slow down most `resolve()` calls in practice. - Slightly refactor code for clarity.
* Tweak my interests (and Mark Shannon's :-) in CODEOWNERS (#112206)Guido van Rossum2023-11-171-2/+8
|
* GH-110109: Churn `pathlib.PurePath` methods (#112012)Barney Gale2023-11-172-204/+204
| | | | | | | | | | | | | | Re-arrange `pathlib.PurePath` methods in source code. No other changes. The `PurePath` implementations of certain special methods, such as `__eq__()` and `__hash__()`, are not usually applicable to user subclasses of `_PathBase`. To facilitate their removal, another patch will split the `PurePath` class into `_PurePathBase` and `PurePath`, with the latter providing these special methods. This patch prepares the ground for splitting `PurePath`. It's similar to e8d77b0, which preceded splitting `Path`. By churning the methods here, subsequent patches will be easier to review and less likely to break things.
* gh-110481, doc: Add "immortal" term to the glossary (#112180)Victor Stinner2023-11-178-21/+32
|
* gh-94309: "What's new in Python 3.12": improve deprecation notice for ↵Ori Avtalion2023-11-171-2/+3
| | | | typing.Hashable and typing.Sized (#112196)
* gh-112070: make `functools.lru_cache` threadsafe in --disable-gil build ↵Wanderxjtu2023-11-172-6/+25
| | | | | | | | | | | | | | | | | (gh-112111) * gh-112070: make `functools.lrucacle` threadsafe in --disable-gil build * gh-112070: update generate `functoolsmodule` files * gh-112070: add NEWS file * Delete Misc/NEWS.d/next/Library/2023-11-15-20-19-45.gh-issue-112070.q6OhcU.rst * gh-112070: reformat functoolsmodule.c --------- Co-authored-by: Sam Gross <colesbury@gmail.com>
* gh-112165: Fix typo in `__main__.py` (#112183)Terry Jan Reedy2023-11-171-1/+1
| | | Change '[2]' to '[1]' to get second argument.
* gh-111799: Fix `testRecursiveRepr` from `test_fileio` on WASI (GH-112181)Nikita Sobolev2023-11-161-1/+3
|
* gh-111482: Fix time_clockid_converter() on AIX (#112170)Victor Stinner2023-11-161-2/+2
| | | clockid_t is defined as long long on AIX.
* gh-111800: Fix `test_recursive_repr` from `test_io` under WASI to not ↵Nikita Sobolev2023-11-161-8/+4
| | | | recurse so deeply (GH-112150)
* Remove `imp_dummy_def` from `Tools/c-analyzer/cpython/ignored.tsv` (gh-112122)Nikita Sobolev2023-11-161-1/+0
| | | It was removed in 3.12, no need to keep the ignore.
* gh-111956: Add thread-safe one-time initialization. (gh-111960)Sam Gross2023-11-1611-955/+1061
|
* gh-111881: Import lazily zipfile in support.script_helper (#112172)Victor Stinner2023-11-161-1/+2
| | | It allows running the test suite when the zlib extension is missing.
* gh-112155: Run `typing.py` doctests as part of `test_typing` (#112156)Nikita Sobolev2023-11-162-2/+8
|
* GH-112152: Fix typo in `typing.override` docstring (#112158)Qua272023-11-161-1/+1
|
* gh-111798: Use lower Py_C_RECURSION_LIMIT in debug mode (#112124)Victor Stinner2023-11-165-5/+37
| | | | | | | * Run again test_ast_recursion_limit() on WASI platform. * Add _testinternalcapi.get_c_recursion_remaining(). * Fix test_ast and test_sys_settrace: test_ast_recursion_limit() and test_trace_unpack_long_sequence() now adjust the maximum recursion depth depending on the the remaining C recursion.
* [doc] Make subprocess.wait documentation more precise (#98700)Luis Pedro Coelho2023-11-161-3/+4
| | | | | | | | | | [doc] Make subprocess.wait doc more precise An active loop is only used when the `timeout` parameter is used on POSIX. When no timeout is used, the code calls `os.waitpid` internally (which puts the process on a sleep status). On Windows, the internal Windows API call accepts a timeout parameter, so that is delegated to the OS.
* gh-110812: Isolating Extension Modules HOWTO: List GC-related gotchas ↵Petr Viktorin2023-11-161-6/+97
| | | | | | (GH-111504) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* gh-111916: Make hashlib related modules thread-safe without the GIL (#111981)Tomas R2023-11-1510-137/+188
| | | | | Always use an individual lock on hash objects when in free-threaded builds. Fixes #111916
* gh-111811: Fix test_recursive_repr for WASI (#112130)Kushal Das2023-11-151-0/+1
|
* gh-112088: Run autoreconf in GHA check_generated_files (#112090)Victor Stinner2023-11-159-160/+131
| | | | | | | | | | | The "Check if generated files are up to date" job of GitHub Actions now runs the "autoreconf -ivf -Werror" command instead of the "make regen-configure" command to avoid depending on the external quay.io server. Add Tools/build/regen-configure.sh script to regenerate the configure with an Ubuntu container image. The "quay.io/tiran/cpython_autoconf:271" container image (https://github.com/tiran/cpython_autoconf) is no longer used.
* gh-112026: Add again _PyThreadState_UncheckedGet() function (#112121)Victor Stinner2023-11-152-0/+6
| | | | Add again the private _PyThreadState_UncheckedGet() function as an alias to the new public PyThreadState_GetUnchecked() function.
* gh-96954: Don't run regen-unicodedata in regen-all (#112120)Victor Stinner2023-11-151-3/+3
| | | | | | The "make regen-unicodedata" should now be run manually. By the default, it requires an Internet connection, which is not always the case. Some Linux distributions build Linux packages in isolated environment (without network).
* gh-112026: Restore removed _PyDict_GetItemStringWithError() (#112119)Victor Stinner2023-11-153-1/+17
| | | | Restore the removed _PyDict_GetItemStringWithError() function. It is used by numpy.