summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-118771: Ensure names defined in optimizer.h start with Py/_Py (GH-118825)Petr Viktorin2024-05-104-39/+42
|
* GH-78707: Drop deprecated `pathlib.PurePath.[is_]relative_to()` arguments ↵Barney Gale2024-05-104-29/+15
| | | | | | | (#118780) Remove support for supplying additional positional arguments to `PurePath.relative_to()` and `is_relative_to()`. This has been deprecated since Python 3.12.
* gh-118895: Call PyType_Ready() on typing.NoDefault (#118897)Jelle Zijlstra2024-05-104-2/+27
|
* Correct the argument names for `secrets.choice` and `secrets.randbelow` in ↵Adam Dangoor2024-05-101-3/+3
| | | | | `secrets.rst` (GH-118098) Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`.
* gh-117657: Fix QSBR race condition (#118843)Alex Turner2024-05-104-8/+8
| | | | | | `_Py_qsbr_unregister` is called when the PyThreadState is already detached, so the access to `tstate->qsbr` isn't safe without locking the shared mutex. Grab the `struct _qsbr_shared` from the interpreter instead.
* gh-117657: Fix data races reported by TSAN on `interp->threads.main` (#118865)mpage2024-05-103-13/+21
| | | Use relaxed loads/stores when reading/writing to this field.
* gh-118789: Restore hidden `_PyWeakref_ClearRef` (#118797)Sam Gross2024-05-103-2/+4
| | | | | | | | | | | _PyWeakref_ClearRef was previously exposed in the public C-API, although it begins with an underscore and is not documented. It's used by a few C-API extensions. There is currently no alternative public API that can replace its use. _PyWeakref_ClearWeakRefsExceptCallbacks is the only thread-safe way to use _PyWeakref_ClearRef in the free-threaded build. This exposes the C symbol, but does not make the API public.
* gh-117398: Move types to datetime state (#118606)Victor Stinner2024-05-101-77/+99
| | | | Move types to the datetime_state structure of the _datetime extension.
* Rename `notimplemented_methods` into `nodefault_methods` (#118896)Nikita Sobolev2024-05-101-4/+4
|
* gh-118689: Doc: fix ePub build (#118690)Inada Naoki2024-05-104-2/+7
|
* gh-117873: Use positional-only parameters in _posixshmem (#118012)Victor Stinner2024-05-102-11/+14
| | | | | * shm_unlink() parameter becomes positional-only. * shm_open() first parameter (path) becomes positional-only, the two following parameters remain positional-or-keyword.
* gh-118209: Add Windows structured exception handling to mmap module (GH-118213)Dobatymo2024-05-104-48/+410
|
* Fix some missing null checks. (GH-118721)Steve Dower2024-05-102-5/+13
|
* Docs: fix typos in documentation (GH-118815)Xie Yanbo2024-05-102-3/+3
|
* Revert "gh-115432: Add critical section variant that handles a NULL object ↵Sam Gross2024-05-092-38/+0
| | | | | | | (#115433)" (#118861) This reverts commit ad4f909e0e7890e027c4ae7fea74586667242ad3. The API ended up not being used.
* gh-118851: Default ctx arguments to AST constructors to Load() (#118854)Jelle Zijlstra2024-05-096-6/+41
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-117657: Replace TSAN suppresions with more specific rules (#118722)Brett Simmers2024-05-091-24/+81
| | | | | | | | | Using `race:` filters out warnings if the function appears anywhere in the stack trace. This can hide a lot of unrelated warnings, especially for a function like `_PyEval_EvalFrameDefault`, which is somewhere on the stack more often than not. Change all free-threaded suppressions to `race_top:`, which only matches the top frame, and add any new suppressions this exposes.
* gh-118846: Fix PGO tests in free-threaded build (#118862)Sam Gross2024-05-092-2/+4
| | | | | | Avoid immortalizing objects in tests that verify garbage collection of classes or modules. This fixes test_ordered_dict and test_struct.
* gh-116984: Make mimalloc header includes relative to the current file (#118808)Sam Gross2024-05-094-6/+9
| | | | | | Some embedders and extensions include parts of the internal API. The pycore_mimalloc.h file is transitively include by a number of other internal headers. This avoids include errors for code that was already including those headers.
* gh-118561: Fix crash involving list.extend in free-threaded build (#118723)Sam Gross2024-05-092-1/+4
| | | | | | | The `list_preallocate_exact` function did not zero initialize array contents. In the free-threaded build, this could expose uninitialized memory to concurrent readers between the call to `list_preallocate_exact` and the filling of the array contents with items.
* gh-118849: Fix "code will never be executed" warning in `dictobject.c` (#118850)Nikita Sobolev2024-05-091-1/+1
|
* gh-118773: Use language-invariant SDDL string instead of aliases for ACLs. ↵Steve Dower2024-05-092-154/+24
| | | | (GH-118800)
* gh-117657: Acquire a critical section around `SemLock.__{enter,exit}__` ↵mpage2024-05-092-4/+14
| | | | | | (#118812) These methods are purely wrappers around `Semlock.{acquire,release}`, which expect a critical section to be held.
* gh-118817: Fix `asyncio REPL` on Windows (#118819)Kirill Podoprigora2024-05-092-4/+8
|
* gh-118767: Improve tests and docs for bool(NotImplemented) (#118813)Jelle Zijlstra2024-05-094-13/+15
|
* gh-118802: Fix ACL use in test for non-English Windows (GH-118831)Steve Dower2024-05-091-3/+2
|
* gh-103956: Fix `trace` output in case of missing source line (GH-103958)Radislav Chugunov2024-05-093-4/+38
| | | | Print only filename with lineno if linecache.getline() returns an empty string.
* gh-118805: Remove type, choices, metavar params of `BooleanOptionalAction` ↵Nikita Sobolev2024-05-094-71/+10
| | | | | (#118806) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-118798: Remove deprecated isdst parameter from `email.utils.localtime` ↵Hugo van Kemenade2024-05-095-15/+13
| | | | (#118799)
* gh-118033: Fix `__weakref__` not set for generic dataclasses (#118099)Nikita Sobolev2024-05-093-3/+118
|
* GH-101588: Remove deprecated pickle/copy/deepcopy from itertools (gh-118816)Raymond Hettinger2024-05-094-1294/+8
|
* [tests]: Mark ``test_statistics.test_kde_random`` with a ↵Kirill Podoprigora2024-05-091-0/+1
| | | | | ``requires_resource('cpu')`` decorator (#118801) Mark test_kde_random with a requires_resource('cpu') decorator
* gh-118803: Remove `ByteString` from `typing` and `collections.abc` (#118804)Nikita Sobolev2024-05-0812-114/+14
|
* gh-117657: Fix data races when writing / reading `ob_gc_bits` (#118292)mpage2024-05-084-16/+45
| | | | | Use relaxed atomics when reading / writing to the field. There are still a few places in the GC where we do not use atomics. Those should be safe as the world is stopped.
* Fixing a typo in test_cmd_line.py (#118728)Yutian Li2024-05-081-1/+1
|
* Format None, True, False and NotImplemented as literals (GH-118758)Serhiy Storchaka2024-05-0839-83/+85
|
* docs: module page titles should not start with a link to themselves (#117099)Ned Batchelder2024-05-08220-443/+440
|
* Docs: fix typos in documentation (#118752)Xie Yanbo2024-05-084-4/+4
|
* Run CI on the 3.13 branch (#118779)Jelle Zijlstra2024-05-081-10/+2
|
* gh-118767: Make bool(NotImplemented) raise TypeError (#118775)Jelle Zijlstra2024-05-086-14/+18
|
* gh-118772: Allow TypeVars without a default to follow those with a default ↵Jelle Zijlstra2024-05-083-10/+34
| | | | when constructing aliases (#118774)
* Fix file extensions for 3.14 Whats New (#118770)Jelle Zijlstra2024-05-082-0/+1
|
* Update Windows library names for the Python version bump (#118766)Kirill Podoprigora2024-05-082-5/+5
|
* gh-118486: Update docs for CVE-2024-4030 reference (GH-118737)Steve Dower2024-05-082-0/+18
|
* Regenerate configure for 3.14, which the release script forgot. (#118765)T. Wouters2024-05-081-12/+12
|
* Python 3.14.0a0Thomas Wouters2024-05-087-12/+143
|
* Python 3.13.0b1v3.13.0b1Thomas Wouters2024-05-08162-499/+1861
|
* gh-118671: Updated dead ActiveState links (#118730)trag1c2024-05-0812-14/+14
| | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* Regen ``Doc/requirements-oldest-sphinx.txt`` (#118736)Kirill Podoprigora2024-05-081-3/+3
| | | Regen dependencies
* gh-118746: Fix crash in frame_getlocals and _PyFrame_GetLocals (#118748)Tian Gao2024-05-081-0/+18
| | | | We don't know how to create an unoptimized frame with f_locals == NULL, but they are seen in the wild, and this fixes the crash.