summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-116991: Improve `pygen --help` for `python` subparser (#116992)Nikita Sobolev2024-06-031-1/+4
|
* gh-118827: Remove `Quoter` from `urllib.parse` (#118828)Nikita Sobolev2024-06-034-15/+10
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-119506: fix `_io.TextIOWrapper.write()` write during flush (#119507)Radislav Chugunov2024-06-033-9/+45
| | | Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* gh-119396: Optimize unicode_decode_utf8_writer() (#119957)Victor Stinner2024-06-031-5/+4
| | | | | | Optimize unicode_decode_utf8_writer() Take the ascii_decode() fast-path even if dest is not aligned on size_t bytes.
* gh-119961: Fix test workflow status badge in README (#119962)wookie1842024-06-031-1/+1
| | | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-117657: Fix data races report by TSAN unicode-hash (gh-119907)Donghee Na2024-06-032-9/+11
|
* gh-109975: What's New in Python 3.13: fix broken link for `telnetlib` ↵Solomon Himelbloom2024-06-031-1/+1
| | | | alternative (#119958)
* GH-119054: Add "Reading and writing files" section to pathlib docs (#119524)Barney Gale2024-06-021-79/+84
| | | | Add a dedicated subsection for `open()`, `read_text()`, `read_bytes()`, `write_text()` and `write_bytes()`.
* Improve documentation for typing.get_type_hints (#119928)Jelle Zijlstra2024-06-021-26/+28
| | | | | | | | | | | | - Explicit list of what it does that is different from "just return __annotations__" - Remove reference to PEP 563; adding the future import doesn't do anything to type aliases, and in general it will never make get_type_hints() less likely to fail. - Remove example, as the Annotated docs already have a similar example, and it's unbalanced to have one example about this one edge case but not about other behaviors of the function. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-117657: Fix TSAN reported race in `_PyEval_IsGILEnabled`. (#119921)Sam Gross2024-06-022-2/+2
| | | | The GIL may be disabled concurrently with this call so we need to use a relaxed atomic load.
* gh-119740: Remove deprecated trunc delegation (#119743)Mark Dickinson2024-06-0211-152/+16
| | | | | | | | Remove the delegation of `int` to the `__trunc__` special method: `int` will now only delegate to `__int__` and `__index__` (in that order). `__trunc__` continues to exist, but its sole purpose is to support `math.trunc`. --------- Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-119775: Remove ability to create immutable types with mutable bases (#119776)Nikita Sobolev2024-06-024-35/+13
|
* gh-118934: Fix PyEval_GetLocals docs (PEP 667) (#119932)Alyssa Coghlan2024-06-023-21/+46
| | | | | | | | | | | | | PEP 667's description of the planned changes to PyEval_GetLocals was internally inconsistent when accepted, so the docs added for gh-74929 didn't match either the current behaviour or the intended behaviour once gh-118934 is fixed. This PR updates the documentation and 3.13 What's New to match the intended behaviour (once gh-118934 is fixed). It also tidies up lingering references to `f_locals` always being a dictionary (this hasn't been true since at least when custom namespace support for class statement execution was added)
* Refactor (mostly rearrange) the statistics module (gh-119930)Raymond Hettinger2024-06-022-735/+783
|
* gh-119016: Remove outdated sentences from the "classes" tutorial (#119130)Nice Zombies2024-06-011-5/+1
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-89727: Fix `shutil.rmtree()` recursion error on deep trees (#119808)Barney Gale2024-06-013-97/+68
| | | | | Implement `shutil._rmtree_safe_fd()` using a list as a stack to avoid emitting recursion errors on deeply nested trees. `shutil._rmtree_unsafe()` was fixed in a150679f90.
* Add unique() recipe to itertools docs (gh-119911)Raymond Hettinger2024-06-011-2/+14
|
* gh-117657: Add TSAN suppression for `set_discard_entry` (#119908)Sam Gross2024-06-011-0/+2
| | | Seen in CI occasionally when running `test_weakref`.
* gh-113892: Add a extra check to `ProactorEventLoop.sock_connect` to ensure ↵Kirill Podoprigora2024-06-013-2/+12
| | | | that the given socket is in non-blocking mode (#119519)
* Minor speed/accuracy improvement for kde() (gh-119910)Raymond Hettinger2024-06-012-9/+10
|
* gh-117657: Fix TSAN race in QSBR assertion (#119887)Sam Gross2024-06-012-3/+2
| | | | Due to a limitation in TSAN, all reads from `PyThreadState.state` must be atomic to avoid reported races.
* gh-117657: Fix TSAN race in free-threaded GC (#119883)Sam Gross2024-06-012-6/+2
| | | | | Only call `gc_restore_tid()` from stop-the-world contexts. `worklist_pop()` can be called while other threads are running, so use a relaxed atomic to modify `ob_tid`.
* Bump types-psutil from 5.9.5.20240423 to 5.9.5.20240516 in /Tools (#119900)dependabot[bot]2024-06-011-1/+1
|
* build(deps-dev): bump types-setuptools from 69.5.0.20240423 to ↵dependabot[bot]2024-06-011-1/+1
| | | | 70.0.0.20240524 in /Tools (#119899)
* gh-118888: Further PEP 667 docs updates (gh-119893)Alyssa Coghlan2024-06-012-3/+44
| | | | | | * Clarify impact on default behaviour of exec, eval, etc * Update documentation for changes to PyEval_GetLocals (gh-74929) Closes gh-11888
* gh-74929: PEP 667 C API documentation (gh-119379)Alyssa Coghlan2024-06-019-11/+104
| | | | | | | | * Add docs for new APIs * Add soft-deprecation notices * Add What's New porting entries * Update comments referencing `PyFrame_LocalsToFast()` to mention the proxy instead * Other related cleanups found when looking for refs to the deprecated APIs
* statistics.fmean(): speed-up code path for non-sizeable inputs. (gh-119876)Raymond Hettinger2024-05-311-7/+5
|
* gh-119180: Lazily wrap annotations on classmethod and staticmethod (#119864)Jelle Zijlstra2024-05-313-3/+138
|
* gh-119821: Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS (#119822)Jelle Zijlstra2024-05-318-58/+76
| | | | | | | | | Support non-dict globals in LOAD_FROM_DICT_OR_GLOBALS The implementation basically copies LOAD_GLOBAL. Possibly it could be deduplicated, but that seems like it may get hairy since the two operations have different operands. This is important to fix in 3.14 for PEP 649, but it's a bug in earlier versions too, and we should backport to 3.13 and 3.12 if possible.
* gh-118894: Make asyncio REPL use pyrepl (GH-119433)Łukasz Langa2024-05-317-65/+143
|
* gh-119853: Add Include/refcount.h to projects (#119860)Victor Stinner2024-05-313-0/+5
|
* gh-119799: Add missing `_Py_IncRefTotal` to `_Py_NewRefWithLock` (#119800)Sam Gross2024-05-311-0/+3
| | | | The free-threaded refleak builds were reporting negative refcount deltas in some tests because of a missing `_Py_NewRefWithLock`.
* doc: Add glossary entry for "free threading" (#119865)Sam Gross2024-05-311-0/+6
|
* contextlib docs: Clean up redundant 'up' after 'cleanup' (GH-119867)Zachary Ware2024-05-311-1/+1
| | | Reported by Michael Kass on docs@
* gh-100117: Fix inaccuracy in documentation of the CodeObject's co_positions ↵Irit Katriel2024-05-311-1/+1
| | | | field. (#119364)
* gh-119369: Fix deadlock during thread exit in free-threaded build (#119528)Sam Gross2024-05-313-9/+19
| | | | | | | Release the GIL before calling `_Py_qsbr_unregister`. The deadlock could occur when the GIL was enabled at runtime. The `_Py_qsbr_unregister` call might block while holding the GIL because the thread state was not active, but the GIL was still held.
* gh-119770: Make termios ioctl() constants positive (#119840)Victor Stinner2024-05-314-18/+32
|
* gh-119585: Fix crash involving `PyGILState_Release()` and ↵Sam Gross2024-05-314-0/+36
| | | | | | | | | | `PyThreadState_Clear()` (#119753) Make sure that `gilstate_counter` is not zero in when calling `PyThreadState_Clear()`. A destructor called from `PyThreadState_Clear()` may call back into `PyGILState_Ensure()` and `PyGILState_Release()`. If `gilstate_counter` is zero, it will try to create a new thread state before the current active thread state is destroyed, leading to an assertion failure or crash.
* gh-119853: Add Include/refcount.h file (#119854)Victor Stinner2024-05-313-482/+501
|
* gh-111201: Skip pyrepl Windows tests earlier (#119848)Victor Stinner2024-05-311-2/+5
| | | | Don't attempt to load pyrepl Windows console if platforms others than Windows. For example, the import can fail if ctypes is missing.
* gh-111201: [pyrepl] Ensure optional platform-specific imports are optional ↵Łukasz Langa2024-05-311-12/+12
| | | | (GH-119834)
* gh-116145: Updated bundled Tcl/Tk on Windows to 8.6.14 (GH-117030)Steve Dower2024-05-314-12/+13
|
* gh-119189: Fix the power operator for Fraction (GH-119242)Joshua Herman2024-05-314-6/+12
| | | | | | When using the ** operator or pow() with Fraction as the base and an exponent that is not rational, a float, or a complex, the fraction is no longer converted to a float.
* gh-111201: Improve pyrepl auto indentation (#119606)Arnon Yaari2024-05-313-11/+101
| | | | - auto-indent when editing multi-line block - ignore comments
* gh-103194: Fix Tkinter’s Tcl value type handling for Tcl 8.7/9.0 (GH-103846)Christopher Chavez2024-05-312-18/+36
| | | | | | Some of standard Tcl types were renamed, removed, or no longer registered in Tcl 8.7/9.0. This change fixes automatic conversion of Tcl values to Python values to avoid returning a Tcl_Obj where the primary Python types (int, bool, str, bytes) were returned in older Tcl.
* gh-119780: Adjust exception messages in Lib/test/test_format.py (GH-119781)Sergey B Kirpichev2024-05-311-6/+6
| | | Mismatches were just output to the stdout, without making the test failing.
* gh-97747: Improvements to WASM browser REPL. (#97665)Katie Bell2024-05-312-8/+69
| | | | | Improvements to WASM browser REPL. Adds a text box to write and run code outside the REPL, a stop button, and handling of Ctrl-D for EOF.
* gh-111201: Support pyrepl on Windows (#119559)Dino Viehland2024-05-3115-49/+1020
| | | | Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-119744: move a few functions from compile.c to flowgraph.c (#119745)Irit Katriel2024-05-305-157/+157
|
* gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322)James De Bias2024-05-302-9/+22
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>