Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-115254: Fix `test_property` with `-00` mode (#115255) | Nikita Sobolev | 2024-02-10 | 1 | -0/+1 |
| | |||||
* | gh-114670: Fix `_testbuffer` module initialization (#114672) | Nikita Sobolev | 2024-02-10 | 1 | -53/+74 |
| | |||||
* | gh-115252: Fix `test_enum` with `-OO` mode (GH-115253) | Nikita Sobolev | 2024-02-10 | 1 | -3/+14 |
| | |||||
* | GH-115060: Speed up `pathlib.Path.glob()` by removing redundant regex ↵ | Barney Gale | 2024-02-10 | 4 | -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 Zimin | 2024-02-10 | 7 | -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 Podoprigora | 2024-02-10 | 3 | -6/+37 |
| | | | | between Fraction and complex objects (GH-102842) | ||||
* | gh-115059: Remove debugging code in test_io (GH-115240) | Serhiy Storchaka | 2024-02-10 | 1 | -30/+0 |
| | |||||
* | gh-76763: Make chr() always raising ValueError for out-of-range values ↵ | Serhiy Storchaka | 2024-02-10 | 4 | -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 Oussoren | 2024-02-10 | 2 | -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 Sobolev | 2024-02-10 | 2 | -3/+11 |
| | | | | (#114662) | ||||
* | gh-96471: Add shutdown() method to queue.Queue (#104750) | Laurie O | 2024-02-10 | 5 | -0/+474 |
| | | | | Co-authored-by: Duprat <yduprat@gmail.com> | ||||
* | gh-111968: Refactor _PyXXX_Fini to integrate with _PyObject_ClearFreeLists ↵ | Donghee Na | 2024-02-10 | 20 | -107/+38 |
| | | | | (gh-114899) | ||||
* | gh-115165: Fix `typing.Annotated` for immutable types (#115213) | dave-shawley | 2024-02-09 | 3 | -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 Gross | 2024-02-09 | 21 | -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 Meyer | 2024-02-09 | 3 | -1/+92 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | Add Peter L to ACKS (GH-115222) | Peter Lazorchak | 2024-02-09 | 1 | -0/+1 |
| | |||||
* | gh-115142: Skip test_optimizer if _testinternalcapi module is not available ↵ | Kirill Podoprigora | 2024-02-09 | 1 | -1/+4 |
| | | | | (GH-115175) | ||||
* | gh-115184: Fix refleak tracking issues in free-threaded build (#115188) | Sam Gross | 2024-02-09 | 3 | -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. Aasland | 2024-02-09 | 1 | -2/+3 |
| | |||||
* | gh-115059: Flush the underlying write buffer in io.BufferedRandom.read1() ↵ | Serhiy Storchaka | 2024-02-09 | 3 | -0/+63 |
| | | | | (GH-115163) | ||||
* | GH-113632: update configure.ac for WebAssembly support tiers (#115192) | Brett Cannon | 2024-02-09 | 4 | -6/+11 |
| | | | Move WASI to tier 2 and drop Emscripten. | ||||
* | gh-101100: Fix sphinx warnings in `library/enum.rst` (#114696) | Nikita Sobolev | 2024-02-09 | 2 | -3/+15 |
| | | | | Co-authored-by: Ethan Furman <ethan@stoneleaf.us> | ||||
* | gh-115167: Exclude vcruntime140_threads.dll from Windows build output ↵ | adang1345 | 2024-02-08 | 2 | -1/+2 |
| | | | | (GH-115176) | ||||
* | gh-112069: Adapt set/frozenset methods to Argument Clinic (#115112) | Tomas R | 2024-02-08 | 3 | -157/+674 |
| | |||||
* | gh-107944: Improve error message for getargs with bad keyword arguments ↵ | Shantanu | 2024-02-08 | 6 | -29/+113 |
| | | | | (#114792) | ||||
* | gh-115136: Fix possible NULL deref in getpath_joinpath() (GH-115137) | Artem Chernyshev | 2024-02-08 | 1 | -0/+4 |
| | | | | Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru> | ||||
* | gh-115146: Fix typo in pickletools.py documentation (GH-115148) | Justin Applegate | 2024-02-08 | 1 | -1/+1 |
| | |||||
* | When the Py_CompileStringExFlags fuzzer encounters a SystemError, abort ↵ | Alex Gaynor | 2024-02-07 | 1 | -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 Meyer | 2024-02-07 | 1 | -12/+12 |
| | | | | (#115143) | ||||
* | gh-112066: Use `PyDict_SetDefaultRef` in place of `PyDict_SetDefault`. (#112211) | Sam Gross | 2024-02-07 | 6 | -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 Meyer | 2024-02-07 | 3 | -0/+33 |
| | |||||
* | GH-108362: Revert "GH-108362: Incremental GC implementation (GH-108038)" ↵ | Mark Shannon | 2024-02-07 | 13 | -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 Montanaro | 2024-02-07 | 2 | -8/+9 |
| | |||||
* | gh-114505: Add missing header file dependencies (#114513) | Skip Montanaro | 2024-02-07 | 1 | -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ón | 2024-02-07 | 1 | -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 Machine | 2024-02-07 | 1 | -3/+1 |
| | | | | | (GH-115107) change versionchanged to versionadded | ||||
* | gh-115009: Update Windows installer to use SQLite 3.45.1 (#115065) | Erlend E. Aasland | 2024-02-06 | 4 | -3/+4 |
| | |||||
* | gh-112075: Add critical sections for most dict APIs (#114508) | Dino Viehland | 2024-02-06 | 6 | -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 Gross | 2024-02-06 | 7 | -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 Mukhin | 2024-02-06 | 1 | -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 Caneill | 2024-02-06 | 3 | -3/+15 |
| | |||||
* | gh-112529: Stop the world around gc.get_referents (#114823) | Sam Gross | 2024-02-06 | 1 | -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 Na | 2024-02-06 | 1 | -19/+33 |
| | |||||
* | gh-112066: Add `PyDict_SetDefaultRef` function. (#112123) | Sam Gross | 2024-02-06 | 7 | -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-woods | 2024-02-06 | 1 | -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 Sobolev | 2024-02-06 | 3 | -11/+32 |
| | |||||
* | gh-91602: Add iterdump() support for filtering database objects (#114501) | Mariusz Felisiak | 2024-02-06 | 11 | -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 Larson | 2024-02-06 | 2 | -35/+37 |
| | |||||
* | gh-115009: Update macOS installer to use SQLite 3.45.1 (#115066) | Erlend E. Aasland | 2024-02-06 | 2 | -3/+4 |
| | | | Co-authored-by: Ned Deily <nad@python.org> | ||||
* | GH-106747: Make pathlib ABC globbing more consistent with `glob.glob()` ↵ | Barney Gale | 2024-02-06 | 2 | -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. |