Skip to content
Open
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
1 change: 1 addition & 0 deletions Doc/tools/removed-ids.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# HTML IDs excluded from the check-html-ids.py check.
library/dis.html: opcode-DELETE_NAME
5 changes: 3 additions & 2 deletions Include/internal/pycore_magic_number.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,11 @@ Known values:
Python 3.15a4 3659 (Add CALL_FUNCTION_EX specialization)
Python 3.15a4 3660 (Change generator preamble code)
Python 3.15a4 3661 (Lazy imports IMPORT_NAME opcode changes)
Python 3.15a8 3662 (Add counter to RESUME)
Python 3.15a6 3662 (Add counter to RESUME)
Comment thread
brijkapadia marked this conversation as resolved.
Outdated
Comment thread
brijkapadia marked this conversation as resolved.
Outdated
Python 3.15a8 3663 (Merge GET_ITER and GET_YIELD_FROM_ITER. Modify SEND to make it a bit more like FOR_ITER)
Python 3.15a8 3664 (Fix __qualname__ for __annotate__ functions)
Python 3.15a8 3665 (Add FOR_ITER_VIRTUAL and GET_ITER specializations)
Python 3.15a8 3666 (Replace DELETE_FAST with PUSH_NULL; STORE_FAST)


Python 3.16 will start with 3700
Expand All @@ -309,7 +310,7 @@ PC/launcher.c must also be updated.

*/

#define PYC_MAGIC_NUMBER 3665
#define PYC_MAGIC_NUMBER 3666
/* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes
(little-endian) and then appending b'\r\n'. */
#define PYC_MAGIC_NUMBER_TOKEN \
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