summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.14.0a3v3.14.0a3Hugo van Kemenade11 days120-279/+1200
|
* gh-127085: Add a test skip if multiprocessing isn't available (#128019)Russell Keith-Magee11 days1-1/+4
| | | Add a test skip if multiprocessing isn't available.
* gh-127146: Emscripten clean up test suite (#127984)Hood Chatham11 days12-82/+19
| | | Removed test skips that are no longer required as a result of Emscripten updates.
* Free arena on _PyCompile_AstOptimize failure in Py_CompileStringObject ↵Berker Peksag11 days1-0/+1
| | | | | | (GH-127910) After commit 10a91d7e9 introduced arena cleanup, commit 2dfbd4f36 removed the free call when _PyCompile_AstOptimize fails.
* gh-126907: make `atexit` thread safe in free-threading (#127935)Peter Bierma11 days4-88/+126
| | | | Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-127085: fix some data races in memoryview in free-threading (#127412)Edward Xu11 days3-8/+52
|
* Revert "gh-127586: properly restore blocked signals in resource_tracker.py ↵Hugo van Kemenade11 days3-22/+3
| | | | | (GH-127587)" (#127983) This reverts commit 46006a1b355f75d06c10e7b8086912c483b34487.
* Fix typo in itertools docs (gh-127995)Gugubo11 days1-1/+1
|
* gh-127864: Fix compiler warning (-Wstringop-truncation) (GH-127878)Tomas R.11 days1-2/+3
|
* gh-127896: Add missing documentation of `PySequence_In` (GH-127979)Yuki Kobayashi12 days3-0/+15
| | | | Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* gh-111178: fix UBSan failures in `_elementtree.c` (#127982)Bénédikt Tran12 days1-53/+80
|
* gh-125588: Allow to regenerate the parser with Python < 3.12 (#127969)Pablo Galindo Salgado12 days2-3/+9
| | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* GH-126985: Don't override venv detection with PYTHONHOME (#127968)Filipe Laíns 🇵🇸12 days2-3/+38
|
* gh-127586: properly restore blocked signals in resource_tracker.py (GH-127587)Stephen Hansen12 days3-3/+22
| | | | | | | | | | | | | | * Correct pthread_sigmask in resource_tracker to restore old signals Using SIG_UNBLOCK to remove blocked "ignored signals" may accidentally cause side effects if the calling parent already had said signals blocked to begin with and did not intend to unblock them when creating a pool. Use SIG_SETMASK instead with the previous mask of blocked signals to restore the original blocked set. * Adding resource_tracker blocked signals test Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-119786: Fix miscellaneous typos in ↵Stan Ulbrych12 days1-3/+3
| | | | `InternalDocs/interpreter_definition.md` (#127957)
* getpath: Add comments highlighing details of the pyvenv.cfg detection (#127966)Filipe Laíns 🇵🇸13 days1-0/+11
|
* gh-127599: Fix _Py_RefcntAdd missing calls to ↵Ed Nutting13 days3-0/+13
| | | | | | | | _Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC (#127717) Previously, `_Py_RefcntAdd` hasn't called `_Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC` which is incorrect. Now it has been fixed.
* Clarify ast docs to use a less confusing example for `ast.ParamSpec` (#127955)Steve C13 days1-2/+2
| | | Fix typo in ast docs: ParamSpec defaults
* gh-127353: Allow to force color output on Windows V2 (#127926)Andrey Efremov14 days3-38/+51
|
* gh-127852: add remark about ',' separator (#127854)Sergey B Kirpichev14 days1-1/+3
| | | | | | | | | Specify that it is valid for floats and ints with 'd' presentation and an error otherwise. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix typo in docstring: quadruple double quotes (#127913)Totosuki14 days1-1/+1
|
* gh-127747: Resolve BytesWarning in test.support.strace_helper (#127849)Cody Maloney14 days1-4/+5
| | | | | | | | | | | | | | | | | | | | | The strace_helper code has a _make_error function to simplify making StraceResult objects in error cases. That takes a details parameter which is either a caught OSError or `bytes`. If it's bytes, _make_error would implicitly coerce that to a str inside of a f-string, resulting in a BytesWarning. It's useful to see if it's an OSError or bytes when debugging, resolve by changing to format with repr(). This is an error message on an internal helper. A non-zero exit code occurs if the strace binary isn't found, and no events will be parsed in that case (there is no output). Handle that case by checking exit code before checking for events. Still asserting around events rather than returning false, so that hopefully if there's some change to `strace` that breaks the parsing, will see that as a test failure rather than silently loosing strace tests because they are auto-disabled.
* gh-115999: Specialize loading attributes from modules in free-threaded ↵mpage2024-12-1315-179/+437
| | | | | | | | | builds (#127711) We use the same approach that was used for specialization of LOAD_GLOBAL in free-threaded builds: _CHECK_ATTR_MODULE is renamed to _CHECK_ATTR_MODULE_PUSH_KEYS; it pushes the keys object for the following _LOAD_ATTR_MODULE_FROM_KEYS (nee _LOAD_ATTR_MODULE). This arrangement avoids having to recheck the keys version. _LOAD_ATTR_MODULE is renamed to _LOAD_ATTR_MODULE_FROM_KEYS; it loads the value from the keys object pushed by the preceding _CHECK_ATTR_MODULE_PUSH_KEYS at the cached index.
* Minor readability improvements for the itertools recipes (gh-127928)Raymond Hettinger2024-12-131-39/+35
|
* gh-126024: unicodeobject: optimize find_first_nonascii (GH-127790)Inada Naoki2024-12-131-9/+14
| | | Remove 1 branch.
* gh-127691: add type checks when using `PyUnicodeError` objects (GH-127694)Bénédikt Tran2024-12-133-68/+157
|
* gh-102471, PEP 757: Add PyLong import and export API (#121339)Victor Stinner2024-12-139-0/+576
| | | | | Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com> Co-authored-by: Steve Dower <steve.dower@microsoft.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-127906: Test the limited C API in test_cppext (#127916)Victor Stinner2024-12-134-3/+26
|
* gh-127870: Detect recursive calls in ctypes _as_parameter_ handling (#127872)Victor Stinner2024-12-133-3/+33
|
* GH-126833: Dumps graphviz representation of executor graph. (GH-126880)Mark Shannon2024-12-139-2/+230
|
* gh-126868: Add freelist for compact int objects (GH-126865)Pieter Eendebak2024-12-138-55/+102
|
* GH-125174: Don't use `UINT32_MAX` in header file (GH-127863)Mark Shannon2024-12-131-1/+1
|
* link to the correct output method in documentation (#127857)Viktor Kálmán2024-12-131-1/+1
|
* Document PyObject_SelfIter (#127861)Miro Hrončok2024-12-132-0/+9
|
* gh-127845: Minor improvements to iOS test runner script (#127846)Russell Keith-Magee2024-12-123-20/+53
| | | | | | Uses symlinks to install iOS framework into testbed clone, adds a verbose mode to the iOS runner to hide most Xcode output, adds another mechanism to disable terminal colors, and ensures that stdout is flushed after every write.
* Fix typo in traceback docs (#127884)Daniel Haag2024-12-121-1/+1
|
* GH-127724: don't use sysconfig to calculate the venv local include path ↵Filipe Laíns 🇵🇸2024-12-121-3/+12
| | | | (#127731)
* Revert "gh-127353: Allow to force color output on Windows (#127354)" (#127889)Hugo van Kemenade2024-12-123-48/+8
| | | This reverts commit 365451e28368db46ae89a3a990d85c10c2284aa2.
* Fix typos in `Lib/_pydecimal.py` (#127700)Stan Ulbrych2024-12-121-2/+2
|
* gh-127353: Allow to force color output on Windows (#127354)Andrey Efremov2024-12-123-8/+48
|
* gh-127865: Fix build failure for systems without thread local support ↵velemas2024-12-122-4/+5
| | | | | | (GH-127866) This PR fixes the build issue introduced by the commit 628f6eb from GH-112207 on systems without thread local support.
* gh-127879: Fix data race in `_PyFreeList_Push` (#127880)Sam Gross2024-12-121-1/+1
| | | | | Writes to the `ob_tid` field need to use atomics because it may be concurrently read by a non-locking dictionary, list, or structmember read.
* GH-127807: pathlib ABCs: remove `PathBase._unsupported_msg()` (#127855)Barney Gale2024-12-125-44/+52
| | | | | This method helped us customise the `UnsupportedOperation` message depending on the type. But we're aiming to make `PathBase` a proper ABC soon, so `NotImplementedError` is the right exception to raise there.
* GH-125174: Fix compiler warning (GH-127860)Mark Shannon2024-12-121-1/+1
| | | Fix compiler warning
* GH-127381: pathlib ABCs: remove remaining uncommon `PathBase` methods (#127714)Barney Gale2024-12-123-67/+27
| | | | | | | | | | | | | | | | | | Remove the following methods from `pathlib._abc.PathBase`: - `expanduser()` - `hardlink_to()` - `touch()` - `chmod()` - `lchmod()` - `owner()` - `group()` - `from_uri()` - `as_uri()` These operations aren't regularly supported in virtual filesystems, so they don't win a place in the `PathBase` interface. (Some of them probably don't deserve a place in `Path` :P.) They're quasi-abstract (except `lchmod()`), and they're not called by other `PathBase` methods.
* Simplify and speed-up an itertools recipe (gh-127848)Raymond Hettinger2024-12-121-6/+6
|
* gh-127740: Add some more tests for earlier PR #127756 (#127818)Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)2024-12-121-0/+4
|
* gh-127146: Some expected failures in Emscripten time tests (#127843)Hood Chatham2024-12-122-7/+25
| | | | Disables two tests in the test_time suite, and adjusts test_os to reflect precision limits in Emscripten.
* gh-115999: Specialize `CALL_KW` in free-threaded builds (#127713)mpage2024-12-114-35/+26
| | | | | | | | | | | | | * Enable specialization of CALL_KW * Fix bug pushing frame in _PY_FRAME_KW `_PY_FRAME_KW` pushes a pointer to the new frame onto the stack for consumption by the next uop. When pushing the frame fails, we do not want to push the result, `NULL`, to the stack because it is not a valid stackref. This works in the default build because `PyStackRef_NULL` and `NULL` are the same value, so the `PyStackRef_XCLOSE()` in the error handler ignores it. In the free-threaded build the values are not the same; `PyStackRef_XCLOSE()` will attempt to decref a null pointer.
* gh-111609: Test `end_offset` in SyntaxError subclass (#127830)Nice Zombies2024-12-111-0/+15
| | | Test `end_offset` in SyntaxError subclass