Skip to content

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

Merged
Fidget-Spinner merged 4 commits intopython: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 intopython:mainfrom
chris-eibl:tc-doc-update

Conversation

@chris-eibl
Copy link
Copy Markdown
Member

@chris-eibl chris-eibl commented Apr 3, 2026

And explain some musttail peculiarities.

@chris-eibl chris-eibl requested a review from AA-Turner as a code owner April 3, 2026 13:39
@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Apr 3, 2026
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Apr 3, 2026
@chris-eibl chris-eibl requested review from Fidget-Spinner and removed request for AA-Turner April 3, 2026 13:39
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.

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,
Copy link
Copy Markdown
Member Author

@chris-eibl chris-eibl Apr 3, 2026

Choose a reason for hiding this comment

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

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

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