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

6 weeks 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>
6 weeks 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>
6 weeks 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)

6 weeks 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)

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

6 weeks 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>
6 weeks 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)

6 weeks 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)

6 weeks 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>
6 weeks 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)

6 weeks 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)

6 weeks 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)

6 weeks 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)

6 weeks 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

6 weeks 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)

6 weeks 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>
6 weeks 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)

6 weeks 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.

6 weeks 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)

6 weeks 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>
6 weeks 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 .

6 weeks 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>
6 weeks 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)

6 weeks 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.

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

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

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

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

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

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

7 weeks 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()

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

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

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

7 weeks agogh-138122: Add code examples to the profiling.sampling ddocs (#142609)
Pablo Galindo Salgado [Fri, 12 Dec 2025 01:37:47 +0000 (01:37 +0000)] 
gh-138122: Add code examples to the profiling.sampling ddocs (#142609)

7 weeks agogh-138122: Add inverted flamegraph (#142288)
ivonastojanovic [Fri, 12 Dec 2025 01:36:28 +0000 (01:36 +0000)] 
gh-138122: Add inverted flamegraph (#142288)

Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
7 weeks agogh-142374: Fix recursive function cumulative over-counting in sampling profiler ...
Pablo Galindo Salgado [Fri, 12 Dec 2025 00:50:17 +0000 (00:50 +0000)] 
gh-142374: Fix recursive function cumulative over-counting in sampling profiler (#142378)

7 weeks agogh-138122: Tachyon heatmap: Make toggle switches keyboard accessible (#142601)
Stan Ulbrych [Thu, 11 Dec 2025 21:58:09 +0000 (21:58 +0000)] 
gh-138122: Tachyon heatmap: Make toggle switches keyboard accessible (#142601)

7 weeks agogh-138122: Make Tachyon flamegraph and heatmap output more similar (#142590)
Stan Ulbrych [Thu, 11 Dec 2025 21:28:42 +0000 (21:28 +0000)] 
gh-138122: Make Tachyon flamegraph and heatmap output more similar (#142590)

7 weeks agogh-142534: Avoid TSan warnings in dictobject.c (gh-142544)
Sam Gross [Thu, 11 Dec 2025 21:23:19 +0000 (16:23 -0500)] 
gh-142534: Avoid TSan warnings in dictobject.c (gh-142544)

There are places we use "relaxed" loads where C11 requires "consume" or
stronger. Unfortunately, compilers don't really implement "consume" so
fake it for our use in a way that avoids upsetting TSan.

7 weeks agogh-142571: Check for errors before calling each syscall in `PyUnstable_CopyPerfMapFil...
AZero13 [Thu, 11 Dec 2025 21:18:52 +0000 (16:18 -0500)] 
gh-142571: Check for errors before calling each syscall in `PyUnstable_CopyPerfMapFile()` (#142460)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
7 weeks agogh-138122: Add exception profiling mode to the sampling profiler (#142561)
Pablo Galindo Salgado [Thu, 11 Dec 2025 20:46:34 +0000 (20:46 +0000)] 
gh-138122: Add exception profiling mode to the sampling profiler (#142561)

7 weeks agogh-142531: Fix free-threaded GC performance regression (gh-142562)
Neil Schemenauer [Thu, 11 Dec 2025 20:30:56 +0000 (12:30 -0800)] 
gh-142531: Fix free-threaded GC performance regression (gh-142562)

If there are many untracked tuples, the GC will run too often, resulting
in poor performance.  The fix is to include untracked tuples in the
"long lived" object count. The number of frozen objects is also now
included since the free-threaded GC must scan those too.

7 weeks agoGH-65961: Stop setting `__cached__` on modules (GH-142165)
Brett Cannon [Thu, 11 Dec 2025 19:44:46 +0000 (11:44 -0800)] 
GH-65961: Stop setting `__cached__` on modules (GH-142165)

7 weeks agogh-142589: Fix PyUnstable_Object_IsUniqueReferencedTemporary (gh-142593)
Sam Gross [Thu, 11 Dec 2025 19:41:03 +0000 (14:41 -0500)] 
gh-142589: Fix PyUnstable_Object_IsUniqueReferencedTemporary (gh-142593)

PyUnstable_Object_IsUniqueReferencedTemporary wasn't handling tagged
ints on the evaluation stack properly.

7 weeks agoGH-142203: Remove the `debug_override` parameter from `packaging.util.cache_from_sour...
Brett Cannon [Thu, 11 Dec 2025 17:55:47 +0000 (09:55 -0800)] 
GH-142203: Remove the `debug_override` parameter from `packaging.util.cache_from_source()` (GH-142204)

7 weeks agoUse subcommand over sub-command in argparse docs (#142488)
Savannah Ostrowski [Thu, 11 Dec 2025 17:42:36 +0000 (09:42 -0800)] 
Use subcommand over sub-command in argparse docs (#142488)

7 weeks agogh-142579: Remove the self converter hack in winreg.c (GH-142580)
AN Long [Thu, 11 Dec 2025 17:06:26 +0000 (02:06 +0900)] 
gh-142579: Remove the self converter hack in winreg.c (GH-142580)

7 weeks agoFix os.posix_spawn() error handling (#142532)
Bartosz Sławecki [Thu, 11 Dec 2025 17:02:26 +0000 (18:02 +0100)] 
Fix os.posix_spawn() error handling (#142532)

Consistently use `goto exit;` in `py_posix_spawn()`.

7 weeks agogh-134584: Eliminate redundant refcounting from ``_CALL_LEN`` (gh-136104)
Donghee Na [Thu, 11 Dec 2025 15:24:34 +0000 (00:24 +0900)] 
gh-134584: Eliminate redundant refcounting from ``_CALL_LEN`` (gh-136104)

7 weeks agogh-142236: Improve error location for missing comma in string concatenations (#142330)
Pablo Galindo Salgado [Thu, 11 Dec 2025 14:47:26 +0000 (14:47 +0000)] 
gh-142236: Improve error location for missing comma in string concatenations (#142330)

7 weeks agogh-134584: Eliminate redundant refcounting from `_CALL_TUPLE_1` (GH-135860)
Noam Cohen [Thu, 11 Dec 2025 14:31:28 +0000 (16:31 +0200)] 
gh-134584: Eliminate redundant refcounting from `_CALL_TUPLE_1` (GH-135860)

7 weeks agogh-142438: Added missing GIL release in _PySSL_keylog_callback when keylog_bio is...
AZero13 [Thu, 11 Dec 2025 14:30:39 +0000 (09:30 -0500)] 
gh-142438: Added missing GIL release in _PySSL_keylog_callback when keylog_bio is unset (gh-142439)

7 weeks agogh-79986: Add parsing for References/In-Reply-To email headers (#137201)
elenril [Thu, 11 Dec 2025 14:20:53 +0000 (15:20 +0100)] 
gh-79986: Add parsing for References/In-Reply-To email headers (#137201)

This is a followup to 46d88a113142b26c01c95c93846a89318ba87ffc (#13397),
which added parsing for Message-ID. Similar handling is needed for the
other two identification headers.

7 weeks agoGH-140683: JIT: Improve machine code for loading smaller constants on AArch64. (GH...
Mark Shannon [Thu, 11 Dec 2025 12:33:39 +0000 (12:33 +0000)] 
GH-140683: JIT: Improve machine code for loading smaller constants on AArch64. (GH-142511)

* Use movz and movk instructions for loading 16 and 32 bit operands and oparg.
* Loading of 64 bit operands is unchanged.

7 weeks agoGH-135379: Top of stack caching for the JIT. (GH-135465)
Mark Shannon [Thu, 11 Dec 2025 10:32:52 +0000 (10:32 +0000)] 
GH-135379: Top of stack caching for the JIT. (GH-135465)

Uses three registers to cache values at the top of the evaluation stack
This significantly reduces memory traffic for smaller, more common uops.

7 weeks agoRemove file accidentally added to `Doc/` (#142563)
Stan Ulbrych [Thu, 11 Dec 2025 10:11:36 +0000 (10:11 +0000)] 
Remove file accidentally added to `Doc/` (#142563)

7 weeks agogh-142556: fix crash when a task gets re-registered during finalization in `asyncio...
Kumar Aditya [Thu, 11 Dec 2025 09:34:49 +0000 (15:04 +0530)] 
gh-142556: fix crash when a task gets re-registered during finalization in `asyncio` (#142565)

7 weeks agogh-123241: Don't modify ref count during visitation (GH-142232)
Dino Viehland [Thu, 11 Dec 2025 08:54:29 +0000 (00:54 -0800)] 
gh-123241: Don't modify ref count during visitation (GH-142232)

7 weeks agoTachyon: Fix heatmap line highlight animation overriding heat colors (#142522)
Stan Ulbrych [Thu, 11 Dec 2025 04:30:16 +0000 (04:30 +0000)] 
Tachyon: Fix heatmap line highlight animation overriding heat colors (#142522)

7 weeks agogh-142539: Fix `traceback` caret location calculation for `SyntaxError`s with wide...
Stan Ulbrych [Thu, 11 Dec 2025 04:20:55 +0000 (04:20 +0000)] 
gh-142539: Fix `traceback` caret location calculation for `SyntaxError`s with wide chars (#142540)

7 weeks agogh-138122: Make the tachyon profiler opcode-aware (#142394)
Pablo Galindo Salgado [Thu, 11 Dec 2025 03:41:47 +0000 (03:41 +0000)] 
gh-138122: Make the tachyon profiler opcode-aware (#142394)

7 weeks agogh-140172: Skip JSON tools test during PGO training (GH-140809)
Steve Dower [Thu, 11 Dec 2025 00:34:49 +0000 (00:34 +0000)] 
gh-140172: Skip JSON tools test during PGO training (GH-140809)

7 weeks agoGH-97850: Remove all uses and definitions of `load_module()` from importlib (#142205)
Brett Cannon [Wed, 10 Dec 2025 23:35:51 +0000 (15:35 -0800)] 
GH-97850: Remove all uses and definitions of `load_module()` from importlib (#142205)

7 weeks agogh-142489: Increase ssl_handshake_timeout in asyncio tests (#142523)
Victor Stinner [Wed, 10 Dec 2025 22:21:03 +0000 (23:21 +0100)] 
gh-142489: Increase ssl_handshake_timeout in asyncio tests (#142523)

Replace SHORT_TIMEOUT with LONG_TIMEOUT for very slow CIs.
And add the HANDSHAKE_TIMEOUT constant.

7 weeks agogh-137007: Track executor before any possible deallocations (GH-137016)
Ken Jin [Wed, 10 Dec 2025 21:09:56 +0000 (05:09 +0800)] 
gh-137007: Track executor before any possible deallocations (GH-137016)

7 weeks agogh-135559: [Enum] dir() on a Flag now shows aliases (GH-136527)
Ethan Furman [Wed, 10 Dec 2025 19:46:10 +0000 (11:46 -0800)] 
gh-135559: [Enum] dir() on a Flag now shows aliases (GH-136527)

7 weeks agogh-141976: Protect against non-progressing specializations in tracing JIT (GH-141989)
Ken Jin [Wed, 10 Dec 2025 19:39:11 +0000 (03:39 +0800)] 
gh-141976: Protect against non-progressing specializations in tracing JIT (GH-141989)

7 weeks agoGH-142305: JIT: Deduplicating GOT symbols in the trace (#142316)
Diego Russo [Wed, 10 Dec 2025 16:04:04 +0000 (16:04 +0000)] 
GH-142305: JIT: Deduplicating GOT symbols in the trace (#142316)

7 weeks agogh-142433: Move deref to below the error when checking for laststring (#142402)
AZero13 [Wed, 10 Dec 2025 15:41:52 +0000 (10:41 -0500)] 
gh-142433: Move deref to below the error when checking for laststring (#142402)

Move deref of laststring to below the error checking so the deref
is applied after the object in strings is replaced.

7 weeks agogh-139927: Fix test_embed on OpenIndiana (#142514)
Victor Stinner [Wed, 10 Dec 2025 15:31:12 +0000 (16:31 +0100)] 
gh-139927: Fix test_embed on OpenIndiana (#142514)

Avoid swprintf() function in Programs/_testembed.c since it doesn't
work as expected on OpenIndiana.

7 weeks agoTachyon: Set favicon for heatmap pages (#142493)
Stan Ulbrych [Wed, 10 Dec 2025 14:10:23 +0000 (14:10 +0000)] 
Tachyon: Set favicon for heatmap pages (#142493)

7 weeks agogh-131372: Include LDVERSION and EXE in base_interpreter value (#142256)
Karolina Surma [Wed, 10 Dec 2025 12:09:41 +0000 (13:09 +0100)] 
gh-131372: Include LDVERSION and EXE in base_interpreter value (#142256)

* Include LDVERSION and EXE in base_interpreter value

In Fedora, build-details.json created and installed for python3.14t
contains "/usr/bin/python3.14" as the base_interpreter value.
Create a correct string, taking into account both LDVERSION and EXE
config variables, similarly to how it's defined in altbininstall in Makefile.

* Add news

Signed-off-by: Filipe Laíns <lains@riseup.net>
---------

Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Filipe Laíns <lains@riseup.net>
7 weeks agogh-142048: Fix lost gc allocations count on thread cleanup (#142233)
Kevin Wang [Wed, 10 Dec 2025 07:29:40 +0000 (02:29 -0500)] 
gh-142048: Fix lost gc allocations count on thread cleanup (#142233)

7 weeks agogh-142029: Raise `ValueError` instead of crashing on empty name given to `create_buil...
dr-carlos [Wed, 10 Dec 2025 06:31:57 +0000 (17:01 +1030)] 
gh-142029: Raise `ValueError` instead of crashing on empty name given to `create_builtin()` (#142033)

Co-authored-by: Victor Stinner <vstinner@python.org>
7 weeks agogh-142315: Don't pass the "real path" of Pdb script target to system functions (...
Bartosz Sławecki [Wed, 10 Dec 2025 01:04:49 +0000 (02:04 +0100)] 
gh-142315: Don't pass the "real path" of Pdb script target to system functions (#142371)

* Pick target depending on preconditions

* Clarify the news fragment

* Add test capturing missed expectation.

* Add more idiomatic safe realpath helper

* Restore logic where existance and directoriness are checked on realpath.

* Link GH issue to test.

* Extract a function to check the target. Remove the _safe_realpath, now no longer needed.

* Extract method for replacing sys_path, and isolate realpath usage there.

* Revert "Extract method for replacing sys_path, and isolate realpath usage there."

This reverts commit 855aac3d289dd096142ed9bd23d00c22ce6e1859.

* Restore _safe_realpath.

---------

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
7 weeks agoUpdates to PyManager docs based on feedback. (GH-142473)
Steve Dower [Tue, 9 Dec 2025 23:07:50 +0000 (23:07 +0000)] 
Updates to PyManager docs based on feedback. (GH-142473)

7 weeks agogh-140189: Use macos-14 runner for iOS CI tests (#142444)
Russell Keith-Magee [Tue, 9 Dec 2025 21:52:52 +0000 (05:52 +0800)] 
gh-140189: Use macos-14 runner for iOS CI tests (#142444)

Switch to the macos-14 runner for iOS CI, working around some instability
in the macos-15 runner.

7 weeks agoGH-108819: fix LIBDEST not honoring --with-platlibdir (#133163)
Filipe Laíns [Tue, 9 Dec 2025 19:14:51 +0000 (19:14 +0000)] 
GH-108819: fix LIBDEST not honoring --with-platlibdir (#133163)

* GH-108819: fix LIBDEST not honoring --with-platlibdir

We look for the pure-Python part of the standard library in
PLATSTDLIBDIR, which may not match the default LIBDIR subdir.

From ``getpath.py``:

```python
    ...
    STDLIB_SUBDIR = f'{platlibdir}/python{VERSION_MAJOR}.{VERSION_MINOR}{ABI_THREAD}'
    STDLIB_LANDMARKS = [f'{STDLIB_SUBDIR}/os.py', f'{STDLIB_SUBDIR}/os.pyc']
    PLATSTDLIB_LANDMARK = f'{platlibdir}/python{VERSION_MAJOR}.{VERSION_MINOR}{ABI_THREAD}/lib-dynload'
    ...
```

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Add news

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Always set LIBDEST and BINLIBDEST based on PLATLIBDIR

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Add XXX comment on PLATLIBDIR default value

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Regen configure

Signed-off-by: Filipe Laíns <lains@riseup.net>
---------

Signed-off-by: Filipe Laíns <lains@riseup.net>
7 weeks agoTachyon: Remove spurious CSS for `stat-card` (#142487)
Stan Ulbrych [Tue, 9 Dec 2025 19:13:54 +0000 (19:13 +0000)] 
Tachyon: Remove spurious CSS for `stat-card` (#142487)

7 weeks agoTachyon: Make "Tachyon" in navbar link to `index.html` (#142486)
Stan Ulbrych [Tue, 9 Dec 2025 18:51:57 +0000 (18:51 +0000)] 
Tachyon: Make "Tachyon" in navbar link to `index.html` (#142486)

7 weeks agoTachyon: Fix unesecarry plural when there is a single file/sample (#142478)
Stan Ulbrych [Tue, 9 Dec 2025 17:45:52 +0000 (17:45 +0000)] 
Tachyon: Fix unesecarry plural when there is a single file/sample (#142478)

7 weeks agogh-142454: Make the JIT digest more deterministic by sorting the files in Tools/jit...
Miro Hrončok [Tue, 9 Dec 2025 17:33:09 +0000 (18:33 +0100)] 
gh-142454: Make the JIT digest more deterministic by sorting the files in Tools/jit (#142455)

Co-authored-by: Ken Jin <kenjin4096@gmail.com>
7 weeks agogh-112527: Fix help text for required options in argparse (GH-112528)
Fabian Henze [Tue, 9 Dec 2025 16:48:35 +0000 (17:48 +0100)] 
gh-112527: Fix help text for required options in argparse (GH-112528)

For optional arguments with required=True, the ArgumentDefaultsHelpFormatter
would always add a " (default: None)" to the end of the help text.
Since that's a bit misleading, it is removed with this commit.

7 weeks agogh-142447: Fix cast warning in pycore_backoff.h (#142465)
Victor Stinner [Tue, 9 Dec 2025 16:03:13 +0000 (17:03 +0100)] 
gh-142447: Fix cast warning in pycore_backoff.h (#142465)

MAKE_VALUE_AND_BACKOFF() macro casts its result to uint16_t.

Add pycore_backoff.h header to test_cppext tests.

7 weeks agogh-84530: fix namespace package support in modulefinder (#29196)
Filipe Laíns [Tue, 9 Dec 2025 15:50:50 +0000 (15:50 +0000)] 
gh-84530: fix namespace package support in modulefinder (#29196)

* bpo-40350: fix namespace package support in modulefinder

Signed-off-by: Filipe Laíns <lains@riseup.net>
* consider that namespace package specs might have the loader set

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Revert "consider that namespace package specs might have the loader set"

This reverts commit 23fb4e0de38466217e932115143db1a9584e35da.

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Fix load_module and load_package to handle namespace packages

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Drop _NAMESPACE constant

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Drop importlib changes

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Update NamespacePath check

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Mixed some

Signed-off-by: Filipe Laíns <lains@riseup.net>
---------

Signed-off-by: Filipe Laíns <lains@riseup.net>
7 weeks agogh-140222: Increase stack margin on debug build (#142452)
Victor Stinner [Tue, 9 Dec 2025 15:25:46 +0000 (16:25 +0100)] 
gh-140222: Increase stack margin on debug build (#142452)

Increase _PyOS_MIN_STACK_SIZE if Python is built in debug mode.

7 weeks agoGH-131372: only install build-details.json in the main install (#142269)
Filipe Laíns [Tue, 9 Dec 2025 14:25:34 +0000 (14:25 +0000)] 
GH-131372: only install build-details.json in the main install (#142269)

* GH-131372: only install build-details.json in the main install

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Add news

Signed-off-by: Filipe Laíns <lains@riseup.net>
---------

Signed-off-by: Filipe Laíns <lains@riseup.net>
7 weeks agogh-142342: Fix m68k assembler operand constraints for `%fpcr` access (gh-142343)
John Paul Adrian Glaubitz [Tue, 9 Dec 2025 13:46:40 +0000 (14:46 +0100)] 
gh-142342: Fix m68k assembler operand constraints for `%fpcr` access (gh-142343)

On m68k, an fmove instruction accessing %fpcr may only move from
or to a data register or a memory operand. The constraint "g" also
permits the use of address registers, which is invalid. The correct
constraint is "dm". Beginning with GCC 15, the register allocator
picks an address register in the code which causes SIGILL during
runtime.

Co-authored-by: Michael Karcher <github@mkarcher.dialup.fu-berlin.de>
7 weeks agogh-140727: Restructure profiling documentation for PEP 799 (#142373)
Pablo Galindo Salgado [Tue, 9 Dec 2025 12:55:04 +0000 (12:55 +0000)] 
gh-140727: Restructure profiling documentation for PEP 799 (#142373)

* Add profiling module documentation structure

PEP 799 introduces a new `profiling` package that reorganizes Python's
profiling tools under a unified namespace. This commit adds the documentation
structure to match: a main entry point (profiling.rst) that helps users choose
between profilers, detailed docs for the tracing profiler (profiling-tracing.rst),
and separated pstats documentation.

The tracing profiler docs note that cProfile remains as a backward-compatible
alias, so existing code continues to work. The pstats module gets its own page
since it's used by both profiler types and deserves focused documentation.

* Add profiling.sampling documentation

The sampling profiler is new in Python 3.15 and works fundamentally differently
from the tracing profiler. It observes programs from outside by periodically
capturing stack snapshots, which means zero overhead on the profiled code. This
makes it practical for production use where you can attach to live servers.

The docs explain the key concepts (statistical vs deterministic profiling),
provide quick examples upfront, document all output formats (pstats, flamegraph,
gecko, heatmap), and cover the live TUI mode. The defaults table helps users
understand what happens without any flags.

* Wire profiling docs into the documentation tree

Add the new profiling module pages to the Debugging and Profiling toctree.
The order places the main profiling.rst entry point first, followed by the
two profiler implementations, then pstats, and finally the deprecated profile
module last.

* Convert profile.rst to deprecation stub

The pure Python profile module is deprecated in 3.15 and scheduled for removal
in 3.17. Users should migrate to profiling.tracing (or use the cProfile alias
which continues to work).

The page now focuses on helping existing users migrate: it shows the old vs new
import style, keeps the shared API reference since both modules have the same
interface, and preserves the calibration docs for anyone still using the pure
Python implementation during the transition period.

* Update CLI module references for profiling restructure

Point cProfile to profiling.tracing docs and add profiling.sampling to the
list of modules with CLI interfaces. The old profile-cli label no longer
exists after the documentation restructure.

* Update whatsnew to link to profiling module docs

Enable cross-references to the new profiling module documentation and update
the CLI examples to use the current syntax with the attach subcommand. Also
reference profiling.tracing instead of cProfile since that's the new canonical
name.

7 weeks agogh-141808: Don't remove the JIT stencils when building with PGO (#141809)
Miro Hrončok [Tue, 9 Dec 2025 12:44:19 +0000 (13:44 +0100)] 
gh-141808: Don't remove the JIT stencils when building with PGO (#141809)

See: https://discuss.python.org/t/building-the-jit-with-pre-built-stencils/91838/12

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
7 weeks agoGH-139436: Remove PDF and CHM from IDLE HelpSource (#140418)
Adam Turner [Tue, 9 Dec 2025 12:32:53 +0000 (12:32 +0000)] 
GH-139436: Remove PDF and CHM from IDLE HelpSource (#140418)

7 weeks agogh-142282 Fix winreg.QueryValueEx() under race condition (GH-142283)
Jeong, YunWon [Tue, 9 Dec 2025 12:09:07 +0000 (21:09 +0900)] 
gh-142282 Fix winreg.QueryValueEx() under race condition (GH-142283)

7 weeks agoSilence warning on conversion from uint64_t to uintptr_t in threads.c (#142437)
AZero13 [Tue, 9 Dec 2025 10:18:51 +0000 (05:18 -0500)] 
Silence warning on conversion from uint64_t to uintptr_t in threads.c (#142437)

7 weeks agoTachyon: Fix html output sidebar cards hidden behind section headers on hover (#142428)
Stan Ulbrych [Mon, 8 Dec 2025 21:10:48 +0000 (21:10 +0000)] 
Tachyon: Fix html output sidebar cards hidden behind section headers on hover (#142428)

7 weeks agoFix typo in `Tools/wasm/README.md` (#142426)
Stan Ulbrych [Mon, 8 Dec 2025 20:48:17 +0000 (20:48 +0000)] 
Fix typo in `Tools/wasm/README.md` (#142426)

7 weeks agogh-138122: Fix unused variable warning in threads.c (#142425)
Sam Gross [Mon, 8 Dec 2025 19:05:11 +0000 (14:05 -0500)] 
gh-138122: Fix unused variable warning in threads.c (#142425)