]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the output of built-in iter() function example in Iterators (Section 9.8) of...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 16 Dec 2021 11:04:53 +0000 (03:04 -0800)
committerGitHub <noreply@github.com>
Thu, 16 Dec 2021 11:04:53 +0000 (03:04 -0800)
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>
Doc/tutorial/classes.rst

index 0d780e3ba89643e2c5292a048fb13d39912451da..f44cb0b4e905a9df449107b31567f9e9fb0905ba 100644 (file)
@@ -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)