FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-126970: Correct LOAD_GLOBAL stack order documentation by limadog9 · Pull Request #159851 · python/cpython · GitHub

Repository navigation

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
8 changes: 6 additions & 2 deletions Doc/library/dis.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1436,10 +1436,14 @@ iterations of the loop.
.. opcode:: LOAD_GLOBAL (namei)

Loads the global named ``co_names[namei>>1]`` onto the stack.
If the low bit of ``namei`` is set, a ``NULL`` is pushed onto the stack
after the global variable.

.. versionchanged:: 3.11
If the low bit of ``namei`` is set, then a ``NULL`` is pushed to the
stack before the global variable.
The low bit of ``namei`` indicates whether a ``NULL`` is pushed.

.. versionchanged:: 3.13
The ``NULL`` is pushed after the global variable, rather than before it.

.. opcode:: LOAD_FAST (var_num)

Expand Down
Loading

Back | FazBrowse Home | New Git URL