FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-135944: Add a "Runtime Components" Section to the Execution Model Docs by ericsnowcurrently · Pull Request #135945 · python/cpython · GitHub

/ cpython Public

gh-135944: Add a "Runtime Components" Section to the Execution Model Docs - #135945

Merged
ericsnowcurrently merged 23 commits into
python:mainfrom
ericsnowcurrently:exec-model-runtime-components
Oct 2, 2025
Merged

gh-135944: Add a "Runtime Components" Section to the Execution Model Docs#135945
ericsnowcurrently merged 23 commits into
python:mainfrom
ericsnowcurrently:exec-model-runtime-components

Conversation

ericsnowcurrently commented Jun 25, 2025
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

The section provides a brief overview of the Python runtime's execution environment.

This is meant to be implementation agnostic, If that doesn't hold true then we should take a different approach.


📚 Documentation preview 📚: https://cpython-previews--135945.org.readthedocs.build/

Comment thread Doc/reference/executionmodel.rst Outdated
Comment thread Doc/reference/executionmodel.rst Outdated
Comment thread Doc/reference/executionmodel.rst Outdated

Copy link
Copy Markdown
Member Author

FWIW, I'm going to open a DPO thread about this addition before merging, to make sure there's sufficient visibility.

Copy link
Copy Markdown
Member Author

jeff5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Very much support the idea of clearly explaining this. I hope the comments are not too ignorant to be useful.

Comment thread Doc/reference/executionmodel.rst Outdated
Comment thread Doc/reference/executionmodel.rst Outdated
Comment thread Doc/reference/executionmodel.rst Outdated
Comment thread Doc/reference/executionmodel.rst Outdated

Copy link
Copy Markdown
Member Author

jeff5 commented Jul 1, 2025

Copy link
Copy Markdown
Contributor

Thanks @ericsnowcurrently for giving this so much thought. All good by me. Ping me if I ought to signify this myself by resolving each.

Copy link
Copy Markdown
Member Author

FYI, given the nice break I had from this change, I came back to with fresh eyes and found ways I think it could be more clear.

Copy link
Copy Markdown
Member Author

@ncoghlan, do you have any thoughts about this new section?

FWIW, my intent is to keep the section implementation-agnostic, even if some of the terminology comes from CPython. The described concepts are meant to be conceptual, even if they correspond closely to concrete implementation details.

Copy link
Copy Markdown
Member Author

I have toyed with the idea of specifying what it means to "call into Python", but that can be addressed separately, if at all.

ncoghlan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM! Couple of minor comments inline, but nothing I'd consider merge blocking.

Comment thread Doc/reference/executionmodel.rst Outdated
Comment thread Doc/reference/executionmodel.rst Outdated

Copy link
Copy Markdown
Contributor

I have toyed with the idea of specifying what it means to "call into Python", but that can be addressed separately, if at all.

If you tried to cover all the subtleties, I think you'd end up with something three times as long that was actually worse for the primary topic you're aiming to address (giving folks that aren't already familiar with the way threads and processes work in general the gist of how they work for Python in particular).

jeff5 commented Oct 2, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

This is really helpful to my understanding, especially of the possible multiplicity (or not) of relationships amongst the separate concepts. It's hard to express this kind of thing accurately and independent of a particular implementation, but I think you have. Thanks for the hard work.

ericsnowcurrently merged commit 46a1f0a into python:main Oct 2, 2025
27 checks passed
github-project-automation Bot moved this from Todo to Done in Docs PRs Oct 2, 2025

Copy link
Copy Markdown

Thanks @ericsnowcurrently for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

ericsnowcurrently deleted the exec-model-runtime-components branch October 2, 2025 15:13
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 2, 2025
…Model Docs (pythongh-135945)

The section provides a brief overview of the Python runtime's execution environment.  It is meant to be implementation agnostic,
(cherry picked from commit 46a1f0a)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 2, 2025
…Model Docs (pythongh-135945)

The section provides a brief overview of the Python runtime's execution environment.  It is meant to be implementation agnostic,
(cherry picked from commit 46a1f0a)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>

bedevere-app Bot commented Oct 2, 2025

Copy link
Copy Markdown

GH-139509 is a backport of this pull request to the 3.14 branch.

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 2, 2025

bedevere-app Bot commented Oct 2, 2025

Copy link
Copy Markdown

GH-139510 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Oct 2, 2025
AA-Turner pushed a commit that referenced this pull request Oct 7, 2025
… Model Docs (gh-135945) (#139509)

gh-135944: Add a "Runtime Components" Section to the Execution Model Docs (gh-135945)

The section provides a brief overview of the Python runtime's execution environment.  It is meant to be implementation agnostic,
(cherry picked from commit 46a1f0a)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
pablogsal pushed a commit that referenced this pull request Apr 30, 2026
… Model Docs (gh-135945) (#139510)

* gh-135944: Add a "Runtime Components" Section to the Execution Model Docs (gh-135945)

The section provides a brief overview of the Python runtime's execution environment.  It is meant to be implementation agnostic,
(cherry picked from commit 46a1f0a)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>

* concurrent.interpreters was added to Python 3.14

---------

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Co-authored-by: T. Wouters <thomas@python.org>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL