Skip to content

Commit c5d18a5

Browse files
authored
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>
1 parent a951c95 commit c5d18a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ using the :func:`next` built-in function; this example shows how it all works::
797797
>>> s = 'abc'
798798
>>> it = iter(s)
799799
>>> it
800-
<iterator object at 0x00A1DB50>
800+
<str_iterator object at 0x10c90e650>
801801
>>> next(it)
802802
'a'
803803
>>> next(it)

0 commit comments

Comments
 (0)