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

26 hours 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)

33 hours 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)

35 hours 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>
36 hours 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)

37 hours 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>
37 hours 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

41 hours 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)

42 hours 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)

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

45 hours 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

45 hours 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>
45 hours 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)

45 hours 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)

46 hours 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)

46 hours 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>
46 hours 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>
46 hours 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)

46 hours 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)

46 hours 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>
46 hours 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>
46 hours 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)

46 hours 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)

46 hours 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)

46 hours 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)

47 hours 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)

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

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

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

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

2 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>
2 days agoAdd Fidget-Spinner to more JIT CODEOWNERS (GH-142768)
Ken Jin [Mon, 15 Dec 2025 21:50:42 +0000 (05:50 +0800)] 
Add Fidget-Spinner to more JIT CODEOWNERS (GH-142768)

2 days agogh-134584: Eliminate redundant refcounting from `_STORE_ATTR_INSTANCE_VALUE` (GH...
Nadeshiko Manju [Mon, 15 Dec 2025 20:17:12 +0000 (04:17 +0800)] 
gh-134584: Eliminate redundant refcounting from `_STORE_ATTR_INSTANCE_VALUE` (GH-142759)

Signed-off-by: Manjusaka <me@manjusaka.me>
2 days agogh-134584: Remove custom float decref ops (GH-142576)
Ken Jin [Mon, 15 Dec 2025 19:38:58 +0000 (03:38 +0800)] 
gh-134584: Remove custom float decref ops (GH-142576)

2 days agogh-141081: Revert "Add a `.gitignore` file to `__pycache__` folders (#141162)" (...
Hugo van Kemenade [Mon, 15 Dec 2025 19:27:06 +0000 (21:27 +0200)] 
gh-141081: Revert "Add a `.gitignore` file to `__pycache__` folders (#141162)" (#142758)

2 days agoGH-142718: JIT: Fix crash due to incorrect caching on side exits when exiting jitted...
Mark Shannon [Mon, 15 Dec 2025 19:01:29 +0000 (19:01 +0000)] 
GH-142718: JIT: Fix crash due to incorrect caching on side exits when exiting jitted code. (GH-142762)

JIT: Fix crash due to incorrect caching on side exits when exiting jitted code.

* Make sure that stack is in correct state at side exits with TOS cached values
* Simplify choice of cached items for side exits

2 days agogh-116738: Make _bz2 module thread-safe (gh-142756)
Alper [Mon, 15 Dec 2025 17:47:04 +0000 (09:47 -0800)] 
gh-116738: Make _bz2 module thread-safe (gh-142756)

Make the attributes in _bz2 module thread-safe on the free-threading build.
Attributes (eof, needs_input, unused_data) are now stored atomically or
accessed via mutex-protected getters.

2 days agogh-142472: Clean-up _PyStackRef functions (gh-142479)
Sam Gross [Mon, 15 Dec 2025 17:03:49 +0000 (12:03 -0500)] 
gh-142472: Clean-up _PyStackRef functions (gh-142479)

This combines most _PyStackRef functions and macros between the free
threaded and default builds.

- Remove Py_TAG_DEFERRED (same as Py_TAG_REFCNT)
- Remove PyStackRef_IsDeferred (same as !PyStackRef_RefcountOnObject)

2 days agogh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_DICT (GH-142712)
Donghee Na [Mon, 15 Dec 2025 16:42:32 +0000 (01:42 +0900)] 
gh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_DICT (GH-142712)

Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2 days agogh-134584: Eliminate redundant refcounting from _CALL_LIST_APPEND (GH-142711)
Nadeshiko Manju [Mon, 15 Dec 2025 15:49:36 +0000 (23:49 +0800)] 
gh-134584: Eliminate redundant refcounting from _CALL_LIST_APPEND (GH-142711)

Signed-off-by: Manjusaka <me@manjusaka.me>
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2 days agogh-142466: Pixi package definitions for downstream use (#142469)
Lucas Colley [Mon, 15 Dec 2025 15:04:16 +0000 (15:04 +0000)] 
gh-142466: Pixi package definitions for downstream use (#142469)

* WIP: ENH: Pixi package definitions for downstream development

[skip ci]

* linux-64 support

* tidy gitignore

* respond to review
- switch cases on `PYTHON_VARIANT`
- remove `minor_version` by using `python3`
- remove runtime-only asan options

* README updates

* use `.md` to preview rendering

* Apply suggestions from code review

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Apply suggestion from @FFY00

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
* Apply suggestion from @FFY00

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
* Apply suggestion from @FFY00

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
* Apply suggestion from @lucascolley

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
2 days agoMove doc on structure from devguide to `InternalDocs` (GH-142237)
Stan Ulbrych [Mon, 15 Dec 2025 14:19:02 +0000 (14:19 +0000)] 
Move doc on structure from devguide to `InternalDocs` (GH-142237)

Co-Authored-By: Paul Ross <apaulross@gmail.com>
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-Authored-By: Ezio Melotti <ezio.melotti@gmail.com>
Co-Authored-By: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2 days agogh-142020: ctypes docs: Note that find_library relies on the programs it runs (GH...
Petr Viktorin [Mon, 15 Dec 2025 14:15:22 +0000 (15:15 +0100)] 
gh-142020: ctypes docs: Note that find_library relies on the programs it runs (GH-142134)

2 days agogh-142594: fix by property calls io.TextIOWrapper.detach (GH-142706)
yihong [Mon, 15 Dec 2025 14:13:58 +0000 (22:13 +0800)] 
gh-142594: fix by property calls io.TextIOWrapper.detach (GH-142706)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2 days agogh-142217: Recommend PyUnicode_InternFromString() to replace _PyUnicode_FromId()...
Victor Stinner [Mon, 15 Dec 2025 13:25:30 +0000 (14:25 +0100)] 
gh-142217: Recommend PyUnicode_InternFromString() to replace _PyUnicode_FromId() (GH-142746)

2 days agogh-142029: Raise `ModuleNotFoundError` instead of crashing on nonexsistent module...
dr-carlos [Mon, 15 Dec 2025 12:20:19 +0000 (22:50 +1030)] 
gh-142029: Raise `ModuleNotFoundError` instead of crashing on nonexsistent module name given to `create_builtin()` (#142054)

Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 days agogh-138122: Add --subprocesses flag to profile child processes in tachyon (#142636)
Pablo Galindo Salgado [Mon, 15 Dec 2025 12:11:40 +0000 (12:11 +0000)] 
gh-138122: Add --subprocesses flag to profile child processes in tachyon (#142636)

2 days agogh-139871: Optimize bytearray construction with encoding (#142243)
Cody Maloney [Mon, 15 Dec 2025 12:10:31 +0000 (04:10 -0800)] 
gh-139871: Optimize bytearray construction with encoding (#142243)

When a `str` is encoded in `bytearray.__init__` the encoder tends to
create a new unique bytes object. Rather than allocate new memory and
copy the bytes use the already created bytes object as bytearray
backing. The bigger the `str` the bigger the saving.

Mean +- std dev: [main_encoding] 497 us +- 9 us -> [encoding] 14.2 us +- 0.3 us: 34.97x faster

```python
import pyperf

runner = pyperf.Runner()

runner.timeit(
    name="encode",
    setup="a = 'a' * 1_000_000",
    stmt="bytearray(a, encoding='utf8')")
```

2 days agogh-142651: make `Mock.call_count` thread-safe (#142656)
chaope [Mon, 15 Dec 2025 11:43:15 +0000 (06:43 -0500)] 
gh-142651: make `Mock.call_count` thread-safe (#142656)

2 days agogh-76007: Deprecate `__version__` attribute in `ctypes` (#142679)
Hugo van Kemenade [Mon, 15 Dec 2025 11:30:23 +0000 (13:30 +0200)] 
gh-76007: Deprecate `__version__` attribute in `ctypes` (#142679)

2 days agogh-140414: streamline thread state access in `asyncio` (#142742)
Kumar Aditya [Mon, 15 Dec 2025 11:27:51 +0000 (16:57 +0530)] 
gh-140414: streamline thread state access in `asyncio` (#142742)

2 days agogh-141081: Add a `.gitignore` file to `__pycache__` folders (#141162)
Stan Ulbrych [Mon, 15 Dec 2025 10:16:56 +0000 (10:16 +0000)] 
gh-141081: Add a `.gitignore` file to `__pycache__` folders (#141162)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
3 days agogh-132657: Use stronger memory ordering for so->mask. (gh-142735)
Neil Schemenauer [Mon, 15 Dec 2025 04:27:37 +0000 (20:27 -0800)] 
gh-132657: Use stronger memory ordering for so->mask. (gh-142735)

We need to use release/acquire ordering for the 'mask' member of the set
structure. Without this, `set_lookkey_threadsafe()` could be looking at
the old value of `table` but the new value of `mask`.

3 days agogh-142724: fix error path in `_PyPegen_raise_tokenizer_init_error` (#142725)
AZero13 [Sun, 14 Dec 2025 21:23:38 +0000 (16:23 -0500)] 
gh-142724: fix error path in `_PyPegen_raise_tokenizer_init_error` (#142725)

3 days agoUse threading.Event rather than boolean flag. (gh-142722)
Neil Schemenauer [Sun, 14 Dec 2025 20:42:11 +0000 (12:42 -0800)] 
Use threading.Event rather than boolean flag. (gh-142722)

3 days agogh-106318: Add examples for str.isnumeric() (#142680)
Adorilson Bezerra [Sun, 14 Dec 2025 18:12:12 +0000 (18:12 +0000)] 
gh-106318: Add examples for str.isnumeric() (#142680)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
3 days agogh-138122: Add some screenshots to the profiling.sampling docs (#142676)
Pablo Galindo Salgado [Sun, 14 Dec 2025 17:43:03 +0000 (17:43 +0000)] 
gh-138122: Add some screenshots to the profiling.sampling docs (#142676)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 days agogh-76007: `pydoc`: Catch `DeprecationWarning` for stdlib module `__version__` attribu...
Stan Ulbrych [Sun, 14 Dec 2025 12:59:05 +0000 (12:59 +0000)] 
gh-76007: `pydoc`: Catch `DeprecationWarning` for stdlib module `__version__` attributes (#139997)

3 days agogh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_LIST_INT (gh-142703)
Donghee Na [Sun, 14 Dec 2025 12:26:00 +0000 (21:26 +0900)] 
gh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_LIST_INT (gh-142703)

3 days agogh-142681: Improve unicodedata tests (GH-142682)
Serhiy Storchaka [Sun, 14 Dec 2025 11:03:27 +0000 (13:03 +0200)] 
gh-142681: Improve unicodedata tests (GH-142682)

3 days agogh-140189: Revert "Temporarily allow CI failures for iOS (#142365)" (#142660)
Hugo van Kemenade [Sun, 14 Dec 2025 10:54:42 +0000 (12:54 +0200)] 
gh-140189: Revert "Temporarily allow CI failures for iOS (#142365)" (#142660)

3 days agogh-127930: use explicit imports in tkinter.simpledialog (#127931)
Stephen Morton [Sun, 14 Dec 2025 10:38:42 +0000 (02:38 -0800)] 
gh-127930: use explicit imports in tkinter.simpledialog (#127931)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 days agogh-134584: Eliminate redundant refcounting from `_CALL_BUILTION_O` (GH-142695)
PuQing [Sun, 14 Dec 2025 10:28:02 +0000 (18:28 +0800)] 
gh-134584: Eliminate redundant refcounting from `_CALL_BUILTION_O` (GH-142695)

Co-authored-by: Ken Jin <kenjin4096@gmail.com>
3 days agogh-141938: document treatment of `OSError` raised by `HTTPConnection.getresponse...
Bénédikt Tran [Sun, 14 Dec 2025 10:12:20 +0000 (11:12 +0100)] 
gh-141938: document treatment of `OSError` raised by `HTTPConnection.getresponse` (#142339)

4 days agogh-142666: Remove unused variable package in import logic (GH-142667)
Yongtao Huang [Sun, 14 Dec 2025 09:39:45 +0000 (17:39 +0800)] 
gh-142666: Remove unused variable package in import logic (GH-142667)

The variable was previously used, but became unused after 133138a284b.

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
4 days agogh-134584: Eliminate redundant refcounting from `_CALL_STR_1` (GH-136070)
Nadeshiko Manju [Sun, 14 Dec 2025 09:33:05 +0000 (17:33 +0800)] 
gh-134584: Eliminate redundant refcounting from `_CALL_STR_1` (GH-136070)

Signed-off-by: Manjusaka <me@manjusaka.me>
4 days agogh-142451: correctly copy HMAC attributes in `HMAC.copy()` (#142510)
Bénédikt Tran [Sun, 14 Dec 2025 08:45:36 +0000 (09:45 +0100)] 
gh-142451: correctly copy HMAC attributes in `HMAC.copy()` (#142510)

4 days agogh-142554: avoid `divmod` crashes due to bad `_pylong.int_divmod` (#142673)
Bénédikt Tran [Sun, 14 Dec 2025 08:38:23 +0000 (09:38 +0100)] 
gh-142554: avoid `divmod` crashes due to bad `_pylong.int_divmod` (#142673)

4 days agotypo fixes in docs (#142683)
SYan212 [Sun, 14 Dec 2025 08:17:22 +0000 (08:17 +0000)] 
typo fixes in docs (#142683)

4 days agoGH-142591: Tachyon does not handle non-existent file/module (#142592)
Savannah Ostrowski [Sun, 14 Dec 2025 04:58:40 +0000 (20:58 -0800)] 
GH-142591: Tachyon does not handle non-existent file/module (#142592)

Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
4 days agogh-138122: Fix sample counting for filtered profiling modes (#142677)
Pablo Galindo Salgado [Sun, 14 Dec 2025 03:31:51 +0000 (03:31 +0000)] 
gh-138122: Fix sample counting for filtered profiling modes (#142677)

4 days agogh-142368: Fix race comparing locations in test_external_inspection (#142691)
Pablo Galindo Salgado [Sun, 14 Dec 2025 03:31:42 +0000 (03:31 +0000)] 
gh-142368: Fix race comparing locations in test_external_inspection (#142691)

4 days agoAdd 'Show translation source' to docs sidebar (#130355)
Stan Ulbrych [Sat, 13 Dec 2025 23:03:23 +0000 (23:03 +0000)] 
Add 'Show translation source' to docs sidebar (#130355)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
4 days agoAdd missing comma to tuple in `except*` docs (#142395)
dr-carlos [Sat, 13 Dec 2025 22:51:35 +0000 (09:21 +1030)] 
Add missing comma to tuple in `except*` docs (#142395)

4 days agogh-142461: Move misplaced NEWS entries to an appropriate section (#142464)
Serhiy Storchaka [Sat, 13 Dec 2025 22:44:25 +0000 (00:44 +0200)] 
gh-142461: Move misplaced NEWS entries to an appropriate section (#142464)

4 days agogh-142411: Change documentation to reflect the new docstring adjustments in 3.13...
decorator-factory [Sat, 13 Dec 2025 22:29:59 +0000 (01:29 +0300)] 
gh-142411: Change documentation to reflect the new docstring adjustments in 3.13 (#142413)

4 days agoAdd pablogsal as codeowner for profiling sampling files and docs (#142678)
Pablo Galindo Salgado [Sat, 13 Dec 2025 19:10:59 +0000 (19:10 +0000)] 
Add pablogsal as codeowner for profiling sampling files and docs (#142678)

4 days agogh-139546: Update `test_zoneinfo` data to 2025c (#139547)
Stan Ulbrych [Sat, 13 Dec 2025 18:13:55 +0000 (18:13 +0000)] 
gh-139546: Update `test_zoneinfo` data to 2025c (#139547)

* Commit

* Skip if tzdata version does not match

* Mark as generated

* Update to 2025.3

4 days agogh-142568: Fix eval() docs to use 'source' parameter name (#142644)
Joshua Ward [Sat, 13 Dec 2025 16:07:53 +0000 (11:07 -0500)] 
gh-142568: Fix eval() docs to use 'source' parameter name (#142644)

4 days agogh-76007: Deprecate `__version__` attribute in `http.server` (#142658)
Hugo van Kemenade [Sat, 13 Dec 2025 15:32:13 +0000 (17:32 +0200)] 
gh-76007: Deprecate `__version__` attribute in `http.server` (#142658)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 days agogh-134584: Cleanups for GH-135860 (GH-142604)
Ken Jin [Sat, 13 Dec 2025 14:38:10 +0000 (22:38 +0800)] 
gh-134584: Cleanups for GH-135860 (GH-142604)

5 days agogh-132657: Add lock-free set contains implementation (#132290)
Neil Schemenauer [Sat, 13 Dec 2025 09:50:23 +0000 (01:50 -0800)] 
gh-132657: Add lock-free set contains implementation (#132290)

This roughly follows what was done for dictobject to make a lock-free
lookup operation. With this change, the set contains operation scales much
better when used from multiple-threads. The frozenset contains performance
seems unchanged (as already lock-free).

Summary of changes:

* refactor set_lookkey() into set_do_lookup() which now takes a function
  pointer that does the entry comparison. This is similar to dictobject and
  do_lookup(). In an optimized build, the comparison function is inlined and
  there should be no performance cost to this.

* change set_do_lookup() to return a status separately from the entry value

* add set_compare_frozenset() and use if the object is a frozenset. For the
  free-threaded build, this avoids some overhead (locking, atomic operations,
  incref/decref on key)

* use FT_ATOMIC_* macros as needed for atomic loads and stores

* use a deferred free on the set table array, if shared (only on free-threaded
  build, normal build always does an immediate free)

* for free-threaded build, use explicit for loop to zero the table, rather than memcpy()

* when mutating the set, assign so->table to NULL while the change is a
  happening. Assign the real table array after the change is done.

5 days agoGH-142646: Update Tachyon to use backtick formatting in CLI help (#142647)
Savannah Ostrowski [Sat, 13 Dec 2025 05:20:28 +0000 (21:20 -0800)] 
GH-142646: Update Tachyon to use backtick formatting in CLI help (#142647)

5 days agoGH-141362: Make `get_externals` handle fetching platform-specific release artifacts...
Savannah Ostrowski [Fri, 12 Dec 2025 21:23:18 +0000 (13:23 -0800)] 
GH-141362: Make `get_externals` handle fetching platform-specific release artifacts (#142405)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
5 days agoGH-139686: Update versionchanged directive to 'next' in importlib (GH-142649)
Brett Cannon [Fri, 12 Dec 2025 20:47:20 +0000 (12:47 -0800)] 
GH-139686: Update versionchanged directive to 'next' in importlib (GH-142649)

An oversight when merging 57db12514ac686f0a752ec8fe1c08b6daa0c6219 .

5 days agogh-139686: Make reloading a lazy module no-op (GH-139857)
Amer Esmail Elsheikh [Fri, 12 Dec 2025 20:26:50 +0000 (22:26 +0200)] 
gh-139686: Make reloading a lazy module no-op (GH-139857)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
5 days agoGH-142389: Add backtick markup support in description and epilog (#142390)
Savannah Ostrowski [Fri, 12 Dec 2025 20:08:19 +0000 (12:08 -0800)] 
GH-142389: Add backtick markup support in description and epilog (#142390)

5 days agoDoc: remove the invalid type variables of typing.TextIO and BinaryIO (#142642)
Roman Donchenko [Fri, 12 Dec 2025 19:20:49 +0000 (21:20 +0200)] 
Doc: remove the invalid type variables of typing.TextIO and BinaryIO (#142642)

They are not generic classes.

5 days agogh-116738: Make zlib module thread-safe (gh-142432)
Alper [Fri, 12 Dec 2025 18:14:42 +0000 (10:14 -0800)] 
gh-116738: Make zlib module thread-safe (gh-142432)

Makes the zlib module thread-safe free-threading build. Even though operations
are protected by locks, attributes exposed via PyMemberDef (eof, needs_input,
unused_data, unconsumed_tail) should still be stored atomically within locked
sections, since they can be read without acquiring the lock.

5 days agogh-138122: Tachyon Flamegraph: Make toggle keyboard accesible and adjust sidebar...
Stan Ulbrych [Fri, 12 Dec 2025 17:27:12 +0000 (17:27 +0000)] 
gh-138122: Tachyon Flamegraph: Make toggle keyboard accesible and adjust sidebar collapse CSS (#142638)

5 days agogh-141939: Add colors to interpolated values in argparse (#141940)
Alex Prengère [Fri, 12 Dec 2025 16:58:12 +0000 (17:58 +0100)] 
gh-141939: Add colors to interpolated values in argparse (#141940)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Savannah Ostrowski <savannah@python.org>
5 days agogh-140550: Correct error message for PyModExport (PEP 793) hook (GH-142583)
Petr Viktorin [Fri, 12 Dec 2025 16:48:43 +0000 (17:48 +0100)] 
gh-140550: Correct error message for PyModExport (PEP 793) hook (GH-142583)

5 days agogh-138122: Add docs button to Tachyon heatmap and flamegraph (#142614)
Stan Ulbrych [Fri, 12 Dec 2025 15:06:28 +0000 (15:06 +0000)] 
gh-138122: Add docs button to Tachyon heatmap and flamegraph (#142614)

5 days agogh-142353: Isolate tests from personal GNU Readline init files (#142370)
Bartosz Sławecki [Fri, 12 Dec 2025 14:42:38 +0000 (15:42 +0100)] 
gh-142353: Isolate tests from personal GNU Readline init files (#142370)

Isolate tests from personal Readline init files using `INPUTRC=/dev/null` trick.

Co-authored-by: Victor Stinner <vstinner@python.org>
5 days agogh-134584: Revert partially GH-135860 (GH-142620)
Ken Jin [Fri, 12 Dec 2025 14:04:11 +0000 (22:04 +0800)] 
gh-134584: Revert partially GH-135860 (GH-142620)

5 days agogh-142627: Ignore anonymous mappings in Linux remote debugging (#142628)
Victor Stinner [Fri, 12 Dec 2025 13:12:11 +0000 (14:12 +0100)] 
gh-142627: Ignore anonymous mappings in Linux remote debugging (#142628)

5 days agogh-142217: Deprecate the private _Py_Identifier C API (#142221)
Victor Stinner [Fri, 12 Dec 2025 13:10:25 +0000 (14:10 +0100)] 
gh-142217: Deprecate the private _Py_Identifier C API (#142221)

Deprecate functions:

* _PyObject_CallMethodId()
* _PyObject_GetAttrId()
* _PyUnicode_FromId()

5 days agogh-142595: add type check for namedtuple call during decimal initialization (GH-142608)
Sergey B Kirpichev [Fri, 12 Dec 2025 10:47:45 +0000 (13:47 +0300)] 
gh-142595: add type check for namedtuple call during decimal initialization (GH-142608)

5 days agoLink listsort.txt in InternalDocs/README.md (#142619)
Petr Viktorin [Fri, 12 Dec 2025 10:16:55 +0000 (11:16 +0100)] 
Link listsort.txt in InternalDocs/README.md (#142619)

6 days agofix typos in crossinterp.c and qsbr.c (#142612)
wangjingcun [Fri, 12 Dec 2025 06:18:20 +0000 (14:18 +0800)] 
fix typos in crossinterp.c and qsbr.c (#142612)