]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the output of built-in iter() function example in Iterators (Section 9.8) of...
authorVivek Vashist <vivekvashist@gmail.com>
Thu, 16 Dec 2021 10:40:12 +0000 (21:10 +1030)
committerGitHub <noreply@github.com>
Thu, 16 Dec 2021 10:40:12 +0000 (18:40 +0800)
Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>

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)