Skip to content
Open
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
43b0798
Copy the reference implementation.
ZeroIntensity Apr 28, 2026
722dbdf
Merge branch 'main' of https://github.com/python/cpython into pep-788
ZeroIntensity Apr 28, 2026
73cccbb
Document the new APIs.
ZeroIntensity Apr 28, 2026
25e1cf0
Add a whatsnew entry.
ZeroIntensity Apr 28, 2026
af1022a
Fix stable ABI things.
ZeroIntensity Apr 28, 2026
2fb8419
Fix test_embed.
ZeroIntensity Apr 28, 2026
1096a32
SIlly news entry.
ZeroIntensity Apr 28, 2026
407062f
Documentation fixes.
ZeroIntensity Apr 28, 2026
a33bdfc
Make the sentinel const instead of changing the C analyzer.
ZeroIntensity Apr 28, 2026
c504a9f
Fix the html IDs job.
ZeroIntensity Apr 28, 2026
f95bfc7
Merge branch 'main' into pep-788
encukou Apr 29, 2026
a00bfbb
Apply suggestions from code review
ZeroIntensity Apr 29, 2026
6ca2499
Update Doc/c-api/threads.rst
ZeroIntensity Apr 29, 2026
74259f8
Fix lint and remove dead comment.
ZeroIntensity Apr 29, 2026
eff9b40
Improve new PyThreadState API docs.
ZeroIntensity Apr 29, 2026
bc78c10
Fix lint.
ZeroIntensity Apr 29, 2026
0a30c25
Apply suggestions from code review
ZeroIntensity Apr 30, 2026
fe3d8a1
Update Doc/c-api/threads.rst
ZeroIntensity Apr 30, 2026
ad69f96
Fix line endings.
ZeroIntensity Apr 30, 2026
1623556
Remove accidental formatting changes.
ZeroIntensity Apr 30, 2026
cad8786
Fix memory ordering for the event reset.
ZeroIntensity Apr 30, 2026
e042656
Improve NO_TSTATE_SENTINEL.
ZeroIntensity Apr 30, 2026
6a05c90
Fix some test things.
ZeroIntensity Apr 30, 2026
728ee3a
Remove note about deallocation.
ZeroIntensity Apr 30, 2026
d9e1170
Explicitly mark implementation details in the docs.
ZeroIntensity Apr 30, 2026
2f824d3
Add missing versionadded markers.
ZeroIntensity Apr 30, 2026
ab9d783
Remove dead comment.
ZeroIntensity Apr 30, 2026
10e241e
Merge branch 'main' of https://github.com/python/cpython into pep-788
ZeroIntensity Apr 30, 2026
25687af
Some improvements to PyThreadState_Release() based on review.
ZeroIntensity May 1, 2026
6d3b40a
Add a comment.
ZeroIntensity May 1, 2026
0c08141
Remove _ prefix from struct names.
ZeroIntensity May 1, 2026
31f1155
Only issue a fatal error for KeyboardInterrupt.
ZeroIntensity May 1, 2026
6c62b40
Don't use a full PyThreadState for NO_TSTATE_SENTINEL on release builds.
ZeroIntensity May 1, 2026
d8ce02d
Fix race during event spinning.
ZeroIntensity May 1, 2026
e105120
Merge branch 'main' of https://github.com/python/cpython into pep-788
ZeroIntensity May 1, 2026
eb73203
Merge in the main branch
encukou May 4, 2026
09a0d69
Switch to PyThreadStateToken
encukou May 4, 2026
5a3f808
Remove ensure_tstate_is_valid
encukou May 4, 2026
d43ba9d
Merge in the main branch
encukou May 4, 2026
9a04e93
Apply suggestions from code review
ZeroIntensity May 4, 2026
a382721
Simply exit instead of emitting a fatal error upon CTRL^C.
ZeroIntensity May 4, 2026
03862fb
Hardcode zero as the main interpreter ID.
ZeroIntensity May 4, 2026
df720a5
Fix leak in get_main_interp_guard.
ZeroIntensity May 4, 2026
767c894
Improve readability and fix warning.
ZeroIntensity May 4, 2026
38a2153
Use void instead of a struct for PyThreadStateToken.
ZeroIntensity May 4, 2026
321c783
Run test_embed with TSan.
ZeroIntensity May 4, 2026
811ca19
Switch to a single atomic field instead of using locks and events.
ZeroIntensity May 5, 2026
ac58a16
Fix existing thread-safety issue with interp_has_threads().
ZeroIntensity May 5, 2026
4ced3a1
Use the parking lot to avoid eating CPU cycles.
ZeroIntensity May 5, 2026
9345afd
Stupid merge conflicts.
ZeroIntensity May 5, 2026
11cbe5c
Fix C analyzer.
ZeroIntensity May 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove note about deallocation.
  • Loading branch information
ZeroIntensity committed Apr 30, 2026
commit 728ee3a16c03e4cd45893df1709860e84ede7d0e
6 changes: 0 additions & 6 deletions Doc/c-api/interp-lifecycle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,6 @@ it possible to avoid these issues by temporarily preventing finalization:
:c:func:`PyThreadState_Ensure`. Doing so will result in undefined
behavior.

Currently, this function will deallocate *guard*, but this may change in
the future.

This function cannot fail, and the caller doesn't need to hold an
:term:`attached thread state`.

Expand Down Expand Up @@ -752,9 +749,6 @@ deleted. This can be done using interpreter views.
freed, but there are no other consequences. (In contrast, forgetting to
close a guard will infinitely hang the main thread during finalization.)

Currently, this function will deallocate *view*, but this may change in
the future.

This function cannot fail, and the caller doesn't need to hold an
:term:`attached thread state`.

Expand Down