Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
gh-145854: Replace DELETE_NAME with PUSH_NULL; STORE_NAME
Changes
- Removed `DELETE_NAME`
- When `STORE_NAME` receives a `NULL` value, it corresponds with
  deletion
  • Loading branch information
brijkapadia committed Mar 16, 2026
commit 1f97a49bd355f55febaacf164e1752e5cd71ec53
8 changes: 1 addition & 7 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1031,12 +1031,6 @@ iterations of the loop.
The compiler tries to use :opcode:`STORE_FAST` or :opcode:`STORE_GLOBAL` if possible.


.. opcode:: DELETE_NAME (namei)

Implements ``del name``, where *namei* is the index into :attr:`~codeobject.co_names`
attribute of the :ref:`code object <code-objects>`.


.. opcode:: UNPACK_SEQUENCE (count)

Unpacks ``STACK[-1]`` into *count* individual values, which are put onto the stack
Expand Down Expand Up @@ -1094,7 +1088,7 @@ iterations of the loop.

.. opcode:: DELETE_GLOBAL (namei)

Works as :opcode:`DELETE_NAME`, but deletes a global name.
Deletes a global name.


.. opcode:: LOAD_CONST (consti)
Expand Down
13 changes: 3 additions & 10 deletions Include/internal/pycore_opcode_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading