diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-08 19:04:12 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-08 19:04:12 (GMT) |
commit | 48b1c3fcfc47b720a721ef887dd495ad667f567f (patch) | |
tree | 18b1512418a7b22d6875a90da13aa7f79d5724f3 | |
parent | 44759bcf13d6b47323fd4c6e4d62b7146ed0a5b1 (diff) | |
download | cpython-48b1c3fcfc47b720a721ef887dd495ad667f567f.zip cpython-48b1c3fcfc47b720a721ef887dd495ad667f567f.tar.gz cpython-48b1c3fcfc47b720a721ef887dd495ad667f567f.tar.bz2 |
Issue #28376: The type of long range iterator is now registered as Iterator.
Patch by Oren Milman.
-rw-r--r-- | Lib/_collections_abc.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py index 001f274..8bebd69 100644 --- a/Lib/_collections_abc.py +++ b/Lib/_collections_abc.py @@ -41,6 +41,7 @@ dict_itemiterator = type(iter({}.items())) list_iterator = type(iter([])) list_reverseiterator = type(iter(reversed([]))) range_iterator = type(iter(range(0))) +longrange_iterator = type(iter(range(1 << 1000))) set_iterator = type(iter(set())) str_iterator = type(iter("")) tuple_iterator = type(iter(())) @@ -234,6 +235,7 @@ Iterator.register(dict_itemiterator) Iterator.register(list_iterator) Iterator.register(list_reverseiterator) Iterator.register(range_iterator) +Iterator.register(longrange_iterator) Iterator.register(set_iterator) Iterator.register(str_iterator) Iterator.register(tuple_iterator) @@ -10,6 +10,9 @@ Release date: TBA Core and Builtins ----------------- +- Issue #28376: The type of long range iterator is now registered as Iterator. + Patch by Oren Milman. + - Issue #28376: The constructor of range_iterator now checks that step is not 0. Patch by Oren Milman. |