-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-119786: move frames documentation to InternalDocs and add details #121009
Conversation
iritkatriel
commented
Jun 25, 2024
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: create an internals documentation folder in the cpython repo #119786
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've a few suggestions.
Also, FYI:
f_globals
andf_builtins
are likely to be removed soon Speeding up Python-to-Python calls. faster-cpython/ideas#661- We may even move to a two-stack approach Use two call stacks instead of one. faster-cpython/ideas#675
InternalDocs/frames.md
Outdated
|
||
* Local variables (including arguments, cells and free variables) | ||
* Evaluation stack | ||
* Evaluation stack and instruction pointer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the instruction pointer belongs here (at least not conceptually).
I would add it to specials/linkage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about I change this line to
Execution state: evaluation stack, instruction pointer ?
It feels like instruction pointer is internal to the frame's working, rather than linking to external frames or objects.
I think it would make sense to merge the "specials" and "linkage" sections. The only real "linkage" is the So, maybe replace "specials and linkage" with "specials", and when specifically referring to "linkage", say |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks