summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* GH-125174: Mark objects as statically allocated. (#127797)Mark Shannon2024-12-117-13/+99
| | | | | * Set a bit in the unused part of the refcount on 64 bit machines and the free-threaded build. * Use the top of the refcount range on 32 bit machines
* gh-118915: C API: Document frame locals proxies. (#127720)Peter Bierma2024-12-111-1/+21
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-127065: Make methodcaller thread-safe and re-entrant (GH-127746)Pieter Eendebak2024-12-114-96/+131
| | | | | | | | | | | The function `operator.methodcaller` was not thread-safe since the additional of the vectorcall method in gh-89013. In the free threading build the issue is easy to trigger, for the normal build harder. This makes the `methodcaller` safe by: * Replacing the lazy initialization with initialization in the constructor. * Using a stack allocated space for the vectorcall arguments and falling back to `tp_call` for calls with more than 8 arguments.
* GH-127058: Make `PySequence_Tuple` safer and probably faster. (#127758)Mark Shannon2024-12-115-48/+88
| | | | * Use a small buffer, then list when constructing a tuple from an arbitrary sequence.
* gh-123401: Fix http.cookies module to support obsolete RFC 850 date format ↵Nano2024-12-113-2/+53
| | | | | | | (#123405) Co-authored-by: Wulian <1055917385@qq.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* CI: Use bash to properly expand variable (#127822)Hugo van Kemenade2024-12-111-1/+2
|
* gh-126992: Change pickle code to base 10 for load_long and load_int (GH-127042)Justin Applegate2024-12-115-9/+64
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-127791: Fix, document, and test `PyUnstable_AtExit` (#127793)Peter Bierma2024-12-117-39/+71
|
* Add `extern "C"` around `PyTraceMalloc_` functions. (#127772)Peter Hawkins2024-12-111-0/+6
| | | | Pretty much everything else exported by Python.h has an extern "C" annotation, yet this header appears to be missing one.
* gh-127740: For odd-length input to bytes.fromhex(...) change the error ↵Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)2024-12-113-4/+23
| | | | message to ValueError: fromhex() arg must be of even length (#127756)
* GH-127381: pathlib ABCs: remove `PathBase.samefile()` and rarer `is_*()` ↵Barney Gale2024-12-114-171/+141
| | | | | | | | | | (#127709) Remove `PathBase.samefile()`, which is fairly specific to the local FS, and relies on `stat()`, which we're aiming to remove from `PathBase`. Also remove `PathBase.is_mount()`, `is_junction()`, `is_block_device()`, `is_char_device()`, `is_fifo()` and `is_socket()`. These rely on POSIX file type numbers that we're aiming to remove from the `PathBase` API.
* gh-126821: Add versionadded annotation to use_system_logger feature. (#127755)Russell Keith-Magee2024-12-102-1/+3
| | | Add versionadded annotation to use_system_logger feature.
* Docs: Fix indents in `xmlrpc.client.rst` (#127782)Yuki Kobayashi2024-12-101-4/+4
|
* gh-59705: Set OS thread name when Thread.name is changed (#127702)Victor Stinner2024-12-104-7/+43
| | | Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-127563: use `dk_log2_index_bytes=3` in empty dicts (GH-127568)Bénédikt Tran2024-12-101-1/+4
| | | | This fixes a UBSan failure (unaligned zero-size memcpy) in `dictobject.c`.
* gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes (GH-126938)Melissa0x1f9922024-12-104-4/+36
| | | | | Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-127257: ssl: Raise OSError for ERR_LIB_SYS (GH-127361)Petr Viktorin2024-12-102-0/+12
| | | | | | | | | | | | | | | From the ERR_raise manpage: ERR_LIB_SYS This "library code" indicates that a system error is being reported. In this case, the reason code given to `ERR_raise()` and `ERR_raise_data()` *must* be `errno(3)`. This PR only handles ERR_LIB_SYS for the high-lever error types SSL_ERROR_SYSCALL and SSL_ERROR_SSL, i.e., not the ones where OpenSSL indicates it has some more information about the issue.
* gh-126491: Revert "GH-126491: Lower heap size limit with faster marking ↵Petr Viktorin2024-12-106-209/+243
| | | | | | | | (GH-127519)" (GH-127770) Revert "GH-126491: Lower heap size limit with faster marking (GH-127519)" This reverts commit 023b7d2141467017abc27de864f3f44677768cb3, which introduced a refleak.
* Add zizmor to pre-commit and fix most findings (#127749)Hugo van Kemenade2024-12-1018-28/+89
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-101100: Fix sphinx warnings in `whatsnew/3.0.rst` (#127662)Yuki Kobayashi2024-12-103-57/+59
|
* gh-125420: implement `Sequence.count` API on `memoryview` objects (#125443)Bénédikt Tran2024-12-105-2/+97
|
* add help blurb for "extralargefile" (#127710)Skip Montanaro2024-12-101-20/+22
|
* gh-127718: Add colour to `test.regrtest` output (#127719)Hugo van Kemenade2024-12-107-53/+168
|
* gh-126775: make linecache.checkcache threadsafe and GC re-entrency safe ↵Thomas Grainger2024-12-102-5/+9
| | | | | | | (#126776) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bartosz Sławecki <bartoszpiotrslawecki@gmail.com>
* gh-127651: Use __file__ in diagnostics if origin is missing (#127660)Shantanu2024-12-103-5/+66
| | | | | | | See the left hand side in https://github.com/python/cpython/pull/123929/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59deL2840-L2849 --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-125420: implement `Sequence.index` API on `memoryview` objects (#125446)Bénédikt Tran2024-12-105-1/+171
|
* gh-127629: Add ctypes to the Emscripten build (#127683)Hood Chatham2024-12-104-11/+76
| | | Adds tooling to build libffi and add ctypes to the stdlib for Emscripten.
* GH-127456: pathlib ABCs: add protocol for path parser (#127494)Barney Gale2024-12-093-107/+32
| | | | | | | | | | Change the default value of `PurePathBase.parser` from `ParserBase()` to `posixpath`. As a result, user subclasses of `PurePathBase` and `PathBase` use POSIX path syntax by default, which is very often desirable. Move `pathlib._abc.ParserBase` to `pathlib._types.Parser`, and convert it to a runtime-checkable protocol. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-127637: add tests for `dis` command-line interface (#127759)Bénédikt Tran2024-12-093-4/+123
|