summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-115254: Fix `test_property` with `-00` mode (#115255)Nikita Sobolev2024-02-101-0/+1
|
* gh-114670: Fix `_testbuffer` module initialization (#114672)Nikita Sobolev2024-02-101-53/+74
|
* gh-115252: Fix `test_enum` with `-OO` mode (GH-115253)Nikita Sobolev2024-02-101-3/+14
|
* GH-115060: Speed up `pathlib.Path.glob()` by removing redundant regex ↵Barney Gale2024-02-104-28/+76
| | | | | matching (#115061) When expanding and filtering paths for a `**` wildcard segment, build an `re.Pattern` object from the subsequent pattern parts, rather than the entire pattern, and match against the `os.DirEntry` object prior to instantiating a path object. Also skip compiling a pattern when expanding a `*` wildcard segment.
* gh-114894: add array.array.clear() method (#114919)Mike Zimin2024-02-107-1/+71
| | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: AN Long <aisk@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-102840: Fix confused traceback when floordiv or mod operations happens ↵Kirill Podoprigora2024-02-103-6/+37
| | | | between Fraction and complex objects (GH-102842)
* gh-115059: Remove debugging code in test_io (GH-115240)Serhiy Storchaka2024-02-101-30/+0
|
* gh-76763: Make chr() always raising ValueError for out-of-range values ↵Serhiy Storchaka2024-02-104-28/+32
| | | | | | (GH-114882) Previously it raised OverflowError for very large or very small values.
* GH-87804: Fix counter overflow in statvfs on macOS (#99570)Ronald Oussoren2024-02-102-0/+102
| | | | | | | | | | On macOS the statvfs interface returns block counts as 32-bit integers, and that results in bad reporting for larger disks. Therefore reimplement statvfs in terms of statfs, which does use 64-bit integers for block counts. Tested using a sparse filesystem image of 100TB.
* gh-114552: Update `__dir__` method docs: it allows returning an iterable ↵Nikita Sobolev2024-02-102-3/+11
| | | | (#114662)
* gh-96471: Add shutdown() method to queue.Queue (#104750)Laurie O2024-02-105-0/+474
| | | | Co-authored-by: Duprat <yduprat@gmail.com>
* gh-111968: Refactor _PyXXX_Fini to integrate with _PyObject_ClearFreeLists ↵Donghee Na2024-02-1020-107/+38
| | | | (gh-114899)
* gh-115165: Fix `typing.Annotated` for immutable types (#115213)dave-shawley2024-02-093-1/+28
| | | | The return value from an annotated callable can raise any exception from __setattr__ for the `__orig_class__` property.
* gh-110481: Implement inter-thread queue for biased reference counting (#114824)Sam Gross2024-02-0921-11/+418
| | | | | | | | | Biased reference counting maintains two refcount fields in each object: `ob_ref_local` and `ob_ref_shared`. The true refcount is the sum of these two fields. In some cases, when refcounting operations are split across threads, the ob_ref_shared field can be negative (although the total refcount must be at least zero). In this case, the thread that decremented the refcount requests that the owning thread give up ownership and merge the refcount fields.
* gh-112903: Handle non-types in _BaseGenericAlias.__mro_entries__() (#115191)Carl Meyer2024-02-093-1/+92
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Add Peter L to ACKS (GH-115222)Peter Lazorchak2024-02-091-0/+1
|
* gh-115142: Skip test_optimizer if _testinternalcapi module is not available ↵Kirill Podoprigora2024-02-091-1/+4
| | | | (GH-115175)
* gh-115184: Fix refleak tracking issues in free-threaded build (#115188)Sam Gross2024-02-093-6/+16
| | | | | | | | Fixes a few issues related to refleak tracking in the free-threaded build: - Count blocks in abandoned segments - Call `_mi_page_free_collect` earlier during heap traversal in order to get an accurate count of blocks in use. - Add missing refcount tracking in `_Py_DecRefSharedDebug` and `_Py_ExplicitMergeRefcount`. - Pause threads in `get_num_global_allocated_blocks` to ensure that traversing the mimalloc heaps is safe.
* Docs: correctly link to code objects (#115214)Erlend E. Aasland2024-02-091-2/+3
|
* gh-115059: Flush the underlying write buffer in io.BufferedRandom.read1() ↵Serhiy Storchaka2024-02-093-0/+63
| | | | (GH-115163)
* GH-113632: update configure.ac for WebAssembly support tiers (#115192)Brett Cannon2024-02-094-6/+11
| | | Move WASI to tier 2 and drop Emscripten.
* gh-101100: Fix sphinx warnings in `library/enum.rst` (#114696)Nikita Sobolev2024-02-092-3/+15
| | | | Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-115167: Exclude vcruntime140_threads.dll from Windows build output ↵adang13452024-02-082-1/+2
| | | | (GH-115176)
* gh-112069: Adapt set/frozenset methods to Argument Clinic (#115112)Tomas R2024-02-083-157/+674
|
* gh-107944: Improve error message for getargs with bad keyword arguments ↵Shantanu2024-02-086-29/+113
| | | | (#114792)
* gh-115136: Fix possible NULL deref in getpath_joinpath() (GH-115137)Artem Chernyshev2024-02-081-0/+4
| | | | Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
* gh-115146: Fix typo in pickletools.py documentation (GH-115148)Justin Applegate2024-02-081-1/+1
|
* When the Py_CompileStringExFlags fuzzer encounters a SystemError, abort ↵Alex Gaynor2024-02-071-2/+9
| | | | | (#115147) This allows us to catch bugs beyond memory corruption and assertions.
* gh-114828: parenthesize non-atomic macro definitions in pycore_symtable.h ↵Carl Meyer2024-02-071-12/+12
| | | | (#115143)
* gh-112066: Use `PyDict_SetDefaultRef` in place of `PyDict_SetDefault`. (#112211)Sam Gross2024-02-076-25/+32
| | | | | This changes a number of internal usages of `PyDict_SetDefault` to use `PyDict_SetDefaultRef`. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-114828: Fix __class__ in class-scope inlined comprehensions (#115139)Carl Meyer2024-02-073-0/+33
|
* GH-108362: Revert "GH-108362: Incremental GC implementation (GH-108038)" ↵Mark Shannon2024-02-0713-647/+392
| | | | | | | (#115132) Revert "GH-108362: Incremental GC implementation (GH-108038)" This reverts commit 36518e69d74607e5f094ce55286188e4545a947d.
* gh-101100: Fix Py_DEBUG dangling Sphinx references (#115003)Skip Montanaro2024-02-072-8/+9
|
* gh-114505: Add missing header file dependencies (#114513)Skip Montanaro2024-02-071-241/+259
| | | Also move PYTHON_HEADERS up and make _testembed.o depend on it.
* gh-115114: Add missing slash to file URI prefix `file:/` (#115115)Edgar Ramírez Mondragón2024-02-071-1/+1
| | | Add missing slash to file URI prefix `file:/`
* gh-115106 docs: 'enum.Flag.__iter__()' did not exist prior to Python 3.11 ↵Finite State Machine2024-02-071-3/+1
| | | | | (GH-115107) change versionchanged to versionadded
* gh-115009: Update Windows installer to use SQLite 3.45.1 (#115065)Erlend E. Aasland2024-02-064-3/+4
|
* gh-112075: Add critical sections for most dict APIs (#114508)Dino Viehland2024-02-066-284/+782
| | | | | | | | | Starts adding thread safety to dict objects. Use @critical_section for APIs which are exposed via argument clinic and don't directly correlate with a public C API which needs to acquire the lock Use a _lock_held suffix for keeping changes to complicated functions simple and just wrapping them with a critical section Acquire and release the lock in an existing function where it won't be overly disruptive to the existing logic
* gh-115035: Mark ThreadHandles as non-joinable earlier after forking (#115042)Sam Gross2024-02-067-41/+50
| | | | | | This marks dead ThreadHandles as non-joinable earlier in `PyOS_AfterFork_Child()` before we execute any Python code. The handles are stored in a global linked list in `_PyRuntimeState` because `fork()` affects the entire process.
* gh-103224: Resolve paths properly in test_sysconfig (GH-103292)Artem Mukhin2024-02-061-14/+23
| | | | | | To pass tests when executed through a Python symlink. Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* #gh-75705: Set unixfrom envelope in mailbox._mboxMMDF (GH-107117)Matthieu Caneill2024-02-063-3/+15
|
* gh-112529: Stop the world around gc.get_referents (#114823)Sam Gross2024-02-061-13/+28
| | | | | | | We do not want to add locking in `tp_traverse` slot implementations. Instead, stop the world when calling `gc.get_referents`. Note that the the stop the world call is a no-op in the default build. Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-112087: Make list_{count, index, contains} to be thread-safe. (gh-114916)Donghee Na2024-02-061-19/+33
|
* gh-112066: Add `PyDict_SetDefaultRef` function. (#112123)Sam Gross2024-02-067-20/+160
| | | | | | | The `PyDict_SetDefaultRef` function is similar to `PyDict_SetDefault`, but returns a strong reference through the optional `**result` pointer instead of a borrowed reference. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-114756: Update FAQ section on removing the GIL (#114957)da-woods2024-02-061-23/+29
| | | | | Update FAQ section on removing the GIL to reflect recent progress on PEP 703 and PEP 684. Co-authored-by: AN Long <aisk@users.noreply.github.com>
* gh-106233: Fix stacklevel in zoneinfo.InvalidTZPathWarning (GH-106234)Nikita Sobolev2024-02-063-11/+32
|
* gh-91602: Add iterdump() support for filtering database objects (#114501)Mariusz Felisiak2024-02-0611-17/+176
| | | | | | Add optional 'filter' parameter to iterdump() that allows a "LIKE" pattern for filtering database objects to dump. Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-112302: Change 'licenseConcluded' field to 'NOASSERTION' (#115038)Seth Michael Larson2024-02-062-35/+37
|
* gh-115009: Update macOS installer to use SQLite 3.45.1 (#115066)Erlend E. Aasland2024-02-062-3/+4
| | | Co-authored-by: Ned Deily <nad@python.org>
* GH-106747: Make pathlib ABC globbing more consistent with `glob.glob()` ↵Barney Gale2024-02-062-18/+18
| | | | | | | | | | | | (#115056) When expanding `**` wildcards, ensure we add a trailing slash to the topmost directory path. This matches `glob.glob()` behaviour: >>> glob.glob('dirA/**', recursive=True) ['dirA/', 'dirA/dirB', 'dirA/dirB/dirC'] This does not affect `pathlib.Path.glob()`, because trailing slashes aren't supported in pathlib proper.