Terry Jan Reedy
e3ea6f2b3b
gh-135956: Remove duplicate word in _pydatetime docstring ( #135957 )
...
_pydatetime.isoformat docstring repeats 'giving'.
2025-06-25 23:44:08 -04:00
Neil Schemenauer
1f5e23fd70
Add whatsnew text for warnings module changes. (gh-135869)
2025-06-25 20:03:24 -07:00
Stan Ulbrych
0fadd9fd20
gh-125142: remove duplicated import in Lib/pydoc.py (gh-135215)
2025-06-25 20:01:25 -07:00
Rob Reynolds
6227662ff3
Docs: Fix indentation in slice class of functions.rst (GH-134393)
...
Paragraph should not be under `slice.step`. It applies to the whole class.
---------
Co-authored-by: Rob Reynolds <13379223+reynoldsnlp@users.noreply.github.com>
2025-06-25 13:40:00 -04:00
Joseph Tibbertsma
cbfaf41caf
Fix needless spinning in _PyMutex_LockTimed with zero timeout (gh-135872)
...
The free threading build could spin unnecessarily on `_Py_yield()` if the initial
compare and swap failed.
2025-06-25 16:41:36 +00:00
Ken Jin
a88b49c3f2
gh-135927: Fix MSVC Clatest C builds (GH-135935)
2025-06-25 23:02:53 +08:00
HarryLHW
d2154912b3
Docs: Add cross-reference for positional_item in the calls productionlist (GH-129977)
...
Add missing hyperlink for `positional_item`
2025-06-25 10:24:58 -04:00
sobolevn
bcc2cbaa7f
gh-135839: Fix module_traverse and module_clear in subinterp modules ( #135937 )
2025-06-25 14:17:02 +00:00
Petr Viktorin
c2f2fd4eca
gh-131591: Make --without-remote-debug work (GH-135925)
...
The feature is checked using `defined(Py_REMOTE_DEBUG)`; defining
the macro (even as `0`) enables it.
2025-06-25 13:51:32 +02:00
Petr Viktorin
1b1ae82fab
gh-135755: Move SPECIAL_ constants to a private header (GH-135922)
...
Macros without a `Py`/`_Py` prefix should not be defined in public headers.
2025-06-25 13:03:05 +02:00
sobolevn
dd59c786cf
gh-135839: Fix module_traverse and module_clear in _interpchannelsmodule ( #135840 )
2025-06-25 11:54:42 +03:00
Peter Bierma
ca87a47b3d
gh-135755: Docs: C API: Document missing PyFunction_GET* macros (GH-135762)
...
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-06-25 08:44:55 +00:00
Neil Schemenauer
113de8545f
GH-133136: Revise QSBR to reduce excess memory held (gh-135473)
...
The free threading build uses QSBR to delay the freeing of dictionary
keys and list arrays when the objects are accessed by multiple threads
in order to allow concurrent reads to proceed with holding the object
lock. The requests are processed in batches to reduce execution
overhead, but for large memory blocks this can lead to excess memory
usage.
Take into account the size of the memory block when deciding when to
process QSBR requests.
Also track the amount of memory being held by QSBR for mimalloc pages. Advance the write sequence if this memory exceeds a limit. Advancing the sequence will allow it to be freed more quickly.
Process the held QSBR items from the "eval breaker", rather than from `_PyMem_FreeDelayed()`. This gives a higher chance that the global read sequence has advanced enough so that items can be freed.
Co-authored-by: Sam Gross <colesbury@gmail.com>
2025-06-25 00:06:32 -07:00
Vinay Sajip
18d32fb646
gh-91555: Revert disabling of logger while handling log record. (GH-135858)
...
Revert "gh-91555: disable logger while handling log record (GH-131812)"
This reverts commit 2561e148ec .
2025-06-25 06:42:38 +01:00
Brandt Bucher
ee0e22c088
GH-90117: Check for list and tuple before MappingView in pprint (GH-135779)
2025-06-24 14:41:41 -07:00
Brian Schubert
4e6f0d116e
gh-135855: Raise TypeError When Passing Non-dict Object to _interpreters.set___main___attrs (gh-135856)
2025-06-24 12:53:14 -06:00
mpage
fea5ccc55d
gh-135805: Document the X option and env var for controlling thread-local bytecode ( #135868 )
...
Document the X option and env var for controlling thread-local bytecode.
2025-06-24 10:02:50 -07:00
sobolevn
b3ab94acd3
gh-135878: Fix crash in types.SimpleNamespace.__repr__ ( #135889 )
...
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-06-24 19:33:25 +03:00
Bénédikt Tran
e5f03b94b6
gh-135487: fix reprlib.Repr.repr_int when given very large integers ( #135506 )
2025-06-24 11:09:46 +00:00
Victor Stinner
15c6d63fe6
gh-135494: Fix python -m test --pgo -x test_re ( #135713 )
...
Fix regrtest to support excluding tests from --pgo tests.
2025-06-24 12:21:35 +02:00
Mark Shannon
2060089254
GH-135106: Restrict trashcan to GC'ed objects (GH-135682)
2025-06-24 09:49:38 +01:00
Hugo van Kemenade
39ea593cbb
gh-123299: Update 'What's New in Python 3.14' from 3.14 branch ( #135616 )
2025-06-24 11:08:23 +03:00
Bénédikt Tran
ef4fc86afa
gh-135532: use defining_class for copying BLAKE-2 and SHA-3 objects ( #135838 )
2025-06-24 09:58:07 +02:00
Russell Keith-Magee
34393cbdd4
gh-135648: Document that shutil.copyfileobj doesn't flush ( #135737 )
...
Adds a note about flush/close on copyfileobj, and updates
the Emscripten build script to follow documented advice.
2025-06-24 08:55:50 +08:00
Vincent Poulailleau
2793b68f75
Fix example according to PEP 750 in "What's new in 3.14" (GH-134727)
...
A redundant extra part was written. Added a closing tag, to match the usage in PEP 750.
2025-06-23 19:36:30 -04:00
Yongzi Li
caad163b69
Docs: Use arguments to replace args in argparse.rst (GH-135510)
2025-06-23 18:53:33 -04:00
Neil Schemenauer
ceae4edf81
gh-119786: Add InternalDocs/qsbr.md. (gh-135411)
...
Add internal doc for the Quiescent-State Based Reclamation (QSBR) implementation.
2025-06-23 22:09:40 +00:00
Noam Cohen
bda121862e
gh-131798: Optimize _UNARY_NEGATIVE (GH-135223)
2025-06-24 03:42:09 +08:00
Ken Jin
569fc6870f
gh-134584: Specialize POP_TOP by reference and type in JIT (GH-135761)
2025-06-24 00:57:14 +08:00
Kumar Aditya
99712c45cc
GH-124878: reenable test_finalize_daemon_thread_hang test under TSAN ( #135793 )
2025-06-23 21:38:57 +05:30
sobolevn
b3ae76911d
Bump mypy to 1.16.1 ( #135720 )
2025-06-23 15:29:30 +03:00
Bénédikt Tran
396ca9a641
gh-135823: improve error message in netrc security checks ( #135827 )
2025-06-23 12:49:27 +02:00
Petr Viktorin
6aa0826ed7
gh-89488: Add warning about Py_BuildValue("p") needing exact int (GH-135610)
2025-06-23 12:35:59 +02:00
Emma Smith
6ab842fce5
gh-134986: Catch PermissionError when trying to call perf in tests ( #134987 )
...
Using Ubuntu 24.04 on the Windows Subsystem for Linux, perf will raise a
`PermissionError` instead of `FileNotFoundError`. This commit modifies
the tests to catch that.
2025-06-23 12:28:05 +02:00
Kumar Aditya
0d9d48959e
add async generators section to asyncio internal docs ( #135674 )
2025-06-23 06:22:28 +00:00
Bénédikt Tran
621a8bd6a8
gh-135532: cleanup clinic module directives for cryptographic modules ( #135822 )
2025-06-22 20:04:38 +00:00
Bénédikt Tran
b57b619e34
gh-135815: skip netrc security checks if os.getuid is missing ( #135816 )
2025-06-22 19:48:06 +00:00
Bénédikt Tran
e7295a89b8
gh-135239: simpler use of mutexes in cryptographic modules ( #135267 )
2025-06-22 16:59:57 +02:00
Kattni
ac9d37c60b
patchcheck: use URL paths to identify upstream remote (GH-135806)
...
* find defined "(fetch)" remotes with "python/cpython" in their URL
* if there is exactly one, use that remote name
* if there is one named "upstream", "origin", or "python",
use that remote (in that precedence order)
* otherwise report an error listing the defined remotes
2025-06-22 04:51:23 +00:00
Kumar Aditya
b14986c914
gh-130605: reenable test_concurrent_futures tests under TSAN ( #135790 )
2025-06-21 22:03:17 +05:30
Rafael Fontenelle
6a16b3c440
Docs: Remove unnecessary trailing backslashes (GH-135781)
...
This fixes Sphinx's gettext extraction for translations.
2025-06-21 09:01:14 -04:00
Bénédikt Tran
d08b4b2333
gh-135532: optimize calls to PyMem_Malloc in SHAKE digest computation ( #135744 )
...
- Add a fast path when the digest length is 0 to avoid calling useless functions.
- Directly allocate via `PyBytes_FromStringAndSize(NULL, length)` when possible.
2025-06-21 14:32:00 +02:00
Bénédikt Tran
7c4361564c
gh-135759: consistently reject negative sizes in SHAKE digests ( #135767 )
...
Passing a negative digest length to `_hashilb.HASHXOF.[hex]digest()` now
raises a ValueError instead of a MemoryError or a SystemError. This makes
the behavior consistent with that of `_sha3.shake_{128,256}.[hex]digest`.
2025-06-21 09:43:30 +00:00
Xuanteng Huang
13cac83347
gh-135557: use atomic stores in heapq operations in free-threading ( #135601 )
2025-06-21 14:13:15 +05:30
sobolevn
8ca1e4d846
gh-135645: Added supports_isolated_interpreters to sys.implementation ( #135667 )
...
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2025-06-21 10:56:14 +03:00
Hood Chatham
f4911258a8
gh-127146: Skip test_os.test_mode for Emscripten ( #135764 )
...
Temporarily skip test_os.test_mode on Emscripten; this fails consistently
on the buildbot, but not on other test configurations. Reported as #135783
for follow up.
2025-06-21 06:06:59 +00:00
Marcell Perger
4ddf505d99
gh-135756: Fix nonexistent parameter in tkinter docs ( #135770 )
...
Remove nonexistent color parameter from tkinter.commondialog.Dialog.show() method documentation.
2025-06-20 18:45:36 -04:00
Eric Snow
c5ea8e8e8f
gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size (gh-135724)
...
We weren't handling non-positive maxsize values (including the default) properly
in Queue.full(). This change fixes that and adjusts an associated assert.
2025-06-20 14:26:32 -06:00
Kumar Aditya
a8ec511900
gh-135380: enhance critical section held assertions ( #135381 )
2025-06-20 22:43:23 +05:30
Pastukhov Nikita
3fb6cfe7a9
gh-135721: skip test_trashcan_python_class on wasm buildbots with stack overflow ( #135766 )
2025-06-20 20:06:01 +03:00