]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 hours agogh-122431: Correct the non-negative error message in `readline.append_history_file... main
Zheng Yu [Tue, 23 Dec 2025 04:35:23 +0000 (22:35 -0600)] 
gh-122431: Correct the non-negative error message in `readline.append_history_file` (GH-143075)

"positive" -> "non-negative", since zero is included.

6 hours agogh-134584: Eliminate redundant refcounting from `_LOAD_ATTR_WITH_HINT` (GH-143062)
Hai Zhu [Tue, 23 Dec 2025 00:28:08 +0000 (08:28 +0800)] 
gh-134584: Eliminate redundant refcounting from `_LOAD_ATTR_WITH_HINT` (GH-143062)

Eliminate redundant refcounting from _LOAD_ATTR_WITH_HINT

6 hours agogh-138122: Allow tachyon to write and read binary output (#142730)
Pablo Galindo Salgado [Mon, 22 Dec 2025 23:57:20 +0000 (23:57 +0000)] 
gh-138122: Allow tachyon to write and read binary output (#142730)

6 hours agogh-139922: Add tail call for MSVC for whats new in 3.15 (GH-143087)
Ken Jin [Mon, 22 Dec 2025 23:56:26 +0000 (07:56 +0800)] 
gh-139922: Add tail call for MSVC for whats new in 3.15 (GH-143087)

7 hours agoGH-139922: Tail calling for MSVC (VS 2026) (GH-143068)
Chris Eibl [Mon, 22 Dec 2025 23:01:34 +0000 (00:01 +0100)] 
GH-139922: Tail calling for MSVC (VS 2026) (GH-143068)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandt@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
9 hours agogh-139109: Add terminator to JIT code when halting due to invalid dependencies ...
Ken Jin [Mon, 22 Dec 2025 20:54:47 +0000 (04:54 +0800)] 
gh-139109: Add terminator to JIT code when  halting due to invalid dependencies (#143033)

* Add terminator to JIT code when  halting due to invalid dependencies

* ðŸ“œðŸ¤– Added by blurb_it.

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
11 hours agogh-89152: Note truth testing exception in `stdtypes.rst` (#137640)
Stan Ulbrych [Mon, 22 Dec 2025 19:36:44 +0000 (19:36 +0000)] 
gh-89152: Note truth testing exception in `stdtypes.rst` (#137640)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
12 hours agogh-143010: Prevent a TOCTOU issue by only calling open once (#143011)
AZero13 [Mon, 22 Dec 2025 17:48:11 +0000 (12:48 -0500)] 
gh-143010: Prevent a TOCTOU issue by only calling open once (#143011)

* gh-143010: Prevent a TOCTOU issue by gh-143010: Prevent a TOCTOU issue by only calling open once

RDM: per  AZero13's research the 'x' option did not exist when this code was written,  This
modernization can thus drop the fd trick in _create_carefully and just use open with 'x' to achieve the same goal more securely.

Co-authored-by: sobolevn <mail@sobolevn.me>
13 hours agoGH-142513: fix missing return in executor_clear (GH-143073)
Chris Eibl [Mon, 22 Dec 2025 17:10:52 +0000 (18:10 +0100)] 
GH-142513: fix missing return in executor_clear (GH-143073)

fix missing return in executor_clear

14 hours agogh-129069: fix more thread safety issues in `list` (#143019)
Kumar Aditya [Mon, 22 Dec 2025 16:15:28 +0000 (21:45 +0530)] 
gh-129069: fix more thread safety issues in `list` (#143019)

15 hours agogh-143057: avoid locking in `tracemalloc` C-APIs when it is not enabled (#143065)
Kumar Aditya [Mon, 22 Dec 2025 15:38:07 +0000 (21:08 +0530)] 
gh-143057: avoid locking in `tracemalloc` C-APIs when it is not enabled (#143065)

15 hours agogh-142476: Fix Windows crashing with JIT (GH-143021)
Ken Jin [Mon, 22 Dec 2025 14:57:13 +0000 (22:57 +0800)] 
gh-142476: Fix Windows crashing with JIT (GH-143021)

Fix Windows crashing with JIT

16 hours agogh-142927: Tachyon: Comma separate thousands and fix singular/plurals (#142934)
Hugo van Kemenade [Mon, 22 Dec 2025 14:15:57 +0000 (16:15 +0200)] 
gh-142927: Tachyon: Comma separate thousands and fix singular/plurals (#142934)

20 hours agoRemove unreachable code in mmapmodule error path on Windows (GH-143063)
Yongtao Huang [Mon, 22 Dec 2025 10:16:50 +0000 (18:16 +0800)] 
Remove unreachable code in mmapmodule error path on Windows (GH-143063)

mmapmodule: remove unreachable code in Windows error path

Remove an unreachable `return NULL` after `PyErr_SetFromWindowsErr()` in
the Windows mmap resize error path.

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
23 hours agogh-143046: Make asyncio REPL respect the `-q` flag (quiet mode) (#143047)
Bartosz SÅ‚awecki [Mon, 22 Dec 2025 07:05:15 +0000 (08:05 +0100)] 
gh-143046: Make asyncio REPL respect the `-q` flag (quiet mode) (#143047)

37 hours agogh-80744: do not read .pdbrc twice when cwd == $home (#136816)
saucoide [Sun, 21 Dec 2025 16:58:07 +0000 (17:58 +0100)] 
gh-80744: do not read .pdbrc twice when cwd == $home (#136816)

47 hours agogh-70647: Better promote how to safely parse yearless dates in datetime. (GH-116179)
Gregory P. Smith [Sun, 21 Dec 2025 06:47:40 +0000 (22:47 -0800)] 
gh-70647: Better promote how to safely parse yearless dates in datetime. (GH-116179)

* gh-70647: Better promote how to safely parse yearless dates in datetime.

Every four years people encounter this because it just isn't obvious.
This moves the footnote up to a note with a code example.

We'd love to change the default year value for datetime but doing
that could have other consequences for existing code.  This documented
workaround *always* works.

* doctest code within note is bad, dedent.

* Update to match the error message.

* remove no longer referenced footnote

* ignore the warning in the doctest

* use Petr's suggestion for the docs to hide the warning processing

* cover date.strptime (3.14) as well

2 days agogh-142145: relax the no-longer-quadratic test timing (#143030)
Gregory P. Smith [Sat, 20 Dec 2025 23:42:06 +0000 (15:42 -0800)] 
gh-142145: relax the no-longer-quadratic test timing (#143030)

* gh-142145: relax the no-longer-quadratic test timing

* require cpu resource

2 days agogh-122581: Use parser mutex in default build for subinterpreters (gh-142959)
Sam Gross [Sat, 20 Dec 2025 20:37:31 +0000 (15:37 -0500)] 
gh-122581: Use parser mutex in default build for subinterpreters (gh-142959)

2 days agogh-120321: Avoid `-Wunreachable-code` warning on Clang (gh-143022)
Sam Gross [Sat, 20 Dec 2025 19:42:12 +0000 (14:42 -0500)] 
gh-120321: Avoid `-Wunreachable-code` warning on Clang (gh-143022)

2 days agogh-142834: pdb commands command should use last available breakpoint (#142835)
Hai Zhu [Sat, 20 Dec 2025 17:27:34 +0000 (01:27 +0800)] 
gh-142834:  pdb commands command should use last available breakpoint (#142835)

2 days agogh-143012: use `Py_ssize_t` cast for `PyBytes_FromStringAndSize` (#143013)
AZero13 [Sat, 20 Dec 2025 07:37:10 +0000 (02:37 -0500)] 
gh-143012: use `Py_ssize_t` cast for `PyBytes_FromStringAndSize` (#143013)

3 days agogh-142927: Tachyon: Start with user's default light/dark theme (#142987)
Hugo van Kemenade [Sat, 20 Dec 2025 01:36:09 +0000 (03:36 +0200)] 
gh-142927: Tachyon: Start with user's default light/dark theme (#142987)

3 days agogh-129069: Fix listobject.c data races due to memmove (gh-142957)
Sam Gross [Fri, 19 Dec 2025 23:06:47 +0000 (18:06 -0500)] 
gh-129069: Fix listobject.c data races due to memmove (gh-142957)

The use of memmove and _Py_memory_repeat were not thread-safe in the
free threading build in some cases. In theory, memmove and
_Py_memory_repeat can copy byte-by-byte instead of pointer-by-pointer,
so concurrent readers could see uninitialized data or tearing.

Additionally, we should be using "release" (or stronger) ordering to be
compliant with the C11 memory model when copying objects within a list.

3 days agogh-120321: Fix TSan reported race in gen_clear_frame (gh-142995)
Sam Gross [Fri, 19 Dec 2025 22:33:49 +0000 (17:33 -0500)] 
gh-120321: Fix TSan reported race in gen_clear_frame (gh-142995)

TSan treats compare-exchanges that fail as if they are writes
so there is a false positive with the read of gi_frame_state in
gen_close.

3 days agogh-120321: Make gi_frame_state transitions atomic in FT build (gh-142599)
Sam Gross [Fri, 19 Dec 2025 19:10:37 +0000 (14:10 -0500)] 
gh-120321: Make gi_frame_state transitions atomic in FT build (gh-142599)

This makes generator frame state transitions atomic in the free
threading build, which avoids segfaults when trying to execute
a generator from multiple threads concurrently.

There are still a few operations that aren't thread-safe and may crash
if performed concurrently on the same generator/coroutine:

 * Accessing gi_yieldfrom/cr_await/ag_await
 * Accessing gi_frame/cr_frame/ag_frame
 * Async generator operations

3 days agogh-142476: fix memory leak when creating JIT executors (GH-142492)
Shamil [Fri, 19 Dec 2025 19:07:11 +0000 (22:07 +0300)] 
gh-142476: fix memory leak when creating JIT executors (GH-142492)

3 days agogh-134584: JIT: Borrow references for immortal promoted globals (GH-142921)
Ken Jin [Fri, 19 Dec 2025 19:06:34 +0000 (03:06 +0800)] 
gh-134584: JIT: Borrow references for immortal promoted globals (GH-142921)

JIT: Borrow references for immortal promoted globals

3 days agogh-142776: Ensure fp file descriptor is closed on all code paths in import.c (GH...
stratakis [Fri, 19 Dec 2025 18:14:52 +0000 (19:14 +0100)] 
gh-142776: Ensure fp file descriptor is closed on all code paths in import.c (GH-142777)

3 days agogh-142961: Fix constant folding len(tuple) in JIT (GH-142963)
Ken Jin [Fri, 19 Dec 2025 17:43:36 +0000 (01:43 +0800)] 
gh-142961: Fix constant folding len(tuple) in JIT (GH-142963)

3 days agogh-134160: Start "Extending and embedding" with a Diataxis-style tutorial (GH-142314)
Petr Viktorin [Fri, 19 Dec 2025 16:48:34 +0000 (17:48 +0100)] 
gh-134160: Start "Extending and embedding" with a Diataxis-style tutorial (GH-142314)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Daniele Nicolodi <daniele@grinta.net>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
3 days agoJIT: Rename trampoline.c to shim.c (#142974)
Diego Russo [Fri, 19 Dec 2025 14:39:41 +0000 (14:39 +0000)] 
JIT: Rename trampoline.c to shim.c (#142974)

3 days agogh-136282: Configparser: create unnamed sections via mapping protocol access (GH...
Rogdham [Fri, 19 Dec 2025 12:44:03 +0000 (13:44 +0100)] 
gh-136282: Configparser: create unnamed sections via mapping protocol access (GH-136313)

3 days agogh-142527: Docs: Clarify that random.seed() discards the sign of an integer input...
Andrej [Fri, 19 Dec 2025 08:29:35 +0000 (00:29 -0800)] 
gh-142527: Docs: Clarify that random.seed() discards the sign of an integer input (#142483)

If *a* is an integer, the sign of *a* is discarded in the C source code. Clarify this behavior to prevent foot guns, where a common use case might naively assume that flipping the sign will produce different sequences (e.g. for a train/test split of a synthetic data generator in machine learning).

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 days agogh-142560: prevent use-after-free in search-like methods by exporting buffer in bytea...
wangxiaolei [Fri, 19 Dec 2025 08:02:23 +0000 (16:02 +0800)] 
gh-142560: prevent use-after-free in search-like methods by exporting buffer in bytearray (#142938)

4 days agoGH-134584: Remove redundant refcount for `BINARY_OP_SUBSCR_STR_INT` (#142844)
Savannah Ostrowski [Thu, 18 Dec 2025 21:29:54 +0000 (13:29 -0800)] 
GH-134584: Remove redundant refcount for `BINARY_OP_SUBSCR_STR_INT` (#142844)

4 days agogh-118342: [Enum] update docs (GH-137290)
Ethan Furman [Thu, 18 Dec 2025 18:31:37 +0000 (10:31 -0800)] 
gh-118342: [Enum] update docs (GH-137290)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 days agogh-134584: Eliminate redundant refcounting from _BINARY_OP_SUBSCR_LIST_INT (GH-142926)
LloydZ [Thu, 18 Dec 2025 18:25:36 +0000 (02:25 +0800)] 
gh-134584: Eliminate redundant refcounting from _BINARY_OP_SUBSCR_LIST_INT (GH-142926)

4 days agogh-129068: Make range iterators thread-safe (gh-142886)
Sam Gross [Thu, 18 Dec 2025 18:11:51 +0000 (13:11 -0500)] 
gh-129068: Make range iterators thread-safe (gh-142886)

Now that we specialize range iteration in the interpreter for the common
case where the iterator has only one reference, there's not a
significant performance cost to making the iteration thread-safe.

4 days agogh-142890: remove unnecessary interp parameter from dict functions and `_PyDict_Notif...
Kumar Aditya [Thu, 18 Dec 2025 17:18:56 +0000 (22:48 +0530)] 
gh-142890: remove unnecessary interp parameter from dict functions and `_PyDict_NotifyEvent` (#142923)

4 days agogh-142681: Move NormalizationTest-3.2.0.txt to more safe place. (GH-142935)
Serhiy Storchaka [Thu, 18 Dec 2025 17:04:28 +0000 (19:04 +0200)] 
gh-142681: Move NormalizationTest-3.2.0.txt to more safe place. (GH-142935)

4 days agoGH-142513: Reimplement executor management (GH-142931)
Mark Shannon [Thu, 18 Dec 2025 16:43:44 +0000 (16:43 +0000)] 
GH-142513: Reimplement executor management (GH-142931)

* Invalidating an executor does not cause arbitrary code to run
* Executors are only freed at safe points

4 days agogh-142419: Add mmap.set_name method for user custom annotation (gh-142480)
Donghee Na [Thu, 18 Dec 2025 14:33:49 +0000 (23:33 +0900)] 
gh-142419: Add mmap.set_name method for user custom annotation (gh-142480)

4 days agogh-76007: Deprecate `VERSION` in `xml.etree.ElementTree` & `version` in `xml.sax...
Hugo van Kemenade [Thu, 18 Dec 2025 14:22:23 +0000 (16:22 +0200)] 
gh-76007: Deprecate `VERSION` in `xml.etree.ElementTree` & `version` in `xml.sax.expatreader` & `xml.sax.handler` (#142898)

4 days agoFix typo in `format_string` docstring (GH-136742)
Max R [Thu, 18 Dec 2025 13:43:19 +0000 (08:43 -0500)] 
Fix typo in `format_string` docstring (GH-136742)

4 days agogh-142784: make the asyncio REPL call `loop.close()` at exit (#142785)
Bartosz SÅ‚awecki [Thu, 18 Dec 2025 13:00:12 +0000 (14:00 +0100)] 
gh-142784: make the asyncio REPL call `loop.close()` at exit (#142785)

4 days agogh-124098: Fix incorrect inclusion of handler methods without protocol prefix in...
MonadChains [Thu, 18 Dec 2025 12:50:05 +0000 (13:50 +0100)] 
gh-124098: Fix incorrect inclusion of handler methods without protocol prefix in OpenerDirector (GH-136873)

4 days agogh-134584: Remove redundant refcount from _BINARY_OP_ADD_UNICODE (gh-142825)
Donghee Na [Thu, 18 Dec 2025 12:33:18 +0000 (21:33 +0900)] 
gh-134584: Remove redundant refcount from _BINARY_OP_ADD_UNICODE (gh-142825)

4 days agogh-137063: Document that ast node types replaced by Constant are no longer available...
James [Thu, 18 Dec 2025 12:17:42 +0000 (07:17 -0500)] 
gh-137063: Document that ast node types replaced by Constant are no longer available (#137064)

4 days agogh-138122: Improve bytecode panel (#142910)
ivonastojanovic [Thu, 18 Dec 2025 11:43:39 +0000 (11:43 +0000)] 
gh-138122: Improve bytecode panel (#142910)

The bytecode panel appears when a user generates a heatmap with
--opcodes and clicks the button to unfold a line and display the
bytecode instructions. Currently, an empty space appears on the
left where the line number, self, and total columns are displayed.
This area should instead extend those columns, rather than leaving
a gap.

5 days agogh-139757: Treat call specially in JIT assembly backend optimizer on x86-64 and AArch...
Ken Jin [Wed, 17 Dec 2025 22:47:47 +0000 (06:47 +0800)] 
gh-139757: Treat call specially in JIT assembly backend optimizer on x86-64 and AArch64 (GH-142907)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
5 days agogh-129748: Remove TSan suppression for mi_block_set_nextx (gh-142887)
Sam Gross [Wed, 17 Dec 2025 20:27:04 +0000 (15:27 -0500)] 
gh-129748: Remove TSan suppression for mi_block_set_nextx (gh-142887)

The function was already changed to use a relaxed atomic store in gh-134238.

5 days agoGH-100964: Fix reference cycle in exhausted generator frames (#141112)
Savannah Ostrowski [Wed, 17 Dec 2025 19:21:45 +0000 (11:21 -0800)] 
GH-100964: Fix reference cycle in exhausted generator frames (#141112)

5 days agogh-142766: Clear frame when `generator.close()` is called (gh-142838)
Sam Gross [Wed, 17 Dec 2025 18:06:32 +0000 (13:06 -0500)] 
gh-142766: Clear frame when `generator.close()` is called (gh-142838)

5 days agogh-91048: Refactor common data into context object in Modules/_remote_debugging ...
Pablo Galindo Salgado [Wed, 17 Dec 2025 17:43:52 +0000 (17:43 +0000)] 
gh-91048: Refactor common data into context object in Modules/_remote_debugging (#142879)

5 days agogh-142849: Fix segfault in `executor_to_gv` (GH-142885)
Ken Jin [Wed, 17 Dec 2025 17:05:21 +0000 (01:05 +0800)] 
gh-142849: Fix segfault in `executor_to_gv` (GH-142885)

Fix segfault in `executor_to_gv`

5 days agogh-142873: Do not check for `PyContextVar_CheckExact` twice in `PyContextVar_Set...
sobolevn [Wed, 17 Dec 2025 16:41:36 +0000 (19:41 +0300)] 
gh-142873: Do not check for `PyContextVar_CheckExact` twice in `PyContextVar_Set` (#142874)

5 days agogh-142876: remove reference to thread in documentation of `asyncio.Queue.shutdown...
Damian Birchler [Wed, 17 Dec 2025 16:40:03 +0000 (17:40 +0100)] 
gh-142876: remove reference to thread in documentation of `asyncio.Queue.shutdown` (#142888)

5 days agogh-142225: Add PyABIInfo_VAR to to _testcapimodule & _testinternalcapi (GH-142833)
Petr Viktorin [Wed, 17 Dec 2025 15:33:09 +0000 (16:33 +0100)] 
gh-142225: Add PyABIInfo_VAR to to _testcapimodule & _testinternalcapi (GH-142833)

5 days agogh-138122: Validate base frame before caching in remote debugging frame cache (#142852)
Pablo Galindo Salgado [Wed, 17 Dec 2025 15:12:28 +0000 (15:12 +0000)] 
gh-138122: Validate base frame before caching in remote debugging frame cache (#142852)

5 days agogh-112127: Fix possible use-after-free in atexit.unregister() (GH-114092)
Benjamin Johnson [Wed, 17 Dec 2025 15:09:57 +0000 (07:09 -0800)] 
gh-112127: Fix possible use-after-free in atexit.unregister() (GH-114092)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 days agoUse other name for JIT contributor (#142877)
Ken Jin [Wed, 17 Dec 2025 14:21:02 +0000 (22:21 +0800)] 
Use other name for JIT contributor (#142877)

5 days agogh-142654: show the clear error message when sampling on an unknown PID in tachyon...
Keming [Wed, 17 Dec 2025 14:15:22 +0000 (22:15 +0800)] 
gh-142654: show the clear error message when sampling on an unknown PID in tachyon (#142655)

Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
5 days agogh-139038: Add JIT What's New for 3.15 (#142845)
Savannah Ostrowski [Wed, 17 Dec 2025 12:14:44 +0000 (04:14 -0800)] 
gh-139038: Add JIT What's New for 3.15 (#142845)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
5 days agoGH-142621: JIT: Avoid memory load for symbols within 4GB on AArch64 (GH-142820)
Mark Shannon [Wed, 17 Dec 2025 12:07:07 +0000 (12:07 +0000)] 
GH-142621: JIT: Avoid memory load for symbols within 4GB on AArch64 (GH-142820)

5 days agogh-142859: Add `Tools/check-c-api-docs` to mypy check (#142860)
sobolevn [Wed, 17 Dec 2025 11:23:30 +0000 (14:23 +0300)] 
gh-142859: Add `Tools/check-c-api-docs` to mypy check (#142860)

5 days agogh-140374: Add glossary entries related to multithreading (#140375)
Lysandros Nikolaou [Wed, 17 Dec 2025 11:09:51 +0000 (12:09 +0100)] 
gh-140374: Add glossary entries related to multithreading (#140375)

---------

Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
5 days agogh-139743: Avoid print twice verbose version for sqlite tests (GH-142850)
yihong [Wed, 17 Dec 2025 09:44:47 +0000 (17:44 +0800)] 
gh-139743: Avoid print twice verbose version for sqlite tests (GH-142850)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
5 days agogh-142783: Fix possible use after free in zoneinfo module (GH-142790)
wangxiaolei [Wed, 17 Dec 2025 08:35:08 +0000 (16:35 +0800)] 
gh-142783: Fix possible use after free in zoneinfo module (GH-142790)

5 days agogh-142752: add more thread safety tests for mock (#142791)
Kumar Aditya [Wed, 17 Dec 2025 07:47:12 +0000 (13:17 +0530)] 
gh-142752: add more thread safety tests for mock (#142791)

5 days agogh-142836: Avoid /proc fd pipes on Solaris (#142853)
Jason R. Coombs [Wed, 17 Dec 2025 07:38:00 +0000 (02:38 -0500)] 
gh-142836: Avoid /proc fd pipes on Solaris (#142853)

6 days agogh-142543: Mark tracer functions as Py_NO_INLINE (GH-142846)
Ken Jin [Wed, 17 Dec 2025 00:12:32 +0000 (08:12 +0800)] 
gh-142543: Mark tracer functions as Py_NO_INLINE (GH-142846)

6 days agogh-134584: Eliminate redundant refcounting from `_STORE_ATTR_WITH_HINT` (GH-142767)
Nadeshiko Manju [Tue, 16 Dec 2025 22:21:04 +0000 (07:21 +0900)] 
gh-134584: Eliminate redundant refcounting from `_STORE_ATTR_WITH_HINT` (GH-142767)

Signed-off-by: Manjusaka <me@manjusaka.me>
6 days agogh-138122: Update Tachyon dark theme colors (#142841)
ivonastojanovic [Tue, 16 Dec 2025 20:58:56 +0000 (20:58 +0000)] 
gh-138122: Update Tachyon dark theme colors (#142841)

6 days agogh-134584: Eliminate redundant refcounting from `_LOAD_ATTR_INSTANCE_VALUE` (GH-142769)
Nadeshiko Manju [Tue, 16 Dec 2025 20:39:20 +0000 (05:39 +0900)] 
gh-134584: Eliminate redundant refcounting from `_LOAD_ATTR_INSTANCE_VALUE` (GH-142769)

Signed-off-by: Manjusaka <me@manjusaka.me>
6 days agoGH-142629: JIT: Fix out of bounds memory read in lltrace (GH-142821)
Mark Shannon [Tue, 16 Dec 2025 19:57:15 +0000 (19:57 +0000)] 
GH-142629: JIT: Fix out of bounds memory read in lltrace (GH-142821)

JIT: Fix out of bounds memory read in lltrace

6 days agoMake RESUME monitoring more readable and robust (GH-142136)
Gabriele N. Tornetta [Tue, 16 Dec 2025 16:23:27 +0000 (16:23 +0000)] 
Make RESUME monitoring more readable and robust (GH-142136)

6 days agogh-142495: Make `defaultdict` keep existed value when racing with `__missing__` ...
Edward Xu [Tue, 16 Dec 2025 15:04:20 +0000 (23:04 +0800)] 
gh-142495: Make `defaultdict` keep existed value when racing with `__missing__` (GH-142668)

6 days agoPost 3.15.0a3
Hugo van Kemenade [Tue, 16 Dec 2025 14:31:52 +0000 (16:31 +0200)] 
Post 3.15.0a3

6 days agoPython 3.15.0a3 v3.15.0a3
Hugo van Kemenade [Tue, 16 Dec 2025 12:25:53 +0000 (14:25 +0200)] 
Python 3.15.0a3

6 days agogh-142754: Ensure that Element & Attr instances have the ownerDocument attribute...
Petr Viktorin [Tue, 16 Dec 2025 12:20:48 +0000 (13:20 +0100)] 
gh-142754: Ensure that Element & Attr instances have the ownerDocument attribute (#142794)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
6 days agogh-76007: Deprecate `__version__` attribute in `wsgiref.simple_server` (#142675)
Hugo van Kemenade [Tue, 16 Dec 2025 12:08:51 +0000 (14:08 +0200)] 
gh-76007: Deprecate `__version__` attribute in `wsgiref.simple_server` (#142675)

6 days agogh-142019: Add description about the exponent of result formatted with presentation...
1nftf [Tue, 16 Dec 2025 11:56:12 +0000 (19:56 +0800)] 
gh-142019: Add description about the exponent of result formatted with presentation type 'e' (#142084)

6 days agogh-83926: BlockingIOError characters_written is byte count (#141215)
Cody Maloney [Tue, 16 Dec 2025 11:53:56 +0000 (03:53 -0800)] 
gh-83926: BlockingIOError characters_written is byte count (#141215)

6 days agogh-119786: Remove mention of `_PyThreadState_BumpFramePointer` from `InternalDocs...
Mikhail Efimov [Tue, 16 Dec 2025 11:49:14 +0000 (14:49 +0300)] 
gh-119786: Remove mention of `_PyThreadState_BumpFramePointer` from `InternalDocs/interpreter.md` (#141816)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
6 days agogh-141218: Fix inaccurate object comparison documentation (#141221)
Mohsin Mehmood [Tue, 16 Dec 2025 11:46:42 +0000 (16:46 +0500)] 
gh-141218: Fix inaccurate object comparison documentation (#141221)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
6 days agoRemove duplicate content in `Mapping types - dict` documentation (#141036)
Owain Davies [Tue, 16 Dec 2025 11:46:13 +0000 (11:46 +0000)] 
Remove duplicate content in `Mapping types - dict` documentation (#141036)

6 days agoCorrect Glossary key function example to use str.casefold instead of str.lower (...
Cameron Beck [Tue, 16 Dec 2025 11:44:12 +0000 (06:44 -0500)] 
Correct Glossary key function example to use str.casefold instead of str.lower (#140316)

6 days agodecimal docs: specification link and examples (#128698)
Sergey B Kirpichev [Tue, 16 Dec 2025 11:41:59 +0000 (14:41 +0300)] 
decimal docs: specification link and examples (#128698)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
6 days ago gh-106318: Add examples for str.ljust() method (#142719)
Adorilson Bezerra [Tue, 16 Dec 2025 11:39:20 +0000 (11:39 +0000)] 
 gh-106318: Add examples for str.ljust() method  (#142719)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
6 days agoClarify that PyStructSequence is different from collections.namedtuple (#142626)
Petr Viktorin [Tue, 16 Dec 2025 11:38:11 +0000 (12:38 +0100)] 
Clarify that PyStructSequence is different from collections.namedtuple (#142626)

6 days agogh-130536: Add details to `os.path` documentation (#130557)
Arthur Wigo [Tue, 16 Dec 2025 11:29:52 +0000 (03:29 -0800)] 
gh-130536: Add details to `os.path` documentation (#130557)

6 days agogh-85204: Improve `locale.setlocale` example (#132683)
Stan Ulbrych [Tue, 16 Dec 2025 11:26:33 +0000 (11:26 +0000)] 
gh-85204: Improve `locale.setlocale` example (#132683)

6 days agogh-124864: Extends smtplib documentation on ESMTP options format (#132547)
Patrick R [Tue, 16 Dec 2025 11:21:38 +0000 (12:21 +0100)] 
gh-124864: Extends smtplib documentation on ESMTP options format (#132547)

6 days agogh-139320: Cover exception chaining in the docs of `contextmanager.__exit__` (GH...
Bartosz SÅ‚awecki [Tue, 16 Dec 2025 10:15:37 +0000 (11:15 +0100)] 
gh-139320: Cover exception chaining in the docs of `contextmanager.__exit__` (GH-140169)

6 days agogh-142595: Amend be5e0dcdedb (fix NULL pointer dereference) (GH-142775)
Sergey B Kirpichev [Tue, 16 Dec 2025 08:52:20 +0000 (11:52 +0300)] 
gh-142595: Amend be5e0dcdedb (fix NULL pointer dereference) (GH-142775)

7 days agoGH-134584: Remove redundant refcount from `_STORE_ATTR_SLOT` (#142729)
Savannah Ostrowski [Mon, 15 Dec 2025 23:18:44 +0000 (15:18 -0800)] 
GH-134584: Remove redundant refcount from `_STORE_ATTR_SLOT` (#142729)

7 days agogh-142737: Handle lost `io.open` in `_Py_FindSourceFile` (GH-142747)
Bartosz SÅ‚awecki [Mon, 15 Dec 2025 22:58:50 +0000 (23:58 +0100)] 
gh-142737: Handle lost `io.open` in `_Py_FindSourceFile` (GH-142747)

7 days agogh-134584: JIT: Eliminate redundant refcount ops for X_INT (GH-142765)
Ken Jin [Mon, 15 Dec 2025 22:22:18 +0000 (06:22 +0800)] 
gh-134584: JIT: Eliminate redundant refcount ops for X_INT (GH-142765)

7 days agogh-85222: Document the global start method side effect in multiprocessing (GH-136426)
AN Long [Mon, 15 Dec 2025 22:12:52 +0000 (07:12 +0900)] 
gh-85222: Document the global start method side effect in multiprocessing (GH-136426)

* Document the ctx parameter in some types in multiprocessing.
* Reduce duplication while still linking to the central explanation from API points with the side effect.

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: R Chintan Meher <meherrihaan@gmail.com>