summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* gh-127732: Add Windows Server 2025 detection to platform module (GH-127733)Wulian2024-12-092-1/+3
|
* gh-126925: Modify how iOS test results are gathered (#127592)Russell Keith-Magee2024-12-0918-58/+792
| | | | | | | 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-127503: Fix realpath handling in emscripten cli (#127632)Hood Chatham2024-12-091-1/+1
| | | Corrects the handling of realpath on Linux.
* gh-127503 Don't propagate native PATH to Emscripten Python (#127633)Hood Chatham2024-12-091-1/+2
| | | | Modifies the handling of PATH to ensure that native executables aren't picked up when running under node.
* gh-127111: Emscripten Move link flags from `LDFLAGS_NODIST` to ↵Hood Chatham2024-12-092-10/+10
| | | | | | | `LINKFORSHARED` (#127666) Corrects the usage of linking flags to avoid compilation errors related to the use of `-sEXPORTED_FUNCTIONS` when linking shared libraries.
* gh-127734: improve signature of ↵Stephen Morton2024-12-081-2/+2
| | | | | `urllib.request.HTTPPasswordMgrWithPriorAuth.__init__` (#127735) improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
* GH-127381: pathlib ABCs: remove `PathBase.unlink()` and `rmdir()` (#127736)Barney Gale2024-12-084-86/+48
| | | | | | | Virtual filesystems don't always make a distinction between deleting files and empty directories, and sometimes support deleting non-empty directories in a single operation. Here we remove `PathBase.unlink()` and `rmdir()`, leaving `_delete()` as the sole deletion method, now made abstract. I hope to drop the underscore prefix later on.
* [doc] Fix typos in `interpreter_definition.md` (#127742)Stan Ulbrych2024-12-081-3/+3
|
* gh-87138: convert SHA-3 object type to heap type (GH-127670)Bénédikt Tran2024-12-081-10/+29
|
* gh-123378: fix post-merge typos in comments and NEWS (#127739)Bénédikt Tran2024-12-082-4/+4
|
* gh-127610: Added validation for more than one var-positional and var-keyword ↵Apostol Fet2024-12-084-0/+23
| | | | parameters in inspect.Signature (GH-127657)
* GH-126789: fix some sysconfig data on late site initializations (#127729)Filipe Laíns 🇵🇸2024-12-083-5/+43
|
* GH-127090: Fix `urllib.response.addinfourl.url` value for opened `file:` ↵Barney Gale2024-12-075-28/+25
| | | | | 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.
* Give `poplib.POP3.rpop` a proper docstring (#127370)Stan Ulbrych2024-12-071-1/+1
| | | Previously `poplib.POP3.rpop` had a "Not sure what this does" docstring, now it has been fixed.
* gh-119786: fix typo in `InternalDocs/garbage_collector.md` (#127687)Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)2024-12-071-1/+1
|
* GH-127381: pathlib ABCs: remove `PathBase.resolve()` and `absolute()` (#127707)Barney Gale2024-12-063-731/+599
| | | | | | | | | Remove our implementation of POSIX path resolution in `PathBase.resolve()`. This functionality is rather fragile and isn't necessary in most cases. It depends on `PathBase.stat()`, which we're looking to remove. Also remove `PathBase.absolute()`. Many legitimate virtual filesystems lack the notion of a 'current directory', so it's wrong to include in the basic interface.
* GH-127652: stop using `--wasi preview2` in `wasi.py` (GH-127704)Brett Cannon2024-12-061-2/+0
| | | It's only to use WASI 0.2 code to back preview1 APIs and is considered experimental anyway.
* GH-127381: pathlib ABCs: remove `PathBase.rename()` and `replace()` (#127658)Barney Gale2024-12-063-38/+18
| | | | These methods are obviated by `PathBase.move()`, which can move directories and supports any `PathBase` object as a target.
* Fix typo in `Lib/_android_support.py` (#127699)Stan Ulbrych2024-12-061-1/+1
|
* gh-119786: Add jit.md. Move adaptive.md to a section of interpreter.md. ↵Irit Katriel2024-12-066-187/+322
| | | | (#127175)
* gh-59705: Add _thread.set_name() function (#127338)Victor Stinner2024-12-068-2/+342
| | | | | | | | | | | 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-065-7/+36
| | | | | free-threaded build (#127315) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-125610: Fix `STORE_ATTR_INSTANCE_VALUE` specialization check (GH-125612)Sam Gross2024-12-061-1/+4
| | | | The `STORE_ATTR_INSTANCE_VALUE` opcode doesn't support objects with non-NULL managed dictionaries, so don't specialize to that op in that case.
* gh-126024: fix UBSan failure in `unicodeobject.c:find_first_nonascii` ↵Bénédikt Tran2024-12-061-6/+3
| | | | (GH-127566)
* gh-101100: amend references starting with `!~` in gh-127054 (#127684)Yuki Kobayashi2024-12-061-5/+5
|
* GH-126491: Lower heap size limit with faster marking (GH-127519)Mark Shannon2024-12-066-243/+208
| | | | | | | * Faster marking of reachable objects * Changes calculation of work to do and work done. * Merges transitive closure calculations
* gh-120010: Fix invalid (nan+nanj) results in _Py_c_prod() (GH-120287)Sergey B Kirpichev2024-12-063-4/+75
| | | | | | | | | | | | | | | | | | | | 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-063-0/+14
| | | | | | | 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-063-2/+50
| | | Add a posix._emscripten_debugger function to add an emscripten breakpoint.
* GH-125413: Revert addition of `pathlib.Path.scandir()` method (#127377)Barney Gale2024-12-057-85/+22
| | | | | | | | | | 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-056-20/+87
| | | | | | | | | | | | 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.
* [Docs] GDB howto: Fix block type of a cast example (#127621)Maciej Olko2024-12-051-1/+1
|
* gh-127221: Add colour to unittest output (#127223)Hugo van Kemenade2024-12-0515-60/+136
| | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* GH-126727: Fix test_era_nl_langinfo with Japanese ERAs on Solaris (GH-127327)Jakub Kulík2024-12-051-0/+5
| | | Fix test_era_nl_langinfo with Japanese ERAs on Solaris
* gh-122431: Disallow negative values in `readline.append_history_file` (#122469)Peter Bierma2024-12-053-0/+15
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-127413: allow to show specialized bytecode via `dis` CLI (#127414)Bénédikt Tran2024-12-054-2/+19
|
* gh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK (#127593)Victor Stinner2024-12-055-1/+15
|
* gh-119182: Complete PyUnicodeWriter documentation (#127607)Victor Stinner2024-12-051-0/+9
|
* gh-127434: Fix iOS `xcrun --sdk` clang/ar scripts to allow arguments with ↵Feodor Fitsner2024-12-0513-12/+13
| | | | | spaces (#127575) Added shell escaping to ensure iOS compiler shims can accept arguments with spaces.
* gh-127503: Emscripten make Python.sh function as proper Python CLI (#127506)Hood Chatham2024-12-054-17/+51
| | | Modifies the python.sh script to work on macOS, and adapt to recent emscripten changes.