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
Serhiy Storchaka
dcf93c4c93
gh-133595: Clean up sqlite3.Connection APIs (GH-133605)
...
* All parameters of sqlite3.connect() except "database" are now keyword-only.
* The first three parameters of methods create_function() and
create_aggregate() are now positional-only.
* The first parameter of methods set_authorizer(), set_progress_handler()
and set_trace_callback() is now positional-only.
2025-05-08 15:42:00 +03:00
Duane Griffin
2561e148ec
gh-91555: disable logger while handling log record (GH-131812)
...
Prevent the possibility of re-entrancy leading to deadlock or infinite recursion (caused by logging triggered by logging), by disabling logging while the logger is handling log messages.
2025-05-08 13:33:06 +01:00
Tan Long
4617d68d73
gh-133639: Fix test_auto_indent_default() doesn't run input_code ( #133640 )
2025-05-08 09:24:19 +01:00
dgpb
afed5f8835
gh-125028: Prohibit placeholders in partial keywords (GH-126062)
2025-05-08 10:53:53 +03:00
Jelle Zijlstra
90f476e0f8
gh-133551: Support t-strings in annotationlib ( #133553 )
...
I don't know why you'd use t-strings in annotations, but now if you do,
the STRING format will do a great job of recovering the source code.
2025-05-07 18:10:35 -07:00
Zachary Ware
74e2acddf6
Test fixes for 3.15 (GH-133599)
...
Followup to 942673ed19 (GH-133588)
* Update configure for Python 3.15
* Update magic number for 3.15
* Remove deprecated 'check_home' argument from sysconfig.is_python_build
* Add warningignore entries for Modules/_sqlite/clinic/connection.c.h
* Work around c-analyzer complaints about _testclinic deprecation tests
---------
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-05-07 14:50:39 -05:00
Max Bachmann
1460ccefd0
gh-133537: Avoid using console I/O in WinAPI partitions that don't support it (GH-133538)
2025-05-07 20:47:05 +01:00
Max Bachmann
427f8c366d
gh-133517: Remove os.listdrive, os.listvolumes and os.listmounts in non-desktop Windows builds (GH-133518)
2025-05-07 20:45:42 +01:00
TERESH1
d9b0b07098
gh-133516: Raise ValueError when constants True, False or None are used as an identifier after NFKC normalization ( #133523 )
2025-05-07 19:11:25 +01:00
Hugo van Kemenade
5ea24116b0
Merge branch 'main' of https://github.com/python/cpython
2025-05-07 18:53:08 +03:00
Sascha Ißbrücker
77b14a6d58
gh-69426: HTMLParser: only unescape properly terminated character entities in attribute values (GH-95215)
...
According to the HTML5 spec, named character references in attribute values
should only be processed if they are not followed by an ASCII alphanumeric,
or an equals sign.
https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state
2025-05-07 18:49:49 +03:00
Hugo van Kemenade
b092705907
Python 3.14.0b1
2025-05-06 18:33:52 +03:00
Semyon Moroz
bf8bbe9a81
gh-77065: Add optional keyword-only argument echo_char for getpass.getpass ( #130496 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-05-06 14:56:20 +03:00
Irit Katriel
296cd128bf
Revert "gh-133395: add option for extension modules to specialize BINARY_OP/SUBSCR, apply to arrays ( #133396 )" ( #133498 )
2025-05-06 13:12:26 +03:00
Matt Wozniski
982830ce56
gh-133490: Add color support to remote PDB ( #133491 )
2025-05-06 01:28:16 -04:00
Jelle Zijlstra
dbee142a01
gh-132493: Avoid eager evaluation of annotations in @reprlib.recursive_repr() ( #133411 )
2025-05-05 19:20:11 -07:00
Noah Kim
c4bcc6a778
gh-102567: Add -X importtime=2 for logging an importtime message for already-loaded modules ( #118655 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-05-06 01:03:55 +01:00
Adam Turner
e6f8e0a035
GH-132983: Build `_zstd` on Windows ( #133366 )
2025-05-06 00:58:47 +01:00
Brandt Bucher
b1aa515bd6
GH-133231: Add JIT utilities in sys._jit (GH-133233)
2025-05-05 15:25:22 -07:00
Łukasz Langa
f610bbdf74
gh-133346: Make theming support in _colorize extensible (GH-133347)
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-05-05 23:45:25 +02:00
Diego Russo
9cc77aaf9d
GH-131798: Split CALL_LEN into several uops (GH-133180)
2025-05-05 14:31:48 -07:00
Neil Schemenauer
893034cf93
gh-132917: Use RSS + swap for estimate of process memory usage (gh-133464)
2025-05-05 14:15:05 -07:00