8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0902c3d commit 4082c8eCopy full SHA for 4082c8e
Doc/library/dis.rst
@@ -1042,6 +1042,17 @@ iterations of the loop.
1042
1043
Pushes a reference to the local ``co_varnames[var_num]`` onto the stack.
1044
1045
+ .. versionchanged:: 3.12
1046
+ This opcode is now only used in situations where the local variable is
1047
+ guaranteed to be initialized. It cannot raise :exc:`UnboundLocalError`.
1048
+
1049
+.. opcode:: LOAD_FAST_CHECK (var_num)
1050
1051
+ Pushes a reference to the local ``co_varnames[var_num]`` onto the stack,
1052
+ raising an :exc:`UnboundLocalError` if the local variable has not been
1053
+ initialized.
1054
1055
+ .. versionadded:: 3.12
1056
1057
.. opcode:: STORE_FAST (var_num)
1058
0 commit comments