-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-135447: Document new bytecodes in 3.14 #135803
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
base: main
Are you sure you want to change the base?
Conversation
|
||
.. opcode:: BUILD_TEMPLATE | ||
|
||
Create a Template object consuming interpolations and a string from the stack, |
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.
waiting for the doc of string.templatelib
:class:`string.templatelib.Template`
@@ -1163,6 +1169,26 @@ iterations of the loop. | |||
.. versionadded:: 3.6 | |||
|
|||
|
|||
.. opcode:: BUILD_INTERPOLATION | |||
|
|||
Constructs an Interpolation object from the following components, and pushes |
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.
waiting for the doc of string.templatelib
:class:`string.templatelib.Interpolation`
@Fidget-Spinner I did a PR to fix the issue. I'm not sure if my expression is correct, so could you take a look? Thanks! |
I think there's some misconception happening here, but no worries, I'll explain how to interpret the bytecode. To document a new bytecode, you need to go to this file https://github.com/python/cpython/blob/main/Python/bytecodes.c . Then, find the bytecode definition (for example,
Based on this, are you able to infer the behavior of |
Document:
dis
module docs #135447📚 Documentation preview 📚: https://cpython-previews--135803.org.readthedocs.build/