Merge from 3.5.

This commit is contained in:
Serhiy Storchaka 2016-10-08 22:06:52 +03:00
commit c3215f530f
2 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,7 @@ dict_itemiterator = type(iter({}.items()))
list_iterator = type(iter([])) list_iterator = type(iter([]))
list_reverseiterator = type(iter(reversed([]))) list_reverseiterator = type(iter(reversed([])))
range_iterator = type(iter(range(0))) range_iterator = type(iter(range(0)))
longrange_iterator = type(iter(range(1 << 1000)))
set_iterator = type(iter(set())) set_iterator = type(iter(set()))
str_iterator = type(iter("")) str_iterator = type(iter(""))
tuple_iterator = type(iter(())) tuple_iterator = type(iter(()))
@ -225,6 +226,7 @@ Iterator.register(dict_itemiterator)
Iterator.register(list_iterator) Iterator.register(list_iterator)
Iterator.register(list_reverseiterator) Iterator.register(list_reverseiterator)
Iterator.register(range_iterator) Iterator.register(range_iterator)
Iterator.register(longrange_iterator)
Iterator.register(set_iterator) Iterator.register(set_iterator)
Iterator.register(str_iterator) Iterator.register(str_iterator)
Iterator.register(tuple_iterator) Iterator.register(tuple_iterator)

View File

@ -10,6 +10,9 @@ What's New in Python 3.6.0 beta 2
Core and Builtins Core and Builtins
----------------- -----------------
- Issue #28376: The type of long range iterator is now registered as Iterator.
Patch by Oren Milman.
- Issue #28376: Creating instances of range_iterator by calling range_iterator - Issue #28376: Creating instances of range_iterator by calling range_iterator
type now is deprecated. Patch by Oren Milman. type now is deprecated. Patch by Oren Milman.