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

GH-139922: add interpreter types to InternalDocs/interpreter.md by chris-eibl · Pull Request #148035 · python/cpython · GitHub

/ cpython Public

GH-139922: add interpreter types to InternalDocs/interpreter.md - #148035

Merged
Fidget-Spinner merged 4 commits into
python:mainfrom
chris-eibl:tc-doc-update
Apr 5, 2026
Merged

GH-139922: add interpreter types to InternalDocs/interpreter.md#148035
Fidget-Spinner merged 4 commits into
python:mainfrom
chris-eibl:tc-doc-update

Conversation

chris-eibl commented Apr 3, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

And explain some musttail peculiarities.

chris-eibl requested a review from AA-Turner as a code owner April 3, 2026 13:39
bedevere-app Bot added awaiting review docs Documentation in the Doc dir skip news labels Apr 3, 2026
github-project-automation Bot moved this to Todo in Docs PRs Apr 3, 2026
chris-eibl requested review from Fidget-Spinner and removed request for AA-Turner April 3, 2026 13:39
Comment thread InternalDocs/interpreter.md Outdated
Comment on lines +536 to +539
also on the optimization level. [Introducing additional scopes](https://github.com/python/cpython/blob/3908593039bde9d4b591ab09919003ee57418d64/Python/bytecodes.c#L2526),
[extracting problematic code paths into a separate function](https://github.com/python/cpython/pull/143068/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342R3724)
or [returning a pointer instead of taking it as an output parameter](https://github.com/python/cpython/blob/3908593039bde9d4b591ab09919003ee57418d64/Include/internal/pycore_ceval.h#L489-L492)
is particularly helpful to the MSVC compiler in this regard. Using `restrict` is another (currently unused) remedy.

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.

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

It would be better to place this as a bullet list:

The following remedies work:
...

[preserve_none](https://clang.llvm.org/docs/AttributeReference.html#preserve-none)
calling convention between the small C functions that implement individual Python opcodes.

Not all compilers support these and if they do not all targets might be supported (for example,

chris-eibl Apr 3, 2026
edited
Loading

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.

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

See #148036 for a (current) list of supported MSVC configurations.

Fidget-Spinner merged commit 668c572 into python:main Apr 5, 2026
34 checks passed
github-project-automation Bot moved this from Todo to Done in Docs PRs Apr 5, 2026
chris-eibl deleted the tc-doc-update branch April 5, 2026 15:34
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.

2 participants


Back | FazBrowse Home | New Git URL