diff options
author | Vivek Vashist <vivekvashist@gmail.com> | 2021-12-16 10:40:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 10:40:12 (GMT) |
commit | c5d18a5014f649368b5a4bca94e9ec7d2908b481 (patch) | |
tree | d1774a61f3d8fa3308b52c8b4d7a1aa909526cf0 /Doc | |
parent | a951c95a13c3555ac8fb1c8ee615ba3930ccc6f7 (diff) | |
download | cpython-c5d18a5014f649368b5a4bca94e9ec7d2908b481.zip cpython-c5d18a5014f649368b5a4bca94e9ec7d2908b481.tar.gz cpython-c5d18a5014f649368b5a4bca94e9ec7d2908b481.tar.bz2 |
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>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/classes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 0d780e3..f44cb0b 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -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) |