Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-93143: Document LOAD_FAST_CHECK opcode#93498

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sweeneyde merged 1 commit intopython:mainfromsweeneyde:doc-LOAD_FAST_CHECK
Jun 5, 2022
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Document LOAD_FAST_CHECK opcode
  • Loading branch information
@sweeneyde
sweeneyde committedJun 4, 2022
commit9a14d41f224ae1d54a210c81d74a890ff258ec2b
11 changes: 11 additions & 0 deletionsDoc/library/dis.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1042,6 +1042,17 @@ iterations of the loop.

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)

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp