Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
64e0f462
Commit
64e0f462
authored
Oct 08, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge from 3.5.
parents
21ca166e
41f10f4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Lib/_collections_abc.py
Lib/_collections_abc.py
+2
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/_collections_abc.py
View file @
64e0f462
...
...
@@ -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
(()))
...
...
@@ -225,6 +226,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
)
...
...
Misc/NEWS
View file @
64e0f462
...
...
@@ -10,6 +10,9 @@ What's New in Python 3.6.0 beta 2
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
type now is deprecated. Patch by Oren Milman.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment