Skip to content

Commit 1f97a49

Browse files
committed
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
1 parent 40095d5 commit 1f97a49

File tree

16 files changed

+946
-1127
lines changed

16 files changed

+946
-1127
lines changed

Doc/library/dis.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,12 +1031,6 @@ iterations of the loop.
10311031
The compiler tries to use :opcode:`STORE_FAST` or :opcode:`STORE_GLOBAL` if possible.
10321032

10331033

1034-
.. opcode:: DELETE_NAME (namei)
1035-
1036-
Implements ``del name``, where *namei* is the index into :attr:`~codeobject.co_names`
1037-
attribute of the :ref:`code object <code-objects>`.
1038-
1039-
10401034
.. opcode:: UNPACK_SEQUENCE (count)
10411035

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

10951089
.. opcode:: DELETE_GLOBAL (namei)
10961090

1097-
Works as :opcode:`DELETE_NAME`, but deletes a global name.
1091+
Deletes a global name.
10981092

10991093

11001094
.. opcode:: LOAD_CONST (consti)

Include/internal/pycore_opcode_metadata.h

Lines changed: 3 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)