Skip to content

Commit 9ca5b0e

Browse files
committed
FOR_ITER now pushes NULL as well as the iterator. Preparation for virtual iterators
1 parent b1b1252 commit 9ca5b0e

14 files changed

+271
-201
lines changed

Include/internal/pycore_compile.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ typedef enum {
9595
enum _PyCompile_FBlockType {
9696
COMPILE_FBLOCK_WHILE_LOOP,
9797
COMPILE_FBLOCK_FOR_LOOP,
98+
COMPILE_FBLOCK_ASYNC_FOR_LOOP,
9899
COMPILE_FBLOCK_TRY_EXCEPT,
99100
COMPILE_FBLOCK_FINALLY_TRY,
100101
COMPILE_FBLOCK_FINALLY_END,

Include/internal/pycore_magic_number.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ Known values:
275275
Python 3.14a6 3620 (Optimize bytecode for all/any/tuple called on a genexp)
276276
Python 3.14a7 3621 (Optimize LOAD_FAST opcodes into LOAD_FAST_BORROW)
277277
Python 3.14a7 3622 (Store annotations in different class dict keys)
278+
Python 3.14a8 3623 (Virtual iterators)
278279
279280
Python 3.15 will start with 3650
280281
@@ -287,7 +288,7 @@ PC/launcher.c must also be updated.
287288
288289
*/
289290

290-
#define PYC_MAGIC_NUMBER 3622
291+
#define PYC_MAGIC_NUMBER 3623
291292
/* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes
292293
(little-endian) and then appending b'\r\n'. */
293294
#define PYC_MAGIC_NUMBER_TOKEN \

Include/internal/pycore_opcode_metadata.h

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

Include/internal/pycore_uop_ids.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

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

0 commit comments

Comments
 (0)