Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Undocumented changes of LOAD_GLOBAL's stack effect in Python 3.13 #114212

Open
@sklam

Description

@sklam

Documentation

This commit changed LOAD_GLOBAL's stack effect: a9caf9c#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342L1318-R1318. The null now goes after the global variable. It's missing a verionchanged note in dis.rst:

cpython/Doc/library/dis.rst

Lines 1364 to 1372 in 78fcde0

.. opcode:: LOAD_GLOBAL (namei)
Loads the global named ``co_names[namei>>1]`` onto the stack.
.. versionchanged:: 3.11
If the low bit of ``namei`` is set, then a ``NULL`` is pushed to the
stack before the global variable.
.. opcode:: LOAD_FAST (var_num)

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions