Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-119182: Use public PyUnicodeWriter API in ga_repr() (#120799) | Victor Stinner | 2024-06-20 | 1 | -33/+35 |
| | | | | | | | | | | | | | | | The public PyUnicodeWriter API enables overallocation by default and so is more efficient. Benchmark: python -m pyperf timeit \ -s 't = list[int, float, complex, str, bytes, bytearray, ' \ 'memoryview, list, dict]' \ 'str(t)' Result: 1.49 us +- 0.03 us -> 1.10 us +- 0.02 us: 1.35x faster | ||||
* | gh-120769: Add pdb meta command to print frame status. (#120770) | Tian Gao | 2024-06-20 | 3 | -9/+49 |
| | |||||
* | gh-117511: Make PyMutex public in the non-limited API (#117731) | Sam Gross | 2024-06-20 | 18 | -110/+185 |
| | |||||
* | gh-120780: Show attribute name for LOAD_SPECIAL in dis output (#120781) | Jelle Zijlstra | 2024-06-20 | 6 | -7/+59 |
| | |||||
* | gh-98442: fix locations of with statement's cleanup instructions (#120763) | Irit Katriel | 2024-06-20 | 3 | -1/+38 |
| | | | gh-98442: fix location of with statement's cleanup instructions | ||||
* | gh-111259: Optimize complementary character sets in RE (GH-120742) | Serhiy Storchaka | 2024-06-20 | 4 | -13/+50 |
| | | | | | Patterns like "[\s\S]" or "\s|\S" which match any character are now compiled to the same effective code as a dot with the DOTALL modifier ("(?s:.)"). | ||||
* | gh-119698: symtable: Fix merge race (#120779) | Jelle Zijlstra | 2024-06-20 | 1 | -1/+1 |
| | |||||
* | gh-119698: fix `symtable.Class.get_methods` and document its behaviour ↵ | Bénédikt Tran | 2024-06-20 | 4 | -6/+187 |
| | | | | | | | correctly (#120151) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | Fix typos in comments (#120481) | Xie Yanbo | 2024-06-20 | 4 | -5/+5 |
| | |||||
* | GH-120602: Support LLVM_VERSION_SUFFIX for JIT builds (GH-120604) | Xarblu | 2024-06-20 | 2 | -1/+3 |
| | |||||
* | gh-120606: Allow EOF to exit pdb commands definition (#120607) | Tian Gao | 2024-06-19 | 3 | -0/+9 |
| | |||||
* | gh-120732: Fix `name` passing to `Mock`, when using kwargs to ↵ | Nikita Sobolev | 2024-06-19 | 3 | -7/+13 |
| | | | | `create_autospec` (#120737) | ||||
* | gh-118820: Zero-valued flag enum has no name (GH-118848) | Nice Zombies | 2024-06-19 | 1 | -0/+8 |
| | | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | ||||
* | Regen ``Doc/requirements-oldest-sphinx.txt`` (#120753) | Kirill Podoprigora | 2024-06-19 | 1 | -4/+4 |
| | |||||
* | gh-120521: clarify except* documentation to allow tuples (#120523) | Danny Yang | 2024-06-19 | 1 | -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 Katriel | 2024-06-19 | 2 | -6/+8 |
| | |||||
* | GH-120097: Make FrameLocalsProxy a mapping (#120101) | Mark Shannon | 2024-06-19 | 4 | -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 Shannon | 2024-06-19 | 7 | -103/+87 |
| | | | | * Remove uses of Py_TPFLAGS_VALID_VERSION_TAG | ||||
* | gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in ↵ | Nadeshiko Manju | 2024-06-19 | 3 | -2/+1 |
| | | | | | | gh-118322 (GH-120712) Co-authored-by: Ken Jin <kenjin4096@gmail.com> | ||||
* | Fix types in pegen parser generator (GH-120720) | yf-yang | 2024-06-19 | 3 | -6/+6 |
| | |||||
* | gh-120733: rename internal compiler functions according to naming convention ↵ | Irit Katriel | 2024-06-19 | 1 | -30/+23 |
| | | | | (#120734) | ||||
* | gh-120635: Avoid leaking processes in test_pyrepl (#120676) | Victor Stinner | 2024-06-19 | 1 | -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 Zijlstra | 2024-06-19 | 3 | -2/+31 |
| | |||||
* | gh-119960: Add information about regex flags in re module functions (#119978) | Awbert | 2024-06-19 | 1 | -0/+32 |
| | |||||
* | gh-102797: Add more code snippets in test_ast (#102798) | Kirill Podoprigora | 2024-06-19 | 1 | -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 Podoprigora | 2024-06-19 | 2 | -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 Viktorin | 2024-06-19 | 1 | -0/+1 |
| | | | | (GH-120703) | ||||
* | gh-120633: Move scrollbar and remove tear-off menus in turtledemo (#120634) | Wulian233 | 2024-06-19 | 2 | -4/+5 |
| | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | ||||
* | GH-119726: Deduplicate JIT trampolines for out-of-range jumps (GH-120250) | Diego Russo | 2024-06-19 | 2 | -4/+17 |
| | |||||
* | Ignore some failing tests in emulated JIT CI (GH-120375) | Diego Russo | 2024-06-19 | 1 | -1/+4 |
| | |||||
* | GH-73991: Add follow_symlinks argument to `pathlib.Path.copy()` (#120519) | Barney Gale | 2024-06-19 | 6 | -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 Gale | 2024-06-18 | 2 | -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 Katriel | 2024-06-18 | 3 | -2/+28 |
| | | | | replacement (#120714) | ||||
* | GH-73991: Use same signature for `shutil._rmtree_[un]safe()`. (#120517) | Barney Gale | 2024-06-18 | 2 | -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 Stinner | 2024-06-18 | 3 | -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) | devdanzin | 2024-06-18 | 3 | -0/+88 |
| | |||||
* | gh-120417: Add #noqa: F401 to tests (#120627) | Victor Stinner | 2024-06-18 | 24 | -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 Na | 2024-06-18 | 1 | -0/+3 |
| | |||||
* | gh-117953: Skip `test_interpreters` properly without GIL (#120689) | Nice Zombies | 2024-06-18 | 1 | -3/+6 |
| | |||||
* | gh-120417: Use import_helper() in test_regrtest (#120680) | Victor Stinner | 2024-06-18 | 1 | -14/+12 |
| | |||||
* | gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450) | Bénédikt Tran | 2024-06-18 | 2 | -17/+75 |
| | |||||
* | gh-120600: Make Py_TYPE() opaque in limited C API 3.14 (#120601) | Victor Stinner | 2024-06-18 | 8 | -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 Gross | 2024-06-18 | 8 | -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 Zombies | 2024-06-18 | 1 | -0/+4 |
| | |||||
* | gh-120417: Move imports to doctests in test_doctest (#120679) | Victor Stinner | 2024-06-18 | 1 | -4/+14 |
| | |||||
* | gh-119241: Add HOWTO for free-threaded C API extensions (#119877) | Sam Gross | 2024-06-18 | 2 | -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 Kaliszewski | 2024-06-18 | 4 | -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 Tran | 2024-06-18 | 2 | -60/+86 |
| | | | | | (#120675) Add do { ... } while (0) pattern. | ||||
* | gh-120662: Improve `smtplib` example (#120668) | Bénédikt Tran | 2024-06-18 | 1 | -12/+11 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | No longer watch the queue module, remove rhettinger (#120664) | Raymond Hettinger | 2024-06-18 | 1 | -2/+1 |
| |