Skip to content

Commit

Permalink
pythongh-125038: CHECK_ITER instruction removed, use GET_ITER instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Efimov committed Oct 19, 2024
1 parent 7aa00b4 commit c5d5bf4
Show file tree
Hide file tree
Showing 16 changed files with 414 additions and 486 deletions.
4 changes: 0 additions & 4 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1370,10 +1370,6 @@ iterations of the loop.
.. versionchanged:: 3.12
Up until 3.11 the iterator was popped when it was exhausted.

.. opcode:: CHECK_ITER

Check that ``STACK[-1]`` is an :term:`iterator`.

.. opcode:: LOAD_GLOBAL (namei)

Loads the global named ``co_names[namei>>1]`` onto the stack.
Expand Down
3 changes: 1 addition & 2 deletions Include/internal/pycore_magic_number.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ Known values:
Python 3.14a1 3606 (Specialize CALL_KW)
Python 3.14a1 3607 (Add pseudo instructions JUMP_IF_TRUE/FALSE)
Python 3.14a1 3608 (Add support for slices)
Python 3.14a1 3609 (Add CHECK_ITER instruction)
Python 3.15 will start with 3650
Expand All @@ -273,7 +272,7 @@ PC/launcher.c must also be updated.
*/

#define PYC_MAGIC_NUMBER 3609
#define PYC_MAGIC_NUMBER 3608
/* 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
9 changes: 1 addition & 8 deletions Include/internal/pycore_opcode_metadata.h

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

1 change: 0 additions & 1 deletion Include/internal/pycore_uop_ids.h

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

4 changes: 0 additions & 4 deletions Include/internal/pycore_uop_metadata.h

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

221 changes: 110 additions & 111 deletions Include/opcode_ids.h

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

Loading

0 comments on commit c5d5bf4

Please sign in to comment.