Skip to content

Commit 890b936

Browse files
gh-125038: CHECK_ITER instruction removed, use GET_ITER instead
1 parent 7aa00b4 commit 890b936

16 files changed

+414
-486
lines changed

Doc/library/dis.rst

-4
Original file line numberDiff line numberDiff line change
@@ -1370,10 +1370,6 @@ iterations of the loop.
13701370
.. versionchanged:: 3.12
13711371
Up until 3.11 the iterator was popped when it was exhausted.
13721372

1373-
.. opcode:: CHECK_ITER
1374-
1375-
Check that ``STACK[-1]`` is an :term:`iterator`.
1376-
13771373
.. opcode:: LOAD_GLOBAL (namei)
13781374

13791375
Loads the global named ``co_names[namei>>1]`` onto the stack.

Include/internal/pycore_magic_number.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ Known values:
260260
Python 3.14a1 3606 (Specialize CALL_KW)
261261
Python 3.14a1 3607 (Add pseudo instructions JUMP_IF_TRUE/FALSE)
262262
Python 3.14a1 3608 (Add support for slices)
263-
Python 3.14a1 3609 (Add CHECK_ITER instruction)
264263
265264
Python 3.15 will start with 3650
266265
@@ -273,7 +272,7 @@ PC/launcher.c must also be updated.
273272
274273
*/
275274

276-
#define PYC_MAGIC_NUMBER 3609
275+
#define PYC_MAGIC_NUMBER 3608
277276
/* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes
278277
(little-endian) and then appending b'\r\n'. */
279278
#define PYC_MAGIC_NUMBER_TOKEN \

Include/internal/pycore_opcode_metadata.h

+1-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_ids.h

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/opcode_ids.h

+110-111
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)