mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue