Skip to content

Commit

Permalink
Fix the output of built-in iter() function example in Iterators (Sect…
Browse files Browse the repository at this point in the history
…ion 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>
  • Loading branch information
vivekvashist committed Dec 16, 2021
1 parent a951c95 commit c5d18a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/tutorial/classes.rst
Expand Up @@ -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)
Expand Down

0 comments on commit c5d18a5

Please sign in to comment.