Skip to content

Commit 579bd08

Browse files
committed
pythongh-129068: allow concurrent iteration over range iterators
1 parent 96ef4c5 commit 579bd08

File tree

14 files changed

+263
-223
lines changed

14 files changed

+263
-223
lines changed

Include/internal/pycore_opcode_metadata.h

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

Include/internal/pycore_range.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ typedef struct {
1313
long start;
1414
long step;
1515
long len;
16+
long stop;
1617
} _PyRangeIterObject;
1718

19+
extern long _PyRangeIter_GetLength(_PyRangeIterObject *r, long start);
20+
1821
#ifdef __cplusplus
1922
}
2023
#endif

Include/internal/pycore_uop_ids.h

Lines changed: 98 additions & 99 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: 3 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)