Skip to content

gh-126970: Correct LOAD_GLOBAL stack order documentation - #159851

Open
limadog9 wants to merge 1 commit into
python:mainfrom
limadog9:gh-126970-load-global-stack-docs
Open

limadog9 wants to merge 1 commit into
python:mainfrom
limadog9:gh-126970-load-global-stack-docs

Conversation

@limadog9

@limadog9 limadog9 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Describe the current LOAD_GLOBAL stack order in its main documentation: when the low argument bit is set, the global is followed by NULL. Record the stack-order change under Python 3.13 while keeping the flag's introduction under Python 3.11.

Fixes #126970.

Validation:

  • Checked the interpreter's LOAD_GLOBAL macro and verified disassembly, the low-bit flag, stack effects, and call/value behavior on a current free-threaded debug build.
  • Full HTML documentation build with warnings treated as errors.
  • Sphinx lint and patchcheck.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35258728 | 📁 Comparing 705535c against main (6044c62)

  🔍 Preview build  

1 file changed
± library/dis.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

inconsistency in 3.13 LOAD_GLOBAL docs

1 participant