Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cpython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sip
Cpython
Commits
4082c8e2
Unverified
Commit
4082c8e2
authored
Jun 5, 2022
by
Dennis Sweeney
Committed by
GitHub
Jun 5, 2022
Browse files
Options
Downloads
Patches
Plain Diff
Document LOAD_FAST_CHECK opcode (#93498)
parent
0902c3d8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Doc/library/dis.rst
+11
-0
11 additions, 0 deletions
Doc/library/dis.rst
with
11 additions
and
0 deletions
Doc/library/dis.rst
+
11
−
0
View file @
4082c8e2
...
@@ -1042,6 +1042,17 @@ iterations of the loop.
...
@@ -1042,6 +1042,17 @@ iterations of the loop.
Pushes a reference to the local ``co_varnames[var_num]`` onto the stack.
Pushes a reference to the local ``co_varnames[var_num]`` onto the stack.
.. versionchanged:: 3.12
This opcode is now only used in situations where the local variable is
guaranteed to be initialized. It cannot raise :exc:`UnboundLocalError`.
.. opcode:: LOAD_FAST_CHECK (var_num)
Pushes a reference to the local ``co_varnames[var_num]`` onto the stack,
raising an :exc:`UnboundLocalError` if the local variable has not been
initialized.
.. versionadded:: 3.12
.. opcode:: STORE_FAST (var_num)
.. opcode:: STORE_FAST (var_num)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment