Emma Smith
b44c824856
gh-132983: Style improvements for compression.zstd
( #133547 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-05-14 12:08:27 +00:00
Max Bachmann
e7ad59bd73
gh-133568: Only set HAVE_AF_HYPERV
on supported WinAPI partitions (GH-133569)
2025-05-14 11:42:33 +00:00
Max Bachmann
e528aef7e2
gh-133562: Skip security descriptors on unsupported Windows API partitions (GH-133563)
2025-05-14 11:34:41 +00:00
Joey Smith
3e23047363
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>
2025-05-14 06:17:26 -04:00
Rafael Fontenelle
6df39765e6
Remove trailing whitespace from python.gram ( #133858 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-05-14 10:52:19 +03:00
Sebastian Pipping
2eb49d278e
gh-133577: Add parameter formatter
to logging.basicConfig
(GH-133578)
2025-05-14 07:45:00 +01:00
Peter Hawkins
9ad0c7b0f1
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.
2025-05-13 17:38:57 +00:00
Carey Metcalfe
35f47d0589
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>
2025-05-13 16:43:09 +01:00
Serhiy Storchaka
18bf8f84aa
gh-95380: Remove the 1024 bytes limit in fcntl.fcntl() and fcntl.ioctl() (GH-132907)
2025-05-13 14:44:07 +00:00
Victor Stinner
fe9f6e829a
gh-133968: Add fast path to PyUnicodeWriter_WriteStr() ( #133969 )
...
Don't call PyObject_Str() if the input type is str.
2025-05-13 15:31:41 +02:00
Steve Dower
fc3cddd90a
gh-133928: Improvements to using/windows.rst (GH-133952)
2025-05-13 12:38:59 +01:00
Petr Viktorin
e575190abb
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.
2025-05-13 11:11:52 +02:00
Serhiy Storchaka
c09cec5d69
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.
2025-05-13 11:55:24 +03:00
Eric Snow
8cf4947b0f
gh-132775: Add _PyFunction_GetXIData() (gh-133481)
2025-05-12 22:10:56 +00:00
Erlend E. Aasland
121ed71f4e
gh-132983: Fix compiler warning about unused function `mt_continue_should_break()
` ( #133947 )
2025-05-12 20:23:40 +01:00
sobolevn
e8665d4d46
gh-133885: skip test_compress_locking
in test_zstd
( #133943 )
2025-05-12 19:15:44 +00:00
changlehung(牧牛的铃铛)
ae74e3f863
gh-133926: pass commands via remote_pdb.set_trace instead of using remote_pdb.rcLines.extend ( #133933 )
2025-05-12 15:11:36 -04:00
ppaez
86c1d439e0
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.
2025-05-12 21:17:57 +03:00
Barney Gale
5dbd27db7d
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__()`.
2025-05-12 19:00:36 +01:00
Serhiy Storchaka
9f69a58623
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().
2025-05-12 20:42:23 +03:00
Serhiy Storchaka
734e15b70d
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.
2025-05-12 20:27:34 +03:00
Serhiy Storchaka
14305a83d3
gh-133677: Fix tests when running in non-UTF-8 locale (GH-133865)
2025-05-12 19:09:11 +03:00
Stan Ulbrych
d1533115ba
gh-133530: Modify Heapq docs image settings (gh-133937)
...
Add class
2025-05-12 11:03:28 -05:00
Jelle Zijlstra
8d478c7953
gh-133925: Make typing._UnionGenericAlias hashable ( #133929 )
2025-05-12 08:22:55 -07:00
mkaraev
27ed64575d
gh-133904: Fix math.factorial
documentation ( #133907 )
...
Co-authored-by: sobolevn <mail@sobolevn.me>
2025-05-12 09:41:15 +00:00
Victor Stinner
c2989b7070
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.
2025-05-12 11:10:48 +02:00
Adam Turner
d29ddbd90c
gh-132983: Convert zstd `__new__
` methods to Argument Clinic ( #133860 )
2025-05-12 08:51:53 +00:00
Jelle Zijlstra
0eb448cae5
gh-119180: annotationlib: Fix values of Format members in docs ( #133841 )
...
gh-119180: Fix values of Format members in docs
2025-05-11 08:43:24 -07:00
Jelle Zijlstra
3396df56d0
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>
2025-05-11 08:43:17 -07:00
Sebastian Rittau
1d3eacedb8
gh-133893: asyncio.graph: Replace TextIO annotation with io.Writer ( #133894 )
2025-05-11 17:59:56 +03:00
Bénédikt Tran
13cb8ca3da
gh-133879: Copyedit "What's New in Python 3.15" ( #133880 )
2025-05-11 09:14:20 +00:00
Kumar Aditya
9b9cdb6440
gh-100926: use explicit stginfo lock for pointer cache ( #133867 )
2025-05-11 08:24:20 +00:00
Lauta
c838e21fda
gh-133590: ensure that TableEntry.linenumber_borrow
is initialized ( #133681 )
2025-05-11 10:16:28 +02:00
Bénédikt Tran
f91127ae1a
gh-133823: update "Pending Removal in 3.15" notes about TypedDict
( #133864 )
2025-05-11 10:10:54 +02:00
Bénédikt Tran
87312119da
gh-133823: require explicit empty sequence for 0-field TypedDict
objects ( #133863 )
2025-05-11 08:04:45 +00:00
Bénédikt Tran
add828951e
gh-92897: document removal of check_home
in Doc/whatsnew/3.15.rst
( #133815 )
2025-05-11 07:47:14 +00:00
Bénédikt Tran
c5e1775825
gh-133817: remove keyword arguments syntax for NamedTuple
( #133822 )
2025-05-11 09:05:56 +02:00
Inada Naoki
92337f666e
gh-133703: dict: fix calculate_log2_keysize() (GH-133809)
2025-05-11 14:44:21 +09:00
Rogdham
878e0fb8b4
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>
2025-05-11 02:04:25 +00:00
Adam Turner
1a87b6e9ae
gh-132983: Make zstd types immutable ( #133784 )
2025-05-10 22:37:17 +00:00
Bénédikt Tran
dc191d2484
gh-133336: Remove comment about reserved -J in `initconfig.c
` ( #133821 )
2025-05-10 22:31:45 +01:00
Adam Turner
1a548c0a50
gh-132983: Reduce the size of `_zstdmodule.h
` ( #133793 )
2025-05-10 22:25:22 +01:00
Tian Gao
4f2f780d53
Add classmethod to setUpClass in test_pdb ( #133840 )
2025-05-10 14:10:58 -04:00
Kumar Aditya
70f9b3de36
gh-100926: fix thread safety of ctypes
__pointer_type__
( #133843 )
2025-05-10 17:38:06 +00:00
Waylan Limberg
53383e90e4
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.
2025-05-10 17:36:06 +00:00
Jelle Zijlstra
7dddb4e667
gh-133783: Fix __replace__ on AST nodes for optional attributes ( #133797 )
2025-05-10 09:17:38 -07:00
Ayappan Perumal
47f1722d80
gh-117088: Fix AIX build (GH-132595)
2025-05-10 18:35:59 +03:00
Kentaro Jay Takahashi
efcc42ba70
gh-132642: document how to render human-readable timedelta
objects ( #133825 )
2025-05-10 17:33:28 +02:00
Ezio Melotti
76c0b01bc4
gh-77057: Fix handling of invalid markup declarations in HTMLParser (GH-9295)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-05-10 17:31:43 +03:00
Tim Golden
e7741dd773
Tiny doc fix to double up backslashes in a Windows filesystem path ( #133828 )
2025-05-10 13:45:46 +00:00