summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-120606: Allow EOF to exit pdb commands definition (#120607)Tian Gao2024-06-193-0/+9
|
* gh-120732: Fix `name` passing to `Mock`, when using kwargs to ↵Nikita Sobolev2024-06-193-7/+13
| | | | `create_autospec` (#120737)
* gh-118820: Zero-valued flag enum has no name (GH-118848)Nice Zombies2024-06-191-0/+8
| | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Regen ``Doc/requirements-oldest-sphinx.txt`` (#120753)Kirill Podoprigora2024-06-191-4/+4
|
* gh-120521: clarify except* documentation to allow tuples (#120523)Danny Yang2024-06-191-9/+10
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-119786: move locations doc to InternalDocs (#120445)Irit Katriel2024-06-192-6/+8
|
* GH-120097: Make FrameLocalsProxy a mapping (#120101)Mark Shannon2024-06-194-1/+20
| | | | | * Register FrameLocalsProxy as a subclass of collections.abc.Mapping * Allow FrameLocalsProxy to matching mapping patterns
* GH-119462: Enforce invariants of type versioning (GH-120731)Mark Shannon2024-06-197-103/+87
| | | | * Remove uses of Py_TPFLAGS_VALID_VERSION_TAG
* gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in ↵Nadeshiko Manju2024-06-193-2/+1
| | | | | | gh-118322 (GH-120712) Co-authored-by: Ken Jin <kenjin4096@gmail.com>
* Fix types in pegen parser generator (GH-120720)yf-yang2024-06-193-6/+6
|
* gh-120733: rename internal compiler functions according to naming convention ↵Irit Katriel2024-06-191-30/+23
| | | | (#120734)
* gh-120635: Avoid leaking processes in test_pyrepl (#120676)Victor Stinner2024-06-191-1/+1
| | | | | If the child process takes longer than SHORT_TIMEOUT seconds to complete, kill the process but then wait until it completes with no timeout to not leak child processes.
* gh-120722: Set position on RETURN_VALUE in lambda (#120724)Jelle Zijlstra2024-06-193-2/+31
|
* gh-119960: Add information about regex flags in re module functions (#119978)Awbert2024-06-191-0/+32
|
* gh-102797: Add more code snippets in test_ast (#102798)Kirill Podoprigora2024-06-191-8/+196
| | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Nineteendo <nineteendo19d0@gmail.com>
* gh-120726: Fix compiler warnings on is_core_module() (#120727)Kirill Podoprigora2024-06-192-4/+5
| | | | | Fix compiler warnings on is_core_module() and check_interpreter_whence(): only define them when assertions are built.
* Add a link to free-threading HOWTO to the index (follow-up to GH-119366) ↵Petr Viktorin2024-06-191-0/+1
| | | | (GH-120703)
* gh-120633: Move scrollbar and remove tear-off menus in turtledemo (#120634)Wulian2332024-06-192-4/+5
| | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* GH-119726: Deduplicate JIT trampolines for out-of-range jumps (GH-120250)Diego Russo2024-06-192-4/+17
|
* Ignore some failing tests in emulated JIT CI (GH-120375)Diego Russo2024-06-191-1/+4
|
* GH-73991: Add follow_symlinks argument to `pathlib.Path.copy()` (#120519)Barney Gale2024-06-196-11/+86
| | | | | | | Add support for not following symlinks in `pathlib.Path.copy()`. On Windows we add the `COPY_FILE_COPY_SYMLINK` flag is following symlinks is disabled. If the source is symlink to a directory, this call will fail with `ERROR_ACCESS_DENIED`. In this case we add `COPY_FILE_DIRECTORY` to the flags and retry. This can fail on old Windowses, which we note in the docs. No news as `copy()` was only just added.
* GH-73991: pathlib ABC tests: add `DummyPath.unlink()` and `rmdir()` (#120715)Barney Gale2024-06-182-20/+51
| | | | | In preparation for the addition of `PathBase.rmtree()`, implement `DummyPath.unlink()` and `rmdir()`, and move corresponding tests into `test_pathlib_abc` so they're run against `DummyPath`.
* gh-120367: fix bug where compiler detects redundant jump after pseudo op ↵Irit Katriel2024-06-183-2/+28
| | | | replacement (#120714)
* GH-73991: Use same signature for `shutil._rmtree_[un]safe()`. (#120517)Barney Gale2024-06-182-45/+44
| | | | | | | | | | | | | | Preparatory work for moving `_rmtree_unsafe()` and `_rmtree_safe_fd()` to `pathlib._os` so that they can be used from both `shutil` and `pathlib`. Move implementation-specific setup from `rmtree()` into the safe/unsafe functions, and give them the same signature `(path, dir_fd, onexc)`. In the tests, mock `os.open` rather than `_rmtree_safe_fd()` to ensure the FD-based walk is used, and replace a couple references to `shutil._use_fd_functions` with `shutil.rmtree.avoids_symlink_attacks` (which has the same value). No change of behaviour.
* gh-120688: Build WASI with -O3 in debug mode (#120691)Victor Stinner2024-06-183-0/+13
| | | | On WASI in debug mode, Python is now built with compiler flag -O3 instead of -Og, to support more recursive calls.
* gh-119574: Add some missing environment variables to '--help-env'. (GH-120006)devdanzin2024-06-183-0/+88
|
* gh-120417: Add #noqa: F401 to tests (#120627)Victor Stinner2024-06-1824-41/+43
| | | | Ignore linter "imported but unused" warnings in tests when the linter doesn't understand how the import is used.
* gh-120496: Add a note about iterator thread-safe (gh-120685)Donghee Na2024-06-181-0/+3
|
* gh-117953: Skip `test_interpreters` properly without GIL (#120689)Nice Zombies2024-06-181-3/+6
|
* gh-120417: Use import_helper() in test_regrtest (#120680)Victor Stinner2024-06-181-14/+12
|
* gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450)Bénédikt Tran2024-06-182-17/+75
|
* gh-120600: Make Py_TYPE() opaque in limited C API 3.14 (#120601)Victor Stinner2024-06-188-9/+40
| | | | In the limited C API 3.14 and newer, Py_TYPE() is now implemented as an opaque function call to hide implementation details.
* gh-118789: Add `PyUnstable_Object_ClearWeakRefsNoCallbacks` (#118807)Sam Gross2024-06-188-4/+68
| | | | | | | | | | | | This exposes `PyUnstable_Object_ClearWeakRefsNoCallbacks` as an unstable C-API function to provide a thread-safe mechanism for clearing weakrefs without executing callbacks. Some C-API extensions need to clear weakrefs without calling callbacks, such as after running finalizers like we do in subtype_dealloc. Previously they could use `_PyWeakref_ClearRef` on each weakref, but that's not thread-safe in the free-threaded build. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-120659: Skip `test_freethreading` with GIL (#120660)Nice Zombies2024-06-181-0/+4
|
* gh-120417: Move imports to doctests in test_doctest (#120679)Victor Stinner2024-06-181-4/+14
|
* gh-119241: Add HOWTO for free-threaded C API extensions (#119877)Sam Gross2024-06-182-0/+255
| | | | | | Some sections adapted from https://github.com/Quansight-Labs/free-threaded-compatibility/ written by Nathan Goldbaum. Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
* gh-120381: Fix inspect.ismethoddescriptor() (#120383)Jan Kaliszewski2024-06-184-10/+135
| | | | | | | | The `inspect.ismethoddescriptor()` function did not check for the lack of `__delete__()` and, consequently, erroneously returned True when applied to *data* descriptors with only `__get__()` and `__delete__()` defined. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* gh-120674: Protect multi-line macros in _testbuffer.c and _testcapimodule.c ↵Bénédikt Tran2024-06-182-60/+86
| | | | | (#120675) Add do { ... } while (0) pattern.
* gh-120662: Improve `smtplib` example (#120668)Bénédikt Tran2024-06-181-12/+11
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* No longer watch the queue module, remove rhettinger (#120664)Raymond Hettinger2024-06-181-2/+1
|
* GH-120507: Lower the `BEFORE_WITH` and `BEFORE_ASYNC_WITH` instructions. ↵Mark Shannon2024-06-1822-651/+663
| | | | | | | | | (#120640) * Remove BEFORE_WITH and BEFORE_ASYNC_WITH instructions. * Add LOAD_SPECIAL instruction * Reimplement `with` and `async with` statements using LOAD_SPECIAL
* gh-119897: Add test for lambda generator invocation (#120658)Irit Katriel2024-06-181-1/+5
| | | gh-120467: Add test for lambda generator invocation
* gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615)Serhiy Storchaka2024-06-181-8/+32
| | | | | | Mocking only works if sys.modules['pydoc'] and pydoc are the same, but some pydoc functions reload the module and change sys.modules. Ensure that sys.modules['pydoc'] is always restored after the corresponding tests.
* gh-120560: Mark `zip64` tests in `test_zipimport` as CPU-heavy (GH-120564)Nice Zombies2024-06-171-0/+2
|
* gh-120417: Remove unused imports in cases_generator (#120622)Victor Stinner2024-06-1711-30/+7
|
* gh-120524: Avoid a Race On ↵Eric Snow2024-06-172-3/+4
| | | | | _PyRuntime.types.managed_static.types[i].interp_count (gh-120529) gh-120182 added new global state (interp_count), but didn't add thread-safety for it. This change eliminates the possible race.
* gh-120417: Modify test_bdb to use the import (#120628)Victor Stinner2024-06-171-1/+2
| | | Run test_module_for_bdb with a specific namespace.
* gh-120417: Remove unused imports in tests (part 1) (#120629)Victor Stinner2024-06-1710-13/+3
|
* gh-120417: Remove unused imports in tests (part 2) (#120630)Victor Stinner2024-06-1710-15/+5
|
* gh-120417: Remove unused imports in tests (part 3) (#120631)Victor Stinner2024-06-1710-14/+4
|