Skip to content

gh-141004: Document Py_FrozenMain - #159724

Open
ZeroIntensity wants to merge 3 commits into
python:mainfrom
ZeroIntensity:docs/c-api/document-frozenmain
Open

ZeroIntensity wants to merge 3 commits into
python:mainfrom
ZeroIntensity:docs/c-api/document-frozenmain

Conversation

@ZeroIntensity

@ZeroIntensity ZeroIntensity commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

@read-the-docs-community

read-the-docs-community Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

@ZeroIntensity
ZeroIntensity requested a review from encukou October 19, 2026 18:42
Comment thread Doc/c-api/interp-lifecycle.rst Outdated
Return ``0`` if ``__main__`` ran without an unhandled exception, ``1``
otherwise, and ``120`` if finalizing the interpreter failed (see
:c:func:`Py_FinalizeEx`).
An unhandled :exc:`SystemExit` terminates the process.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right? (I'll need to check or study the code a bit more to verify; but if you already did, I'll believe you :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Admittedly, Codex did a lot of the research on the details here. I'll double-check to make sure that it's not hallucinating.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review docs Documentation in the Doc dir needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes skip news sprint

Projects

Status: Todo
Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants