]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 months agoImprove tests for str to Fraction conversion (GH-134010)
Serhiy Storchaka [Wed, 14 May 2025 17:16:07 +0000 (20:16 +0300)] 
Improve tests for str to Fraction conversion (GH-134010)

5 months agoDocs: remove link elements in builders other than HTML (#133720)
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

5 months agogh-133701: Fix incorrect `__annotations__` on TypedDict defined under PEP 563 (#133772)
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)

5 months agogh-133580: Add missing exception to _sys_getwindowsversion_from_kernel32 (GH-133574)
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)

5 months agogh-132983: Style improvements for `compression.zstd` (#133547)
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>
5 months agogh-133568: Only set `HAVE_AF_HYPERV` on supported WinAPI partitions (GH-133569)
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)

5 months agogh-133562: Skip security descriptors on unsupported Windows API partitions (GH-133563)
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)

5 months agogh-133986: Document string split algorithm when sep is None and maxsplit is 0 (#133987)
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>
5 months agoRemove trailing whitespace from python.gram (#133858)
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>
5 months agogh-133577: Add parameter `formatter` to `logging.basicConfig` (GH-133578)
Sebastian Pipping [Wed, 14 May 2025 06:45:00 +0000 (08:45 +0200)] 
gh-133577: Add parameter `formatter` to `logging.basicConfig` (GH-133578)

5 months agogh-132641: fix race in `lru_cache` under free-threading (#133787)
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.

5 months agogh-132983: Fix small issues with zstd support in zipfile (#133723)
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>
5 months agogh-95380: Remove the 1024 bytes limit in fcntl.fcntl() and fcntl.ioctl() (GH-132907)
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)

5 months agogh-133968: Add fast path to PyUnicodeWriter_WriteStr() (#133969)
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.

5 months agogh-133928: Improvements to using/windows.rst (GH-133952)
Steve Dower [Tue, 13 May 2025 11:38:59 +0000 (12:38 +0100)] 
gh-133928: Improvements to using/windows.rst (GH-133952)

5 months agogh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ (GH-133962)
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.

5 months agogh-133886: Fix sys.remote_exec() for non-UTF-8 paths (GH-133887)
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.

5 months agogh-132775: Add _PyFunction_GetXIData() (gh-133481)
Eric Snow [Mon, 12 May 2025 22:10:56 +0000 (16:10 -0600)] 
gh-132775: Add _PyFunction_GetXIData() (gh-133481)

5 months agogh-132983: Fix compiler warning about unused function ``mt_continue_should_break...
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)

5 months agogh-133885: skip `test_compress_locking` in `test_zstd` (#133943)
sobolevn [Mon, 12 May 2025 19:15:44 +0000 (22:15 +0300)] 
gh-133885: skip `test_compress_locking` in `test_zstd` (#133943)

5 months agogh-133926: pass commands via remote_pdb.set_trace instead of using remote_pdb.rcLines...
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)

5 months agogh-133413: Fix references to removed Request.has_data (GH-133414)
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.

5 months agoGH-128520: pathlib ABCs: add `JoinablePath.__vfspath__()` (#133437)
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__()`.

5 months agogh-133767: Fix use-after-free in the unicode-escape decoder with an error handler...
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().

5 months agogh-133653: Fix argparse.ArgumentParser with the formatter_class argument (GH-133813)
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.

5 months agogh-133677: Fix tests when running in non-UTF-8 locale (GH-133865)
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)

5 months agogh-133530: Modify Heapq docs image settings (gh-133937)
Stan Ulbrych [Mon, 12 May 2025 16:03:28 +0000 (17:03 +0100)] 
gh-133530: Modify Heapq docs image settings (gh-133937)

Add class

5 months agogh-133925: Make typing._UnionGenericAlias hashable (#133929)
Jelle Zijlstra [Mon, 12 May 2025 15:22:55 +0000 (08:22 -0700)] 
gh-133925: Make typing._UnionGenericAlias hashable (#133929)

5 months agogh-133904: Fix `math.factorial` documentation (#133907)
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>
5 months agogh-133744: Fix multiprocessing interrupt test: add an event (#133746)
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.

5 months agogh-132983: Convert zstd ``__new__`` methods to Argument Clinic (#133860)
Adam Turner [Mon, 12 May 2025 08:51:53 +0000 (09:51 +0100)] 
gh-132983: Convert zstd ``__new__`` methods to Argument Clinic (#133860)

5 months agogh-119180: annotationlib: Fix values of Format members in docs (#133841)
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

5 months agogh-119180: More documentation for PEP 649/749 (#133552)
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>
5 months agogh-133893: asyncio.graph: Replace TextIO annotation with io.Writer (#133894)
Sebastian Rittau [Sun, 11 May 2025 14:59:56 +0000 (16:59 +0200)] 
gh-133893: asyncio.graph: Replace TextIO annotation with io.Writer (#133894)

5 months agogh-133879: Copyedit "What's New in Python 3.15" (#133880)
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)

5 months agogh-100926: use explicit stginfo lock for pointer cache (#133867)
Kumar Aditya [Sun, 11 May 2025 08:24:20 +0000 (13:54 +0530)] 
gh-100926: use explicit stginfo lock for pointer cache  (#133867)

5 months agogh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (#133681)
Lauta [Sun, 11 May 2025 08:16:28 +0000 (10:16 +0200)] 
gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (#133681)

5 months agogh-133823: update "Pending Removal in 3.15" notes about `TypedDict` (#133864)
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)

5 months agogh-133823: require explicit empty sequence for 0-field `TypedDict` objects (#133863)
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)

5 months agogh-92897: document removal of `check_home` in `Doc/whatsnew/3.15.rst` (#133815)
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)

5 months agogh-133817: remove keyword arguments syntax for `NamedTuple` (#133822)
Bénédikt Tran [Sun, 11 May 2025 07:05:56 +0000 (09:05 +0200)] 
gh-133817: remove keyword arguments syntax for `NamedTuple` (#133822)

5 months agogh-133703: dict: fix calculate_log2_keysize() (GH-133809)
Inada Naoki [Sun, 11 May 2025 05:44:21 +0000 (14:44 +0900)] 
gh-133703: dict: fix calculate_log2_keysize() (GH-133809)

5 months agogh-132983: Remove leftovers from EndlessZstdDecompressor (#133856)
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>
5 months agogh-132983: Make zstd types immutable (#133784)
Adam Turner [Sat, 10 May 2025 22:37:17 +0000 (23:37 +0100)] 
gh-132983: Make zstd types immutable (#133784)

5 months agogh-133336: Remove comment about reserved -J in ``initconfig.c`` (#133821)
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)

5 months agogh-132983: Reduce the size of ``_zstdmodule.h`` (#133793)
Adam Turner [Sat, 10 May 2025 21:25:22 +0000 (22:25 +0100)] 
gh-132983: Reduce the size of ``_zstdmodule.h`` (#133793)

5 months agoAdd classmethod to setUpClass in test_pdb (#133840)
Tian Gao [Sat, 10 May 2025 18:10:58 +0000 (11:10 -0700)] 
Add classmethod to setUpClass in test_pdb (#133840)

5 months agogh-100926: fix thread safety of `ctypes` `__pointer_type__` (#133843)
Kumar Aditya [Sat, 10 May 2025 17:38:06 +0000 (23:08 +0530)] 
gh-100926: fix thread safety of `ctypes` `__pointer_type__` (#133843)

5 months agogh-86155: Fix data loss after unclosed script or style tag in HTMLParser (GH-22658)
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.

5 months agogh-133783: Fix __replace__ on AST nodes for optional attributes (#133797)
Jelle Zijlstra [Sat, 10 May 2025 16:17:38 +0000 (09:17 -0700)] 
gh-133783: Fix __replace__ on AST nodes for optional attributes (#133797)

5 months agogh-117088: Fix AIX build (GH-132595)
Ayappan Perumal [Sat, 10 May 2025 15:35:59 +0000 (21:05 +0530)] 
gh-117088: Fix AIX build (GH-132595)

5 months agogh-132642: document how to render human-readable `timedelta` objects (#133825)
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)

5 months agogh-77057: Fix handling of invalid markup declarations in HTMLParser (GH-9295)
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>
5 months agoTiny doc fix to double up backslashes in a Windows filesystem path (#133828)
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)

5 months agogh-133379: Fix misuse of the term "arguments" in error messages (GH-133382)
Stan Ulbrych [Sat, 10 May 2025 12:00:43 +0000 (13:00 +0100)] 
gh-133379: Fix misuse of the term "arguments" in error messages (GH-133382)

The right term is "parameters".

5 months ago gh-115999: Note Python 3.14 free-threaded changes in What's New (gh-131285)
Donghee Na [Sat, 10 May 2025 10:30:16 +0000 (19:30 +0900)] 
 gh-115999: Note Python 3.14 free-threaded changes in What's New (gh-131285)

---------

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: T. Wouters <thomas@python.org>
Co-authored-by: mpage <mpage@cs.stanford.edu>
5 months agogh-133447: Add basic color to `sqlite3` CLI (#133461)
Stan Ulbrych [Sat, 10 May 2025 07:59:01 +0000 (08:59 +0100)] 
gh-133447: Add basic color to `sqlite3` CLI (#133461)

5 months agogh-133009: fix UAF in `xml.etree.ElementTree.Element.__deepcopy__` (#133010)
Bénédikt Tran [Sat, 10 May 2025 07:32:39 +0000 (09:32 +0200)] 
gh-133009: fix UAF in `xml.etree.ElementTree.Element.__deepcopy__` (#133010)

5 months agogh-132971: Update shutil.which() docs (GH-133067)
Kokona [Sat, 10 May 2025 07:06:19 +0000 (15:06 +0800)] 
gh-132971: Update shutil.which() docs (GH-133067)

5 months agogh-133713: Compare the `f->stackpointer` to the result of `_PyFrame_Stackbase(f)...
Nybblista [Sat, 10 May 2025 03:04:32 +0000 (06:04 +0300)] 
gh-133713: Compare the `f->stackpointer` to the result of `_PyFrame_Stackbase(f)` (GH-133714)

6 months agogh-132983: Don't allow trailer data in ZstdFile (#133736)
Rogdham [Sat, 10 May 2025 02:32:22 +0000 (04:32 +0200)] 
gh-132983: Don't allow trailer data in ZstdFile (#133736)

6 months agoFix a typo in Misc/NEWS.d/3.140a1.rst (#133790)
Tan Long [Sat, 10 May 2025 02:31:24 +0000 (10:31 +0800)] 
Fix a typo in Misc/NEWS.d/3.140a1.rst (#133790)

6 months agogh-132493: Remove __annotations__ usage in inspect._signature_is_functionlike (#133415)
Jelle Zijlstra [Sat, 10 May 2025 01:42:53 +0000 (18:42 -0700)] 
gh-132493: Remove __annotations__ usage in inspect._signature_is_functionlike (#133415)

This check is potentially problematic because it could force evaluation of
annotations unnecessarily. This doesn't trigger for builtin objects (functions,
classes, or modules) with annotations, but it could trigger for third-party objects.

The check was not particularly useful anyway, because it succeeds if ``__annotations__``
is a dict or None, so the only thing this did was guard against objects that have an
``__annotations__`` attribute that is of some other type. That doesn't seem particularly
useful, so I just removed the check.

6 months agoGH-132983: PEP 7 and Argument Clinic changes for zstd (#133791)
Adam Turner [Sat, 10 May 2025 00:33:45 +0000 (01:33 +0100)] 
GH-132983: PEP 7 and Argument Clinic changes for zstd (#133791)

6 months agoGH-132983: remove empty_bytes from _zstd module state (#133785)
Adam Turner [Fri, 9 May 2025 20:17:12 +0000 (21:17 +0100)] 
GH-132983: remove empty_bytes from _zstd module state (#133785)

6 months agogh-132983: Simplify ``_zstd_exec()`` (#133775)
Adam Turner [Fri, 9 May 2025 19:15:19 +0000 (20:15 +0100)] 
gh-132983: Simplify ``_zstd_exec()`` (#133775)

6 months agoUpdate HTTP links in the _pydatetime docstrings (GH-133025)
Stan Ulbrych [Fri, 9 May 2025 18:38:37 +0000 (19:38 +0100)] 
Update HTTP links in the _pydatetime docstrings (GH-133025)

6 months agoRemove unused code from _pydatetime.py (GH-133768)
Stan Ulbrych [Fri, 9 May 2025 18:32:25 +0000 (19:32 +0100)] 
Remove unused code from _pydatetime.py (GH-133768)

It should have been removed in PR #7549 (bcb032e4acdebc043a7659a06e6037fe71020860).

6 months agogh-133519: Add console to resources in libregrtest (#133520)
AN Long [Fri, 9 May 2025 16:30:13 +0000 (01:30 +0900)] 
gh-133519: Add console to resources in libregrtest (#133520)

Add console to resources in libregrtest

6 months agogh-133741: Fix _can_strace(): check --trace option (#133766)
Victor Stinner [Fri, 9 May 2025 16:25:47 +0000 (18:25 +0200)] 
gh-133741: Fix _can_strace(): check --trace option (#133766)

The --trace option needs strace 5.5 or newer.

6 months agogh-133644: Avoid deprecated Py_SetProgramName() in _testembed.c (#133665)
Victor Stinner [Fri, 9 May 2025 15:50:21 +0000 (17:50 +0200)] 
gh-133644: Avoid deprecated Py_SetProgramName() in _testembed.c (#133665)

* Rename _testembed_Py_InitializeFromConfig() to
  _testembed_initialize().
* Replace _testembed_Py_Initialize() with _testembed_initialize().

6 months agogh-123299: Some copyedits to What's New in 3.14 (#133622)
Éric [Fri, 9 May 2025 15:32:26 +0000 (11:32 -0400)] 
gh-123299: Some copyedits to What's New in 3.14 (#133622)

6 months agogh-133610: Remove PyUnicode_AsDecoded/Encoded functions (#133612)
Stan Ulbrych [Fri, 9 May 2025 15:31:24 +0000 (16:31 +0100)] 
gh-133610: Remove PyUnicode_AsDecoded/Encoded functions (#133612)

6 months agogh-46236: Document PyUnicode_BuildEncodingMap (#133270)
Stan Ulbrych [Fri, 9 May 2025 15:19:07 +0000 (16:19 +0100)] 
gh-46236: Document PyUnicode_BuildEncodingMap (#133270)

6 months agogh-133403: Check `Tools/build/generate-build-details.py` with mypy (#133735)
sobolevn [Fri, 9 May 2025 14:21:49 +0000 (17:21 +0300)] 
gh-133403: Check `Tools/build/generate-build-details.py` with mypy (#133735)

6 months agoDocs: use boolean constants for returning boolean value (GH-133325)
Yongzi Li [Fri, 9 May 2025 14:11:50 +0000 (22:11 +0800)] 
Docs: use boolean constants for returning boolean value (GH-133325)

6 months agoManpage: -X gil is not related to PYTHON_HISTORY (#133753)
Stefano Rivera [Fri, 9 May 2025 14:11:21 +0000 (07:11 -0700)] 
Manpage: -X gil is not related to PYTHON_HISTORY (#133753)

6 months agoGH-132983: Restore libzstd fallback detection (#133565)
Adam Turner [Fri, 9 May 2025 14:09:20 +0000 (15:09 +0100)] 
GH-132983: Restore libzstd fallback detection (#133565)

6 months agogh-132983: Clean-ups for ``_zstd`` (#133670)
Adam Turner [Fri, 9 May 2025 14:08:51 +0000 (15:08 +0100)] 
gh-132983: Clean-ups for ``_zstd`` (#133670)

6 months agogh-133682: Fix inconsistent set ordering in annotationlib test (#133702)
Akshat Gupta [Fri, 9 May 2025 14:01:01 +0000 (19:31 +0530)] 
gh-133682: Fix inconsistent set ordering in annotationlib test (#133702)

6 months agogh-133644: update `Py_InteractiveFlag` deprecation notice (#133749)
Bénédikt Tran [Fri, 9 May 2025 13:42:42 +0000 (15:42 +0200)] 
gh-133644: update `Py_InteractiveFlag` deprecation notice (#133749)

6 months agogh-133439: Fix dot commands with trailing spaces are mistaken for multi-line sqlite...
Tan Long [Fri, 9 May 2025 11:41:10 +0000 (19:41 +0800)] 
gh-133439: Fix dot commands with trailing spaces are mistaken for multi-line sqlite statements in the sqlite3 command-line interface (GH-133440)

6 months agogh-133644: Remove deprecated Python initialization getter functions (#133661)
Bénédikt Tran [Fri, 9 May 2025 11:39:23 +0000 (13:39 +0200)] 
gh-133644: Remove deprecated Python initialization getter functions (#133661)

Remove functions:

* Py_GetExecPrefix()
* Py_GetPath()
* Py_GetPrefix()
* Py_GetProgramFullPath()
* Py_GetProgramName()
* Py_GetPythonHome()

6 months agogh-133017: Improve error message for invalid typecodes in multiprocessing.{Array...
Tomas R. [Fri, 9 May 2025 08:46:45 +0000 (10:46 +0200)] 
gh-133017: Improve error message for invalid typecodes in multiprocessing.{Array,Value} (GH-133252)

6 months agofix thread safety of `io.StringIO.truncate` (#133732)
Kumar Aditya [Fri, 9 May 2025 07:59:17 +0000 (13:29 +0530)] 
fix thread safety of `io.StringIO.truncate` (#133732)

6 months agogh-133581: Fix refleak in t-string AST unparsing (#133724)
Jelle Zijlstra [Fri, 9 May 2025 07:10:52 +0000 (00:10 -0700)] 
gh-133581: Fix refleak in t-string AST unparsing (#133724)

6 months agogh-133623: Add `ssl.HAS_PSK_TLS13` to detect external TLS 1.3 PSK support (#133624)
Will Childs-Klein [Fri, 9 May 2025 07:09:09 +0000 (03:09 -0400)] 
gh-133623: Add `ssl.HAS_PSK_TLS13` to detect external TLS 1.3 PSK support (#133624)

6 months agogh-133412: amend docs for the `inst` definition (#133708)
Nybblista [Fri, 9 May 2025 07:06:22 +0000 (10:06 +0300)] 
gh-133412: amend docs for the `inst` definition (#133708)

The `stack_effect` is incorrectly documented as being allowed to be optional.

6 months agogh-133253: making linecache thread-safe (#133305)
vfdev [Fri, 9 May 2025 06:45:16 +0000 (08:45 +0200)] 
gh-133253: making linecache thread-safe (#133305)

Co-authored-by: Sam Gross <colesbury@gmail.com>
6 months agogh-133476: Assert with the `PyStackRef_IsTaggedInt` function (GH-133477)
Nybblista [Fri, 9 May 2025 00:17:50 +0000 (03:17 +0300)] 
gh-133476: Assert with the `PyStackRef_IsTaggedInt` function (GH-133477)

6 months agoGH-131798: Split up and optimize CALL_ISINSTANCE (GH-133339)
Tomas R. [Thu, 8 May 2025 21:26:30 +0000 (23:26 +0200)] 
GH-131798: Split up and optimize CALL_ISINSTANCE (GH-133339)

6 months agogh-133541: Handle SyntaxError raised by the tokenizer on user input (#133606)
Łukasz Langa [Thu, 8 May 2025 20:14:38 +0000 (22:14 +0200)] 
gh-133541: Handle SyntaxError raised by the tokenizer on user input (#133606)

6 months agogh-133626: Ensure the traditional Windows installer doesn't accidentally pick up...
Steve Dower [Thu, 8 May 2025 19:47:36 +0000 (20:47 +0100)] 
gh-133626: Ensure the traditional Windows installer doesn't accidentally pick up site-packages (GH-133693)

6 months agoFix typo in pending-removal-in-3.14.rst (GH-133680)
Rafael Fontenelle [Thu, 8 May 2025 18:57:23 +0000 (15:57 -0300)] 
Fix typo in pending-removal-in-3.14.rst (GH-133680)

6 months agogh-132551: make `io.BytesIO` thread safe (#132616)
Tomasz Pytel [Thu, 8 May 2025 18:51:36 +0000 (14:51 -0400)] 
gh-132551: make `io.BytesIO` thread safe (#132616)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
6 months agoGH-132983: Remove subclassing support from zstd types (#133694)
Adam Turner [Thu, 8 May 2025 18:35:22 +0000 (19:35 +0100)] 
GH-132983: Remove subclassing support from zstd types (#133694)

For consistency with ``bz2``, ``lzma``, and ``zlib``.

6 months agoAdds docs to help with troubleshooting pip installs. (GH-133692)
Steve Dower [Thu, 8 May 2025 18:30:01 +0000 (19:30 +0100)] 
Adds docs to help with troubleshooting pip installs. (GH-133692)

6 months agogh-103092: Support subinterpreters in ``_zstd`` (#133674)
Adam Turner [Thu, 8 May 2025 18:11:34 +0000 (19:11 +0100)] 
gh-103092: Support subinterpreters in ``_zstd`` (#133674)

6 months agogh-133273: Keep instruction definitions in `bytecodes.c` and `optimizer_bytecodes...
Tomas R. [Thu, 8 May 2025 17:54:49 +0000 (19:54 +0200)] 
gh-133273: Keep instruction definitions in `bytecodes.c` and `optimizer_bytecodes.c` in sync  (GH-133320)

6 months agogh-133403: Check `Tools/build/verify_ensurepip_wheels.py` with mypy (#133453)
Flosckow [Thu, 8 May 2025 17:53:47 +0000 (00:53 +0700)] 
gh-133403: Check `Tools/build/verify_ensurepip_wheels.py` with mypy (#133453)

Co-authored-by: Daniil Dumchenko <dumchenko.de@sibvaleo.com>
Co-authored-by: sobolevn <mail@sobolevn.me>