summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.14.0a3v3.14.0a3Hugo van Kemenade2024-12-17112-248/+1152
|
* gh-126907: make `atexit` thread safe in free-threading (#127935)Peter Bierma2024-12-161-0/+2
| | | | 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 Xu2024-12-161-0/+1
|
* Revert "gh-127586: properly restore blocked signals in resource_tracker.py ↵Hugo van Kemenade2024-12-161-3/+0
| | | | | (GH-127587)" (#127983) This reverts commit 46006a1b355f75d06c10e7b8086912c483b34487.
* gh-127896: Add missing documentation of `PySequence_In` (GH-127979)Yuki Kobayashi2024-12-161-0/+2
| | | | Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* gh-127586: properly restore blocked signals in resource_tracker.py (GH-127587)Stephen Hansen2024-12-151-0/+3
| | | | | | | | | | | | | | * 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-127599: Fix _Py_RefcntAdd missing calls to ↵Ed Nutting2024-12-151-0/+2
| | | | | | | | _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.
* gh-127353: Allow to force color output on Windows V2 (#127926)Andrey Efremov2024-12-141-0/+2
|
* gh-127691: add type checks when using `PyUnicodeError` objects (GH-127694)Bénédikt Tran2024-12-131-0/+3
|
* gh-102471, PEP 757: Add PyLong import and export API (#121339)Victor Stinner2024-12-131-0/+10
| | | | | 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-131-0/+1
|
* gh-127870: Detect recursive calls in ctypes _as_parameter_ handling (#127872)Victor Stinner2024-12-131-0/+2
|
* gh-126868: Add freelist for compact int objects (GH-126865)Pieter Eendebak2024-12-131-0/+1
|
* Revert "gh-127353: Allow to force color output on Windows (#127354)" (#127889)Hugo van Kemenade2024-12-121-2/+0
| | | This reverts commit 365451e28368db46ae89a3a990d85c10c2284aa2.
* gh-127353: Allow to force color output on Windows (#127354)Andrey Efremov2024-12-121-0/+2
|
* gh-127865: Fix build failure for systems without thread local support ↵velemas2024-12-121-0/+1
| | | | | | (GH-127866) This PR fixes the build issue introduced by the commit 628f6eb from GH-112207 on systems without thread local support.
* gh-127065: Make methodcaller thread-safe and re-entrant (GH-127746)Pieter Eendebak2024-12-111-0/+1
| | | | | | | | | | | 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-111-0/+3
| | | | * 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-111-0/+3
| | | | | | | (#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>
* gh-126992: Change pickle code to base 10 for load_long and load_int (GH-127042)Justin Applegate2024-12-111-0/+1
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-127791: Fix, document, and test `PyUnstable_AtExit` (#127793)Peter Bierma2024-12-111-0/+2
|
* gh-127740: For odd-length input to bytes.fromhex(...) change the error ↵Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)2024-12-111-0/+3
| | | | message to ValueError: fromhex() arg must be of even length (#127756)
* gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes (GH-126938)Melissa0x1f9922024-12-101-0/+3
| | | | | 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-101-0/+2
| | | | | | | | | | | | | | | 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-125420: implement `Sequence.count` API on `memoryview` objects (#125443)Bénédikt Tran2024-12-101-0/+2
|
* gh-127718: Add colour to `test.regrtest` output (#127719)Hugo van Kemenade2024-12-101-0/+1
|
* gh-126775: make linecache.checkcache threadsafe and GC re-entrency safe ↵Thomas Grainger2024-12-101-0/+1
| | | | | | | (#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-101-0/+1
| | | | | | | 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-101-0/+2
|
* gh-127629: Add ctypes to the Emscripten build (#127683)Hood Chatham2024-12-101-0/+1
| | | Adds tooling to build libffi and add ctypes to the stdlib for Emscripten.
* gh-127637: add tests for `dis` command-line interface (#127759)Bénédikt Tran2024-12-091-0/+1
|
* gh-127732: Add Windows Server 2025 detection to platform module (GH-127733)Wulian2024-12-091-0/+1
|
* gh-126925: Modify how iOS test results are gathered (#127592)Russell Keith-Magee2024-12-092-0/+4
| | | | | | | Adds a `use_system_log` config item to enable stdout/stderr redirection for Apple platforms. This log streaming is then used by a new iOS test runner script, allowing the display of test suite output at runtime. The iOS test runner script can be used by any Python project, not just the CPython test suite.
* gh-123378: fix post-merge typos in comments and NEWS (#127739)Bénédikt Tran2024-12-081-1/+1
|
* gh-127610: Added validation for more than one var-positional and var-keyword ↵Apostol Fet2024-12-082-0/+4
| | | | parameters in inspect.Signature (GH-127657)
* GH-126789: fix some sysconfig data on late site initializations (#127729)Filipe Laíns 🇵🇸2024-12-081-0/+5
|
* GH-127090: Fix `urllib.response.addinfourl.url` value for opened `file:` ↵Barney Gale2024-12-071-0/+3
| | | | | URIs (#127091) The canonical `file:` URL (as generated by `pathname2url()`) is now used as the `url` attribute of the returned `addinfourl` object. The `addinfourl.url` attribute reflects the resolved URL for both `file:` or `http[s]:` URLs now.
* gh-59705: Add _thread.set_name() function (#127338)Victor Stinner2024-12-061-0/+2
| | | | | | | | | | | On Linux, threading.Thread now sets the thread name to the operating system. * configure now checks if pthread_getname_np() and pthread_setname_np() functions are available. * Add PYTHREAD_NAME_MAXLEN macro. * Add _thread._NAME_MAXLEN constant for test_threading. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-127314: Don't mention the GIL when calling without a thread state on the ↵Peter Bierma2024-12-061-0/+2
| | | | | free-threaded build (#127315) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-120010: Fix invalid (nan+nanj) results in _Py_c_prod() (GH-120287)Sergey B Kirpichev2024-12-061-0/+2
| | | | | | | | | | | | | | | | | | | | In some cases, previously computed as (nan+nanj), we could recover meaningful component values in the result, see e.g. the C11, Annex G.5.1, routine _Cmultd(): >>> z = 1e300+1j >>> z*(nan+infj) # was (nan+nanj) (-inf+infj) That also fix some complex powers for small integer exponents, computed with optimized algorithm (by squaring): >>> z**5 # was (nan+nanj) Traceback (most recent call last): File "<python-input-1>", line 1, in <module> z**5 ~^^~ OverflowError: complex exponentiation
* gh-127655: Ensure `_SelectorSocketTransport.writelines` pauses the protocol ↵J. Nick Koston2024-12-061-0/+1
| | | | | | | if needed (#127656) Ensure `_SelectorSocketTransport.writelines` pauses the protocol if it reaches the high water mark as needed. Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-127627: Add `posix._emscripten_debugger` function (#127628)Hood Chatham2024-12-061-0/+2
| | | Add a posix._emscripten_debugger function to add an emscripten breakpoint.
* GH-125413: Revert addition of `pathlib.Path.scandir()` method (#127377)Barney Gale2024-12-052-1/+4
| | | | | | | | | | Remove documentation for `pathlib.Path.scandir()`, and rename the method to `_scandir()`. In the private pathlib ABCs, make `iterdir()` abstract and call it from `_scandir()`. It's not worthwhile to add this method at the moment - see discussion: https://discuss.python.org/t/ergonomics-of-new-pathlib-path-scandir/71721 Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* gh-127582: Make object resurrection thread-safe for free threading. (GH-127612)Sam Gross2024-12-051-0/+2
| | | | | | | | | | | | Objects may be temporarily "resurrected" in destructors when calling finalizers or watcher callbacks. We previously undid the resurrection by decrementing the reference count using `Py_SET_REFCNT`. This was not thread-safe because other threads might be accessing the object (modifying its reference count) if it was exposed by the finalizer, watcher callback, or temporarily accessed by a racy dictionary or list access. This adds internal-only thread-safe functions for temporary object resurrection during destructors.
* gh-127221: Add colour to unittest output (#127223)Hugo van Kemenade2024-12-051-0/+1
| | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* gh-122431: Disallow negative values in `readline.append_history_file` (#122469)Peter Bierma2024-12-051-0/+1
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-127413: allow to show specialized bytecode via `dis` CLI (#127414)Bénédikt Tran2024-12-051-0/+2
|
* gh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK (#127593)Victor Stinner2024-12-051-0/+2
|
* gh-127434: Fix iOS `xcrun --sdk` clang/ar scripts to allow arguments with ↵Feodor Fitsner2024-12-051-0/+1
| | | | | spaces (#127575) Added shell escaping to ensure iOS compiler shims can accept arguments with spaces.
* gh-127536: Add missing locks in listobject.c (GH-127580)Sam Gross2024-12-041-0/+2
| | | | We were missing locks around some list operations in the free threading build.