]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
da-woods [Sun, 18 May 2025 16:28:43 +0000 (17:28 +0100)]
document `Py_VISIT` as a macro in the docs (#133688)
Nybblista [Sun, 18 May 2025 16:26:58 +0000 (19:26 +0300)]
Docs: Fix the `_PyGenObject_HEAD` reference in the `InternalDocs/generators.md` (#133739)
Dave Jagoda [Sun, 18 May 2025 16:26:17 +0000 (09:26 -0700)]
Fix example in Doc/howto/functional.rst (#133978)
Yongzi Li [Sun, 18 May 2025 16:21:02 +0000 (00:21 +0800)]
fix indent in `controlflow.rst` docs (#134008)
Stan Ulbrych [Sun, 18 May 2025 15:59:20 +0000 (16:59 +0100)]
gh-134114: Clarify FAQ note about dictonary keys (#134118)
J. Nick Koston [Sun, 18 May 2025 15:56:20 +0000 (11:56 -0400)]
gh-134173: optimize state transfer between `concurrent.futures.Future` and `asyncio.Future` (#134174)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
b-pass [Sun, 18 May 2025 15:02:29 +0000 (11:02 -0400)]
gh-134144: Fix use-after-free in zapthreads() (#134145)
Bénédikt Tran [Sun, 18 May 2025 08:16:10 +0000 (10:16 +0200)]
gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faulthandler` (#134047)
In `faulthandler_sigfpe()`, instead of using 1/0 arithmetic, we explicitly raise SIGFPE.
We also remove `faulthandler._read_null()` since reading from NULL is an undefined
behavior and `faulthandler` should not check for low-level C undefined behaviors.
Bénédikt Tran [Sun, 18 May 2025 08:10:54 +0000 (10:10 +0200)]
gh-134082: modernize `string.Formatter` class docstring (#134125)
fixup Formatter class docstring
Nico-Posada [Sun, 18 May 2025 07:11:38 +0000 (03:11 -0400)]
gh-134100: Fix use-after-free in `PyImport_ImportModuleLevelObject` (#134117)
Micha Albert [Sun, 18 May 2025 01:47:37 +0000 (01:47 +0000)]
gh-134150: Clarify distinction between JSON and Python objects (#134154)
* gh-134150: Clarify distinction between JSON objects and Python objects in json module docs
* Revert change to JSON introduction
* Clarify occurrences of "object literal" as JSON
Victor Stinner [Sat, 17 May 2025 22:24:40 +0000 (18:24 -0400)]
gh-134064: Fix sys.remote_exec() error checking (#134067)
Jelle Zijlstra [Sat, 17 May 2025 19:23:19 +0000 (12:23 -0700)]
gh-134119: Fix crash from calling next() on exhausted template iterator (#134120)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
sobolevn [Sat, 17 May 2025 14:57:02 +0000 (17:57 +0300)]
gh-133999: Fix `except` parsing regression in 3.14 (#134035)
Kirill Podoprigora [Sat, 17 May 2025 13:11:19 +0000 (14:11 +0100)]
gh-88275: Add missing `__init__` method to `match` example (#120281)
Clifford Gama [Sat, 17 May 2025 11:36:38 +0000 (13:36 +0200)]
Docs: fix spelling of "test case" in `unittest` documentation (#134137)
Peter Bierma [Sat, 17 May 2025 08:58:41 +0000 (04:58 -0400)]
Docs: C API: Improve documentation around non-Python threads with subinterpreters (GH-131087)
Co-authored-by: Victor Stinner <vstinner@python.org>
Victorien [Sat, 17 May 2025 08:00:13 +0000 (10:00 +0200)]
gh-113878: fix `versionadded` in `dataclasses.field()` documentation (#134065)
Oleg Burnaev [Sat, 17 May 2025 07:59:37 +0000 (10:59 +0300)]
gh-133881: add forward reference to `list.sort()` in lambda expression tutorial (#133910)
Bénédikt Tran [Sat, 17 May 2025 07:58:16 +0000 (09:58 +0200)]
gh-133810: remove `http.server.CGIHTTPRequestHandler` and `--cgi` flag (#133811)
The CGI HTTP request handler has been deprecated since Python 3.13.
Serhiy Storchaka [Sat, 17 May 2025 07:11:34 +0000 (10:11 +0300)]
gh-134098: Fix handling %-encoded trailing slash in SimpleHTTPRequestHandler (GH-134099)
Serhiy Storchaka [Sat, 17 May 2025 07:00:56 +0000 (10:00 +0300)]
gh-133889: Improve tests for SimpleHTTPRequestHandler (GH-134102)
Serhiy Storchaka [Fri, 16 May 2025 20:29:14 +0000 (23:29 +0300)]
gh-134109: Fix showing comments in pydoc output for argparse (GH-134110)
Comments immediately preceding the object's source code are used
if the object has no docstring.
Comments that do not describe the object should be separated from
the following source code by an empty line.
Saleh Dehqanpour [Fri, 16 May 2025 19:12:40 +0000 (22:42 +0330)]
gh-117026: Remove outdated sentence in SimpleHTTPRequestHandler docs (GH-117027)
The code was changed in
0f7cddc308b297e6a1c2dd61503acea38401656f (bpo-839496/gh-39531).
alexey semenyuk [Fri, 16 May 2025 18:42:06 +0000 (23:42 +0500)]
gh-133286: add explanation about `seq` for pathlib Pattern Language (#133340)
Bénédikt Tran [Fri, 16 May 2025 18:36:48 +0000 (20:36 +0200)]
gh-134082: modernize docstrings in `string.Formatter` (#134083)
Kumar Aditya [Fri, 16 May 2025 15:31:15 +0000 (21:01 +0530)]
gh-133515: fix docs for unawaited coroutines in debug mode (#134081)
Alexey Makridenko [Fri, 16 May 2025 14:17:54 +0000 (16:17 +0200)]
gh-133604: remove deprecated `java_ver` function (#133888)
Semyon Moroz [Fri, 16 May 2025 12:17:29 +0000 (12:17 +0000)]
gh-124210: Add introduction to `threading` docs (#127046)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Bénédikt Tran [Fri, 16 May 2025 12:00:01 +0000 (14:00 +0200)]
gh-132388: test HACL* and OpenSSL hash functions in pure Python HMAC (#134051)
aeiouaeiouaeiouaeiouaeiouaeiou [Fri, 16 May 2025 10:23:11 +0000 (13:23 +0300)]
gh-134069: bump HACL* revision to incoporate `memset_s` (#134027)
Bumps the HACL* revision to include recent revisions that corrects issues
building with legacy/cross-platform macOS SDKs.
Signed-off-by: aeiouaeiouaeiouaeiouaeiouaeiou <aeioudev@outlook.com>
AN Long [Thu, 15 May 2025 23:00:06 +0000 (08:00 +0900)]
gh-130000: Release the GIL in winreg when doing Windows API calls (GH-130001)
Steve Dower [Thu, 15 May 2025 21:11:31 +0000 (22:11 +0100)]
Improve the administrative install docs for Python Install Manager (GH-134066)
Max Bachmann [Thu, 15 May 2025 20:12:10 +0000 (22:12 +0200)]
Fix GetNamedPipeHandleStateW on non-desktop Windows API partitions (GH-134049)
Semyon Moroz [Thu, 15 May 2025 15:14:31 +0000 (15:14 +0000)]
gh-77065: Use `putwch` instead of `putch` in `getpass.win_getpass` (#134058)
Bénédikt Tran [Thu, 15 May 2025 14:52:07 +0000 (16:52 +0200)]
gh-133873: remove deprecated mark interface for `wave.Wave_{read,write}` objects (#133874)
Hugo van Kemenade [Thu, 15 May 2025 13:10:56 +0000 (16:10 +0300)]
gh-133410: Fix PR detection in build workflow (#133671)
Semyon Moroz [Thu, 15 May 2025 13:07:34 +0000 (13:07 +0000)]
gh-77065: add missing parameter `echo_char` in `getpass.fallback_getpass` (#133849)
Max Bachmann [Thu, 15 May 2025 11:56:50 +0000 (13:56 +0200)]
Let PyUnicode_FromWideChar calculate the input length (GH-134045)
Max Bachmann [Thu, 15 May 2025 11:50:46 +0000 (13:50 +0200)]
gh-134041: Make _winapi functions compatible with non-desktop API partitions (GH-134042)
Max Bachmann [Thu, 15 May 2025 10:59:11 +0000 (12:59 +0200)]
gh-133572: Avoid using NTSTATUS on unsupported WinAPI partitions (GH-133573)
Hugo van Kemenade [Thu, 15 May 2025 09:39:42 +0000 (12:39 +0300)]
gh-119535: 3.15 minus π (#134037)
* Revert "gh-119535: Support 𝜋thon in Python 3.14 venvs (#125035)"
This reverts commit
fcef3fc9a593e2aa868d23cf2d91c57d8bf60ac6 .
* Revert "gh-119535: python𝜋 (#119536)"
This reverts commit
3fc673e97dafb8a73ee99937cf2bf0b849b1f418 .
sobolevn [Thu, 15 May 2025 09:13:03 +0000 (12:13 +0300)]
gh-133403: Check `Tools/build/deepfreeze.py` with mypy (#133802)
sobolevn [Thu, 15 May 2025 06:11:46 +0000 (09:11 +0300)]
gh-133970: Make PEP750 types generic (#133976)
Serhiy Storchaka [Wed, 14 May 2025 17:53:51 +0000 (20:53 +0300)]
Test also error messages in test_limit_int. (GH-134018)
Duane Griffin [Wed, 14 May 2025 17:49:35 +0000 (05:49 +1200)]
gh-127081: add critical sections to `dbm` objects (gh-132749)
Serhiy Storchaka [Wed, 14 May 2025 17:16:07 +0000 (20:16 +0300)]
Improve tests for str to Fraction conversion (GH-134010)
Maciej Olko [Wed, 14 May 2025 14:03:07 +0000 (16:03 +0200)]
Docs: remove link elements in builders other than HTML (#133720)
Fixes epub build
Jelle Zijlstra [Wed, 14 May 2025 13:24:33 +0000 (06:24 -0700)]
gh-133701: Fix incorrect `__annotations__` on TypedDict defined under PEP 563 (#133772)
Max Bachmann [Wed, 14 May 2025 13:10:35 +0000 (15:10 +0200)]
gh-133580: Add missing exception to _sys_getwindowsversion_from_kernel32 (GH-133574)
Emma Smith [Wed, 14 May 2025 12:08:27 +0000 (05:08 -0700)]
gh-132983: Style improvements for `compression.zstd` (#133547)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Max Bachmann [Wed, 14 May 2025 11:42:33 +0000 (13:42 +0200)]
gh-133568: Only set `HAVE_AF_HYPERV` on supported WinAPI partitions (GH-133569)
Max Bachmann [Wed, 14 May 2025 11:34:41 +0000 (13:34 +0200)]
gh-133562: Skip security descriptors on unsupported Windows API partitions (GH-133563)
Joey Smith [Wed, 14 May 2025 10:17:26 +0000 (04:17 -0600)]
gh-133986: Document string split algorithm when sep is None and maxsplit is 0 (#133987)
* Document string split algorithm when sep is None and maxsplit is 0
* Update Doc/library/stdtypes.rst
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
---------
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Rafael Fontenelle [Wed, 14 May 2025 07:52:19 +0000 (04:52 -0300)]
Remove trailing whitespace from python.gram (#133858)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Sebastian Pipping [Wed, 14 May 2025 06:45:00 +0000 (08:45 +0200)]
gh-133577: Add parameter `formatter` to `logging.basicConfig` (GH-133578)
Peter Hawkins [Tue, 13 May 2025 17:38:57 +0000 (13:38 -0400)]
gh-132641: fix race in `lru_cache` under free-threading (#133787)
Fix race in `lru_cache` by acquiring critical section on the cache object itself and call the lock held variant of dict functions to modify the underlying dict.
Carey Metcalfe [Tue, 13 May 2025 15:43:09 +0000 (11:43 -0400)]
gh-132983: Fix small issues with zstd support in zipfile (#133723)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Serhiy Storchaka [Tue, 13 May 2025 14:44:07 +0000 (17:44 +0300)]
gh-95380: Remove the 1024 bytes limit in fcntl.fcntl() and fcntl.ioctl() (GH-132907)
Victor Stinner [Tue, 13 May 2025 13:31:41 +0000 (15:31 +0200)]
gh-133968: Add fast path to PyUnicodeWriter_WriteStr() (#133969)
Don't call PyObject_Str() if the input type is str.
Steve Dower [Tue, 13 May 2025 11:38:59 +0000 (12:38 +0100)]
gh-133928: Improvements to using/windows.rst (GH-133952)
Petr Viktorin [Tue, 13 May 2025 09:11:52 +0000 (11:11 +0200)]
gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ (GH-133962)
Call Py_XDECREF rather than PyObject_GC_Del in failed __new__
This will call tp_dealloc and clear all members.
Serhiy Storchaka [Tue, 13 May 2025 08:55:24 +0000 (11:55 +0300)]
gh-133886: Fix sys.remote_exec() for non-UTF-8 paths (GH-133887)
It now supports non-ASCII paths in non-UTF-8 locales and
non-UTF-8 paths in UTF-8 locales.
Eric Snow [Mon, 12 May 2025 22:10:56 +0000 (16:10 -0600)]
gh-132775: Add _PyFunction_GetXIData() (gh-133481)
Erlend E. Aasland [Mon, 12 May 2025 19:23:40 +0000 (15:23 -0400)]
gh-132983: Fix compiler warning about unused function ``mt_continue_should_break()`` (#133947)
sobolevn [Mon, 12 May 2025 19:15:44 +0000 (22:15 +0300)]
gh-133885: skip `test_compress_locking` in `test_zstd` (#133943)
changlehung(牧牛的铃铛) [Mon, 12 May 2025 19:11:36 +0000 (03:11 +0800)]
gh-133926: pass commands via remote_pdb.set_trace instead of using remote_pdb.rcLines.extend (#133933)
ppaez [Mon, 12 May 2025 18:17:57 +0000 (12:17 -0600)]
gh-133413: Fix references to removed Request.has_data (GH-133414)
The has_data() method of http.request.Request
was removed in version 3.4.
Barney Gale [Mon, 12 May 2025 18:00:36 +0000 (19:00 +0100)]
GH-128520: pathlib ABCs: add `JoinablePath.__vfspath__()` (#133437)
In the abstract interface of `JoinablePath`, replace `__str__()` with
`__vfspath__()`. This frees user implementations of `JoinablePath` to
implement `__str__()` however they like (or not at all.)
Also add `pathlib._os.vfspath()`, which calls `__fspath__()` or
`__vfspath__()`.
Serhiy Storchaka [Mon, 12 May 2025 17:42:23 +0000 (20:42 +0300)]
gh-133767: Fix use-after-free in the unicode-escape decoder with an error handler (GH-129648)
If the error handler is used, a new bytes object is created to set as
the object attribute of UnicodeDecodeError, and that bytes object then
replaces the original data. A pointer to the decoded data will became invalid
after destroying that temporary bytes object. So we need other way to return
the first invalid escape from _PyUnicode_DecodeUnicodeEscapeInternal().
_PyBytes_DecodeEscape() does not have such issue, because it does not
use the error handlers registry, but it should be changed for compatibility
with _PyUnicode_DecodeUnicodeEscapeInternal().
Serhiy Storchaka [Mon, 12 May 2025 17:27:34 +0000 (20:27 +0300)]
gh-133653: Fix argparse.ArgumentParser with the formatter_class argument (GH-133813)
* Fix TypeError when formatter_class is a custom subclass of
HelpFormatter.
* Fix TypeError when formatter_class is not a subclass of
HelpFormatter and non-standard prefix_char is used.
* Fix support of colorizing when formatter_class is not a subclass of
HelpFormatter.
* Remove the prefix_chars parameter of HelpFormatter.
Serhiy Storchaka [Mon, 12 May 2025 16:09:11 +0000 (19:09 +0300)]
gh-133677: Fix tests when running in non-UTF-8 locale (GH-133865)
Stan Ulbrych [Mon, 12 May 2025 16:03:28 +0000 (17:03 +0100)]
gh-133530: Modify Heapq docs image settings (gh-133937)
Add class
Jelle Zijlstra [Mon, 12 May 2025 15:22:55 +0000 (08:22 -0700)]
gh-133925: Make typing._UnionGenericAlias hashable (#133929)
mkaraev [Mon, 12 May 2025 09:41:15 +0000 (14:41 +0500)]
gh-133904: Fix `math.factorial` documentation (#133907)
Co-authored-by: sobolevn <mail@sobolevn.me>
Victor Stinner [Mon, 12 May 2025 09:10:48 +0000 (11:10 +0200)]
gh-133744: Fix multiprocessing interrupt test: add an event (#133746)
Add an event to synchronize the parent process with the child
process: wait until the child process starts sleeping.
Adam Turner [Mon, 12 May 2025 08:51:53 +0000 (09:51 +0100)]
gh-132983: Convert zstd ``__new__`` methods to Argument Clinic (#133860)
Jelle Zijlstra [Sun, 11 May 2025 15:43:24 +0000 (08:43 -0700)]
gh-119180: annotationlib: Fix values of Format members in docs (#133841)
gh-119180: Fix values of Format members in docs
Jelle Zijlstra [Sun, 11 May 2025 15:43:17 +0000 (08:43 -0700)]
gh-119180: More documentation for PEP 649/749 (#133552)
The SC asked that the Appendix in PEP-749 be added to the docs.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Sebastian Rittau [Sun, 11 May 2025 14:59:56 +0000 (16:59 +0200)]
gh-133893: asyncio.graph: Replace TextIO annotation with io.Writer (#133894)
Bénédikt Tran [Sun, 11 May 2025 09:14:20 +0000 (11:14 +0200)]
gh-133879: Copyedit "What's New in Python 3.15" (#133880)
Kumar Aditya [Sun, 11 May 2025 08:24:20 +0000 (13:54 +0530)]
gh-100926: use explicit stginfo lock for pointer cache (#133867)
Lauta [Sun, 11 May 2025 08:16:28 +0000 (10:16 +0200)]
gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (#133681)
Bénédikt Tran [Sun, 11 May 2025 08:10:54 +0000 (10:10 +0200)]
gh-133823: update "Pending Removal in 3.15" notes about `TypedDict` (#133864)
Bénédikt Tran [Sun, 11 May 2025 08:04:45 +0000 (10:04 +0200)]
gh-133823: require explicit empty sequence for 0-field `TypedDict` objects (#133863)
Bénédikt Tran [Sun, 11 May 2025 07:47:14 +0000 (09:47 +0200)]
gh-92897: document removal of `check_home` in `Doc/whatsnew/3.15.rst` (#133815)
Bénédikt Tran [Sun, 11 May 2025 07:05:56 +0000 (09:05 +0200)]
gh-133817: remove keyword arguments syntax for `NamedTuple` (#133822)
Inada Naoki [Sun, 11 May 2025 05:44:21 +0000 (14:44 +0900)]
gh-133703: dict: fix calculate_log2_keysize() (GH-133809)
Rogdham [Sun, 11 May 2025 02:04:25 +0000 (04:04 +0200)]
gh-132983: Remove leftovers from EndlessZstdDecompressor (#133856)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Adam Turner [Sat, 10 May 2025 22:37:17 +0000 (23:37 +0100)]
gh-132983: Make zstd types immutable (#133784)
Bénédikt Tran [Sat, 10 May 2025 21:31:45 +0000 (23:31 +0200)]
gh-133336: Remove comment about reserved -J in ``initconfig.c`` (#133821)
Adam Turner [Sat, 10 May 2025 21:25:22 +0000 (22:25 +0100)]
gh-132983: Reduce the size of ``_zstdmodule.h`` (#133793)
Tian Gao [Sat, 10 May 2025 18:10:58 +0000 (11:10 -0700)]
Add classmethod to setUpClass in test_pdb (#133840)
Kumar Aditya [Sat, 10 May 2025 17:38:06 +0000 (23:08 +0530)]
gh-100926: fix thread safety of `ctypes` `__pointer_type__` (#133843)
Waylan Limberg [Sat, 10 May 2025 17:36:06 +0000 (13:36 -0400)]
gh-86155: Fix data loss after unclosed script or style tag in HTMLParser (GH-22658)
When calling .close() the HTMLParser should flush all remaining content,
even when that content is in an unclosed script or style tag.
Jelle Zijlstra [Sat, 10 May 2025 16:17:38 +0000 (09:17 -0700)]
gh-133783: Fix __replace__ on AST nodes for optional attributes (#133797)
Ayappan Perumal [Sat, 10 May 2025 15:35:59 +0000 (21:05 +0530)]
gh-117088: Fix AIX build (GH-132595)
Kentaro Jay Takahashi [Sat, 10 May 2025 15:33:28 +0000 (17:33 +0200)]
gh-132642: document how to render human-readable `timedelta` objects (#133825)
Ezio Melotti [Sat, 10 May 2025 14:31:43 +0000 (16:31 +0200)]
gh-77057: Fix handling of invalid markup declarations in HTMLParser (GH-9295)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Tim Golden [Sat, 10 May 2025 13:45:46 +0000 (14:45 +0100)]
Tiny doc fix to double up backslashes in a Windows filesystem path (#133828)