Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (#118999) | Nikita Sobolev | 2024-05-13 | 1 | -10/+17 | |
| | ||||||
* | gh-119010: Adds docs about `__type_params__` to `functools.update_wrapper` ↵ | Nikita Sobolev | 2024-05-13 | 1 | -2/+6 | |
| | | | | | (#119012) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | |||||
* | gh-117873: Revert _posixshmem.shm_open() change (#118901) | Victor Stinner | 2024-05-13 | 2 | -5/+4 | |
| | ||||||
* | gh-58933: Make pdb return to caller frame correctly when f_trace is not set ↵ | Tian Gao | 2024-05-13 | 3 | -7/+62 | |
| | | | | (#118979) | |||||
* | gh-118876: Ensure PC/layout sets ns.temp before using it (GH-118880) | I-Shen Leong | 2024-05-13 | 1 | -10/+9 | |
| | | | Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows. | |||||
* | Improve the `rmtree` doc for `dir_fd` param addition in 3.11 (#118964) | Nikita Sobolev | 2024-05-13 | 1 | -1/+1 | |
| | ||||||
* | gh-87106: Fix inspect.signature.bind() handling of positional-only arguments ↵ | Jacob Walls | 2024-05-13 | 3 | -17/+39 | |
| | | | | with **kwargs (GH-103404) | |||||
* | Itertools docs: fix parameter names and indentation in Python equivalents ↵ | pochmann3 | 2024-05-12 | 1 | -5/+5 | |
| | | | | (gh-118977) | |||||
* | gh-118899: Add tests for `NotImplemented` attribute access (#118902) | Nikita Sobolev | 2024-05-12 | 1 | -0/+18 | |
| | ||||||
* | GH-118844: Fix build failures when combining --disable-gil with ↵ | Savannah Ostrowski | 2024-05-11 | 4 | -3/+5 | |
| | | | | --enable-experimental-jit (GH-118935) | |||||
* | gh-117655: Prevent `test_strptime` from raising a DeprecationWarning (GH-117668) | Nice Zombies | 2024-05-11 | 2 | -14/+20 | |
| | | | | | | | * Fix `test_strptime` raises a DeprecationWarning * Ignore deprecation warnings where appropriate. * Update Lib/test/datetimetester.py This is follow on work to silence unnecessary warnings from the test suite that changes for https://github.com/python/cpython/issues/70647 added. | |||||
* | gh-118932: ChainMap.__contains__ performance improvement (gh-118946) | d.grigonis | 2024-05-11 | 1 | -2/+5 | |
| | ||||||
* | Docs: Fix SOURCE_URI (#118945) | Nice Zombies | 2024-05-11 | 1 | -1/+1 | |
| | ||||||
* | gh-118921: Add `copy()` method for `FrameLocalsProxy` (#118923) | Tian Gao | 2024-05-10 | 3 | -3/+29 | |
| | ||||||
* | gh-117657: Log TSAN warnings to separate files and archive them (#118747) | mpage | 2024-05-10 | 3 | -1/+20 | |
| | | | | | | | This ensures we don't lose races that occur in subprocesses or interleave races from workers running in parallel. Log files are collected and packaged into a zipfile that can be downloaded from the "Artifacts" section of the workflow run. | |||||
* | gh-118924: Remove `sqlite3.version` and `sqlite3.version_info` (#118925) | Hugo van Kemenade | 2024-05-10 | 9 | -74/+36 | |
| | ||||||
* | gh-118846: Fix free-threading test failures when run sequentially (#118864) | Sam Gross | 2024-05-10 | 8 | -6/+35 | |
| | | | | | | The free-threaded build currently immortalizes some objects once the first thread is started. This can lead to test failures depending on the order in which tests are run. This PR addresses those failures by suppressing immortalization or skipping the affected tests. | |||||
* | gh-118702: Implement vectorcall for BaseException (#118703) | Victor Stinner | 2024-05-10 | 3 | -4/+68 | |
| | | | | | | | | | | * BaseException_vectorcall() now creates a tuple from 'args' array. * Creation an exception using BaseException_vectorcall() is now a single function call, rather than having to call BaseException_new() and then BaseException_init(). Calling BaseException_init() is inefficient since it overrides the 'args' attribute. * _PyErr_SetKeyError() now uses PyObject_CallOneArg() to create the KeyError instance to use BaseException_vectorcall(). | |||||
* | Rename typing._collect_parameters (#118900) | Jelle Zijlstra | 2024-05-10 | 2 | -8/+29 | |
| | | | | | | | | | | | Unfortunately, released versions of typing_extensions monkeypatch this function without the extra parameter, which makes it so things break badly if current main is used with typing_extensions. Fortunately, the monkeypatching is not needed on Python 3.13, because CPython now implements PEP 696. By renaming the function, we prevent the monkeypatch from breaking typing.py internals. We keep the old name (raising a DeprecationWarning) to help other external users who call it. | |||||
* | GH-118910: Less boilerplate in the tier 2 optimizer (#118913) | Mark Shannon | 2024-05-10 | 7 | -473/+275 | |
| | ||||||
* | gh-118771: Ensure names defined in optimizer.h start with Py/_Py (GH-118825) | Petr Viktorin | 2024-05-10 | 4 | -39/+42 | |
| | ||||||
* | GH-78707: Drop deprecated `pathlib.PurePath.[is_]relative_to()` arguments ↵ | Barney Gale | 2024-05-10 | 4 | -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 Zijlstra | 2024-05-10 | 4 | -2/+27 | |
| | ||||||
* | Correct the argument names for `secrets.choice` and `secrets.randbelow` in ↵ | Adam Dangoor | 2024-05-10 | 1 | -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 Turner | 2024-05-10 | 4 | -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) | mpage | 2024-05-10 | 3 | -13/+21 | |
| | | | Use relaxed loads/stores when reading/writing to this field. | |||||
* | gh-118789: Restore hidden `_PyWeakref_ClearRef` (#118797) | Sam Gross | 2024-05-10 | 3 | -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 Stinner | 2024-05-10 | 1 | -77/+99 | |
| | | | | Move types to the datetime_state structure of the _datetime extension. | |||||
* | Rename `notimplemented_methods` into `nodefault_methods` (#118896) | Nikita Sobolev | 2024-05-10 | 1 | -4/+4 | |
| | ||||||
* | gh-118689: Doc: fix ePub build (#118690) | Inada Naoki | 2024-05-10 | 4 | -2/+7 | |
| | ||||||
* | gh-117873: Use positional-only parameters in _posixshmem (#118012) | Victor Stinner | 2024-05-10 | 2 | -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) | Dobatymo | 2024-05-10 | 4 | -48/+410 | |
| | ||||||
* | Fix some missing null checks. (GH-118721) | Steve Dower | 2024-05-10 | 2 | -5/+13 | |
| | ||||||
* | Docs: fix typos in documentation (GH-118815) | Xie Yanbo | 2024-05-10 | 2 | -3/+3 | |
| | ||||||
* | Revert "gh-115432: Add critical section variant that handles a NULL object ↵ | Sam Gross | 2024-05-09 | 2 | -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 Zijlstra | 2024-05-09 | 6 | -6/+41 | |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | gh-117657: Replace TSAN suppresions with more specific rules (#118722) | Brett Simmers | 2024-05-09 | 1 | -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 Gross | 2024-05-09 | 2 | -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 Gross | 2024-05-09 | 4 | -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 Gross | 2024-05-09 | 2 | -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 Sobolev | 2024-05-09 | 1 | -1/+1 | |
| | ||||||
* | gh-118773: Use language-invariant SDDL string instead of aliases for ACLs. ↵ | Steve Dower | 2024-05-09 | 2 | -154/+24 | |
| | | | | (GH-118800) | |||||
* | gh-117657: Acquire a critical section around `SemLock.__{enter,exit}__` ↵ | mpage | 2024-05-09 | 2 | -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 Podoprigora | 2024-05-09 | 2 | -4/+8 | |
| | ||||||
* | gh-118767: Improve tests and docs for bool(NotImplemented) (#118813) | Jelle Zijlstra | 2024-05-09 | 4 | -13/+15 | |
| | ||||||
* | gh-118802: Fix ACL use in test for non-English Windows (GH-118831) | Steve Dower | 2024-05-09 | 1 | -3/+2 | |
| | ||||||
* | gh-103956: Fix `trace` output in case of missing source line (GH-103958) | Radislav Chugunov | 2024-05-09 | 3 | -4/+38 | |
| | | | | Print only filename with lineno if linecache.getline() returns an empty string. | |||||
* | gh-118805: Remove type, choices, metavar params of `BooleanOptionalAction` ↵ | Nikita Sobolev | 2024-05-09 | 4 | -71/+10 | |
| | | | | | (#118806) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | gh-118798: Remove deprecated isdst parameter from `email.utils.localtime` ↵ | Hugo van Kemenade | 2024-05-09 | 5 | -15/+13 | |
| | | | | (#118799) | |||||
* | gh-118033: Fix `__weakref__` not set for generic dataclasses (#118099) | Nikita Sobolev | 2024-05-09 | 3 | -3/+118 | |
| |