Jelle Zijlstra
fc7f4c3666
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>
2025-05-17 12:23:19 -07:00
sobolevn
84914ad0e5
gh-133999: Fix except parsing regression in 3.14 ( #134035 )
2025-05-17 17:57:02 +03:00
Bénédikt Tran
faac627e47
gh-133810: remove http.server.CGIHTTPRequestHandler and --cgi flag ( #133811 )
...
The CGI HTTP request handler has been deprecated since Python 3.13.
2025-05-17 09:58:16 +02:00
Serhiy Storchaka
2f1ecb3bc4
gh-134098: Fix handling %-encoded trailing slash in SimpleHTTPRequestHandler (GH-134099)
2025-05-17 10:11:34 +03:00
Alexey Makridenko
7a4a6cf2b8
gh-133604: remove deprecated java_ver function ( #133888 )
2025-05-16 16:17:54 +02:00
aeiouaeiouaeiouaeiouaeiouaeiou
1566c34dc7
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>
2025-05-16 06:23:11 -04:00
Bénédikt Tran
3f61ea3add
gh-133873: remove deprecated mark interface for wave.Wave_{read,write} objects ( #133874 )
2025-05-15 14:52:07 +00:00
Max Bachmann
43410953c2
gh-133572: Avoid using NTSTATUS on unsupported WinAPI partitions (GH-133573)
2025-05-15 11:59:11 +01:00
sobolevn
c3a1da5b93
gh-133970: Make PEP750 types generic ( #133976 )
2025-05-15 09:11:46 +03:00
Duane Griffin
ffaeb3dddf
gh-127081: add critical sections to dbm objects (gh-132749)
2025-05-14 13:49:35 -04:00
Jelle Zijlstra
9836503b48
gh-133701: Fix incorrect __annotations__ on TypedDict defined under PEP 563 ( #133772 )
2025-05-14 06:24:33 -07:00
Max Bachmann
5d118d0a92
gh-133580: Add missing exception to _sys_getwindowsversion_from_kernel32 (GH-133574)
2025-05-14 14:10:35 +01: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
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
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
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
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
Jelle Zijlstra
8d478c7953
gh-133925: Make typing._UnionGenericAlias hashable ( #133929 )
2025-05-12 08:22:55 -07: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
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
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
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
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
Stan Ulbrych
dbca27cfca
gh-133379: Fix misuse of the term "arguments" in error messages (GH-133382)
...
The right term is "parameters".
2025-05-10 15:00:43 +03:00
Stan Ulbrych
30b1d8f11d
gh-133447: Add basic color to sqlite3 CLI ( #133461 )
2025-05-10 07:59:01 +00:00
Bénédikt Tran
116a9f9b37
gh-133009: fix UAF in xml.etree.ElementTree.Element.__deepcopy__ ( #133010 )
2025-05-10 09:32:39 +02:00
Tan Long
c896dae029
Fix a typo in Misc/NEWS.d/3.140a1.rst ( #133790 )
2025-05-10 03:31:24 +01:00
Jelle Zijlstra
cb6596c6aa
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.
2025-05-09 18:42:53 -07:00
Stan Ulbrych
4fd1095280
gh-133610: Remove PyUnicode_AsDecoded/Encoded functions ( #133612 )
2025-05-09 17:31:24 +02:00
Stefano Rivera
2a630a35cf
Manpage: -X gil is not related to PYTHON_HISTORY ( #133753 )
2025-05-09 17:11:21 +03:00
Akshat Gupta
a2a0fa91c4
gh-133682: Fix inconsistent set ordering in annotationlib test ( #133702 )
2025-05-09 07:01:01 -07:00
Tan Long
ebd4881db2
gh-133439: Fix dot commands with trailing spaces are mistaken for multi-line sqlite statements in the sqlite3 command-line interface (GH-133440)
2025-05-09 11:41:10 +00:00
Bénédikt Tran
5044e85265
gh-133644: Remove deprecated Python initialization getter functions ( #133661 )
...
Remove functions:
* Py_GetExecPrefix()
* Py_GetPath()
* Py_GetPrefix()
* Py_GetProgramFullPath()
* Py_GetProgramName()
* Py_GetPythonHome()
2025-05-09 11:39:23 +00:00
Tomas R.
f52de8a937
gh-133017: Improve error message for invalid typecodes in multiprocessing.{Array,Value} (GH-133252)
2025-05-09 11:46:45 +03:00
Will Childs-Klein
6801bd32cb
gh-133623: Add ssl.HAS_PSK_TLS13 to detect external TLS 1.3 PSK support ( #133624 )
2025-05-09 09:09:09 +02:00
vfdev
8054184f9f
gh-133253: making linecache thread-safe ( #133305 )
...
Co-authored-by: Sam Gross <colesbury@gmail.com>
2025-05-09 12:15:16 +05:30
Tomas R.
c492ac7252
GH-131798: Split up and optimize CALL_ISINSTANCE (GH-133339)
2025-05-08 14:26:30 -07:00
Łukasz Langa
b2fabce6ab
gh-133541: Handle SyntaxError raised by the tokenizer on user input ( #133606 )
2025-05-08 21:14:38 +01:00
Steve Dower
6ce469dcba
gh-133626: Ensure the traditional Windows installer doesn't accidentally pick up site-packages (GH-133693)
2025-05-08 20:47:36 +01:00
Tomasz Pytel
5dd3a3a58c
gh-132551: make io.BytesIO thread safe ( #132616 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-05-08 18:51:36 +00:00
Angela Liss
421ba589d0
gh-132762: Fix underallocation bug in dict.fromkeys()(gh-133627)
...
The function `dict_set_fromkeys()` adds elements of a set to an existing
dictionary. The size of the expanded dictionary was estimated with
`PySet_GET_SIZE(iterable)`, which did not take into account the size of the
existing dictionary.
2025-05-08 13:13:11 -04:00
Xuehai Pan
f0f93ba5fa
gh-131942: Use the Python-specific Py_DEBUG macro rather than _DEBUG in Windows-related C code (GH-131944)
2025-05-08 15:01:25 +00:00
Jelle Zijlstra
bfac7d2edc
gh-133581: Improve AST unparsing of t-strings ( #133635 )
2025-05-08 06:13:57 -07:00
Bénédikt Tran
a2c4467d06
gh-133644: remove deprecated PyImport_ImportModuleNoBlock ( #133655 )
2025-05-08 13:08:43 +00:00