]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
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)

5 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)

5 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)

5 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.

5 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)

5 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)

5 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)

5 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)

5 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>
6 months agogh-132762: Fix underallocation bug in `dict.fromkeys()`(gh-133627)
Angela Liss [Thu, 8 May 2025 17:13:11 +0000 (13:13 -0400)] 
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.

6 months agogh-132886: use relaxed atomics for `sock_fd` in gil builds in socket module (#133208)
Kumar Aditya [Thu, 8 May 2025 17:03:41 +0000 (22:33 +0530)] 
gh-132886: use relaxed atomics for `sock_fd` in gil builds in socket module (#133208)

6 months agoClarify some wording in `wasi(\.py)?` (GH-133619)
Brett Cannon [Thu, 8 May 2025 16:54:46 +0000 (09:54 -0700)] 
Clarify some wording in `wasi(\.py)?` (GH-133619)

6 months agogh-132775: Add _PyCode_GetScriptXIData() (gh-133480)
Eric Snow [Thu, 8 May 2025 15:07:46 +0000 (09:07 -0600)] 
gh-132775: Add _PyCode_GetScriptXIData() (gh-133480)

This converts functions, code, str, bytes, bytearray, and memoryview objects to PyCodeObject,
and ensure that the object looks like a script.  That means no args, no return, and no closure.
_PyCode_GetPureScriptXIData() takes it a step further and ensures there are no globals.

We also add _PyObject_SupportedAsScript() to the internal C-API.

6 months agogh-131942: Use the Python-specific `Py_DEBUG` macro rather than `_DEBUG` in Windows...
Xuehai Pan [Thu, 8 May 2025 15:01:25 +0000 (23:01 +0800)] 
gh-131942: Use the Python-specific `Py_DEBUG` macro rather than `_DEBUG` in Windows-related C code (GH-131944)

6 months agogh-131031: Fix test_pickle when invoked directly (GH-133356)
Serhiy Storchaka [Thu, 8 May 2025 14:51:18 +0000 (17:51 +0300)] 
gh-131031: Fix test_pickle when invoked directly (GH-133356)

6 months agogh-133581: Improve AST unparsing of t-strings (#133635)
Jelle Zijlstra [Thu, 8 May 2025 13:13:57 +0000 (06:13 -0700)] 
gh-133581: Improve AST unparsing of t-strings (#133635)

6 months agogh-133644: remove deprecated `PyImport_ImportModuleNoBlock` (#133655)
Bénédikt Tran [Thu, 8 May 2025 13:08:43 +0000 (15:08 +0200)] 
gh-133644: remove deprecated `PyImport_ImportModuleNoBlock` (#133655)

6 months agogh-133454: Mark tests with many threads that use much memory as bigmem (GH-133456)
Serhiy Storchaka [Thu, 8 May 2025 12:57:30 +0000 (15:57 +0300)] 
gh-133454: Mark tests with many threads that use much memory as bigmem (GH-133456)

6 months agogh-133595: Clean up sqlite3.Connection APIs (GH-133605)
Serhiy Storchaka [Thu, 8 May 2025 12:42:00 +0000 (15:42 +0300)] 
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.

6 months agogh-91555: disable logger while handling log record (GH-131812)
Duane Griffin [Thu, 8 May 2025 12:33:06 +0000 (00:33 +1200)] 
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.

6 months agoUpdate the PCbuild sub-projects list (GH-133397)
Adam Turner [Thu, 8 May 2025 11:31:24 +0000 (12:31 +0100)] 
Update the PCbuild sub-projects list (GH-133397)

6 months agogh-133597: Fix memory leak if error occurred in _sys_getwindowsversion_from_kernel32...
Sergey Miryanov [Thu, 8 May 2025 11:09:20 +0000 (04:09 -0700)] 
gh-133597: Fix memory leak if error occurred in _sys_getwindowsversion_from_kernel32 (GH-133598)

6 months agogh-127833: Add links to token types to the lexical analysis intro (#131468)
Petr Viktorin [Thu, 8 May 2025 09:38:29 +0000 (11:38 +0200)] 
gh-127833: Add links to token types to the lexical analysis intro (#131468)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months agogh-133583: Add support for fixed size unsigned integers in argument parsing (GH-133584)
Serhiy Storchaka [Thu, 8 May 2025 09:27:50 +0000 (12:27 +0300)] 
gh-133583: Add support for fixed size unsigned integers in argument parsing (GH-133584)

* Add Argument Clinic converters: uint8, uint16, uint32, uint64.
* Add private C API: _PyLong_UInt8_Converter(),
  _PyLong_UInt16_Converter(), _PyLong_UInt32_Converter(),
  _PyLong_UInt64_Converter().

6 months agoDoc: Allow translating a code block in the tutorial (#131353)
Stan Ulbrych [Thu, 8 May 2025 09:22:04 +0000 (10:22 +0100)] 
Doc: Allow translating a code block in the tutorial (#131353)

Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months agogh-133639: Fix `test_auto_indent_default()` doesn't run `input_code` (#133640)
Tan Long [Thu, 8 May 2025 08:24:19 +0000 (16:24 +0800)] 
gh-133639: Fix `test_auto_indent_default()` doesn't run `input_code` (#133640)

6 months agogh-125028: Prohibit placeholders in partial keywords (GH-126062)
dgpb [Thu, 8 May 2025 07:53:53 +0000 (10:53 +0300)] 
gh-125028: Prohibit placeholders in partial keywords (GH-126062)

6 months agogh-133641: Doc: Add missing source link in ``concurrent.futures`` (#133642)
Jonas Obrist [Thu, 8 May 2025 07:21:51 +0000 (16:21 +0900)] 
gh-133641: Doc: Add missing source link in ``concurrent.futures`` (#133642)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months agogh-133467: Add TSAN suppressions for races in typeobject (gh-133534)
Neil Schemenauer [Thu, 8 May 2025 04:46:23 +0000 (21:46 -0700)] 
gh-133467: Add TSAN suppressions for races in typeobject (gh-133534)

6 months agogh-133532: Run GC fast cycles test in subprocess. (gh-133533)
Neil Schemenauer [Thu, 8 May 2025 04:38:57 +0000 (21:38 -0700)] 
gh-133532: Run GC fast cycles test in subprocess. (gh-133533)

This makes the test more reliable since there are not extra objects on the heap leftover
from other tests.

6 months agogh-132917: Use /proc/self/status for mem usage info. (#133544)
Neil Schemenauer [Thu, 8 May 2025 04:32:23 +0000 (21:32 -0700)] 
gh-132917: Use /proc/self/status for mem usage info. (#133544)

On Linux, use /proc/self/status for mem usage info.  Using smaps_rollup is quite a lot slower and
we can get the similar info from /proc/self/status.

6 months agogh-133551: Skip annotationlib for now in ast roundtrip tests (#133634)
Jelle Zijlstra [Thu, 8 May 2025 02:35:44 +0000 (19:35 -0700)] 
gh-133551: Skip annotationlib for now in ast roundtrip tests (#133634)

6 months agogh-127833: lexical analysis: Add backticks to BOM example (#132407)
Stan Ulbrych [Thu, 8 May 2025 01:34:48 +0000 (02:34 +0100)] 
gh-127833: lexical analysis: Add backticks to BOM example (#132407)

6 months agogh-133555: Allow regenerating the parser with Python < 3.14 (#133557)
Alex Prengère [Thu, 8 May 2025 01:28:20 +0000 (03:28 +0200)] 
gh-133555: Allow regenerating the parser with Python < 3.14 (#133557)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 months agogh-133551: Support t-strings in annotationlib (#133553)
Jelle Zijlstra [Thu, 8 May 2025 01:10:35 +0000 (18:10 -0700)] 
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.

6 months agogh-132983: Remove pyzstd in identifiers (#133535)
Rogdham [Thu, 8 May 2025 00:47:42 +0000 (02:47 +0200)] 
gh-132983: Remove pyzstd in identifiers (#133535)

6 months agogh-133530: Replace binary tree textual digram with image (gh-133591)
Stan Ulbrych [Thu, 8 May 2025 00:05:06 +0000 (01:05 +0100)] 
gh-133530: Replace binary tree textual digram with image (gh-133591)

Replace with image

6 months agogh-132775: Unrevert "Add _PyCode_VerifyStateless()" (gh-133528)
Eric Snow [Thu, 8 May 2025 00:00:33 +0000 (18:00 -0600)] 
gh-132775: Unrevert "Add _PyCode_VerifyStateless()" (gh-133528)

This reverts commit 3c73cf5 (gh-133497), which itself reverted
the original commit d270bb5 (gh-133221).

We reverted the original change due to failing android tests.
The checks in _PyCode_CheckNoInternalState() were too strict,
so we've relaxed them.

6 months agogh-133361: move the explanation of dict equal before its use (#133424)
Yongzi Li [Wed, 7 May 2025 22:04:49 +0000 (06:04 +0800)] 
gh-133361: move the explanation of dict equal before its use (#133424)

Also move up the explanation of insertion order preservation.  Both paragraphs seemed out of place down where they were.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 months agogh-133558: Skip test_pdb tests on FreeBSD (#133566)
Victor Stinner [Wed, 7 May 2025 20:59:29 +0000 (22:59 +0200)] 
gh-133558: Skip test_pdb tests on FreeBSD (#133566)

'\x08' is not interpreted as backspace on FreeBSD.

6 months agowasi: Update the location of the 'config.site' file in the build script (GH-133611)
Zachary Ware [Wed, 7 May 2025 20:48:41 +0000 (15:48 -0500)] 
wasi: Update the location of the 'config.site' file in the build script (GH-133611)

Also remove Tools/wasm from mypy CI workflow

6 months agoTest fixes for 3.15 (GH-133599)
Zachary Ware [Wed, 7 May 2025 19:50:39 +0000 (14:50 -0500)] 
Test fixes for 3.15 (GH-133599)

Followup to 942673ed194813015d98819cfae7eba78ba5e1f9 (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>
6 months agogh-133537: Avoid using console I/O in WinAPI partitions that don't support it (GH...
Max Bachmann [Wed, 7 May 2025 19:47:05 +0000 (21:47 +0200)] 
gh-133537: Avoid using console I/O in WinAPI partitions that don't support it (GH-133538)

6 months agogh-133517: Remove os.listdrive, os.listvolumes and os.listmounts in non-desktop Windo...
Max Bachmann [Wed, 7 May 2025 19:45:42 +0000 (21:45 +0200)] 
gh-133517: Remove os.listdrive, os.listvolumes and os.listmounts in non-desktop Windows builds (GH-133518)

6 months agoMerge branch 'main' of https://github.com/python/cpython
Brett Cannon [Wed, 7 May 2025 19:12:01 +0000 (12:12 -0700)] 
Merge branch 'main' of https://github.com/python/cpython

6 months agogh-133403: Type `Tools/build/update_file.py` and check it with `mypy` (#133404)
sobolevn [Wed, 7 May 2025 19:11:04 +0000 (22:11 +0300)] 
gh-133403: Type `Tools/build/update_file.py` and check it with `mypy` (#133404)

6 months agoGH-133600: Refactor `wasi.py` into `wasi/__main__.py`
Brett Cannon [Wed, 7 May 2025 19:10:53 +0000 (12:10 -0700)] 
GH-133600: Refactor `wasi.py` into `wasi/__main__.py`
Along the way, also move related files into their appropriate directories and update `.github/CODEOWNERS`.

6 months agogh-133575: eliminate legacy checks in `Lib/curses/__init__.py` (#133576)
Bénédikt Tran [Wed, 7 May 2025 18:28:32 +0000 (20:28 +0200)] 
gh-133575: eliminate legacy checks in `Lib/curses/__init__.py` (#133576)

6 months agogh-133516: Raise `ValueError` when constants `True`, `False` or `None` are used as...
TERESH1 [Wed, 7 May 2025 18:11:25 +0000 (21:11 +0300)] 
gh-133516: Raise `ValueError` when constants `True`, `False` or `None` are used as an identifier after NFKC normalization (#133523)

6 months agoFinishing touches to update `main` branch for 3.15 (#133588)
Hugo van Kemenade [Wed, 7 May 2025 17:46:41 +0000 (20:46 +0300)] 
Finishing touches to update `main` branch for 3.15 (#133588)

6 months agoMerge branch 'main' of https://github.com/python/cpython
Hugo van Kemenade [Wed, 7 May 2025 15:53:08 +0000 (18:53 +0300)] 
Merge branch 'main' of https://github.com/python/cpython

6 months agogh-131535: Fix stale example in html.parser docs, make examples doctests (GH-131551)
Brian Schubert [Wed, 7 May 2025 15:50:05 +0000 (11:50 -0400)] 
gh-131535: Fix stale example in html.parser docs, make examples doctests (GH-131551)

6 months agogh-69426: HTMLParser: only unescape properly terminated character entities in attribu...
Sascha Ißbrücker [Wed, 7 May 2025 15:49:49 +0000 (17:49 +0200)] 
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

6 months agoPython 3.15.0a0
Hugo van Kemenade [Wed, 7 May 2025 15:47:42 +0000 (18:47 +0300)] 
Python 3.15.0a0

6 months agoPython 3.14.0b1 v3.14.0b1
Hugo van Kemenade [Tue, 6 May 2025 15:33:32 +0000 (18:33 +0300)] 
Python 3.14.0b1

6 months agoPython 3.14.0b1
Hugo van Kemenade [Tue, 6 May 2025 15:32:57 +0000 (18:32 +0300)] 
Python 3.14.0b1

6 months agogh-123299: Copyedit "What's New in Python 3.14" (#133452)
Hugo van Kemenade [Tue, 6 May 2025 12:05:20 +0000 (15:05 +0300)] 
gh-123299: Copyedit "What's New in Python 3.14" (#133452)

Co-authored-by: Daniel Hollas <danekhollas@gmail.com>
6 months agoGH-132983: Remove zstd version check in the header file (#133502)
Adam Turner [Tue, 6 May 2025 12:04:50 +0000 (13:04 +0100)] 
GH-132983: Remove zstd version check in the header file (#133502)

6 months agogh-77065: Add optional keyword-only argument `echo_char` for `getpass.getpass` (...
Semyon Moroz [Tue, 6 May 2025 11:56:20 +0000 (15:56 +0400)] 
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>
6 months agogh-132917: Fix data race detected by tsan (#133508)
T. Wouters [Tue, 6 May 2025 11:23:10 +0000 (13:23 +0200)] 
gh-132917: Fix data race detected by tsan (#133508)

Fix data race detected by tsan
(https://github.com/python/cpython/actions/runs/14857021107/job/41712717208?pr=133502):
young.count can be modified by other threads even while the gcstate is
locked.

This is the simplest fix to (potentially) unblock beta 1, although this
particular code path seems like it could just be an atomic swap followed by
an atomic add, without having the lock at all.

6 months agoRevert "gh-133395: add option for extension modules to specialize BINARY_OP/SUBSCR...
Irit Katriel [Tue, 6 May 2025 10:12:26 +0000 (11:12 +0100)] 
Revert "gh-133395: add option for extension modules to specialize BINARY_OP/SUBSCR, apply to arrays (#133396)" (#133498)

6 months agogh-132775: Revert "gh-132775: Add _PyCode_VerifyStateless() (gh-133221)" (#133497)
Petr Viktorin [Tue, 6 May 2025 10:09:41 +0000 (12:09 +0200)] 
gh-132775: Revert "gh-132775: Add _PyCode_VerifyStateless() (gh-133221)" (#133497)

6 months agogh-133490: Fix syntax highlighting for remote PDB (#133494)
Matt Wozniski [Tue, 6 May 2025 09:44:49 +0000 (05:44 -0400)] 
gh-133490: Fix syntax highlighting for remote PDB (#133494)