summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/classes.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-12-16 11:00:58 (GMT)
committerGitHub <noreply@github.com>2021-12-16 11:00:58 (GMT)
commitfb5d314da8f74e624f1ba30389f8ec305e2553a4 (patch)
tree7bd8f5da9cc0f078a65b9de81e5d5b242b50252e /Doc/tutorial/classes.rst
parentc8044777cf8c4e9bf05d1ab69fd4005089709147 (diff)
downloadcpython-fb5d314da8f74e624f1ba30389f8ec305e2553a4.zip
cpython-fb5d314da8f74e624f1ba30389f8ec305e2553a4.tar.gz
cpython-fb5d314da8f74e624f1ba30389f8ec305e2553a4.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> (cherry picked from commit c5d18a5014f649368b5a4bca94e9ec7d2908b481) Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
Diffstat (limited to 'Doc/tutorial/classes.rst')
-rw-r--r--Doc/tutorial/classes.rst2
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)