mirror of https://github.com/python/cpython.git
Fix the output of built-in iter() function example in Iterators (Section 9.8) of The Python Tutorial (GH-30110)
Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
This commit is contained in:
parent
a951c95a13
commit
c5d18a5014
|
@ -797,7 +797,7 @@ using the :func:`next` built-in function; this example shows how it all works::
|
|||
>>> s = 'abc'
|
||||
>>> it = iter(s)
|
||||
>>> it
|
||||
<iterator object at 0x00A1DB50>
|
||||
<str_iterator object at 0x10c90e650>
|
||||
>>> next(it)
|
||||
'a'
|
||||
>>> next(it)
|
||||
|
|
Loading…
Reference in New Issue