From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 16 Dec 2021 11:04:53 +0000 (-0800) Subject: Fix the output of built-in iter() function example in Iterators (Section 9.8) of... X-Git-Tag: v3.9.10~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=309614f1f78923b0875f24640ab5345a4eb8c76d;p=thirdparty%2FPython%2Fcpython.git 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 to (cherry picked from commit c5d18a5014f649368b5a4bca94e9ec7d2908b481) Co-authored-by: Vivek Vashist --- diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 0d780e3ba896..f44cb0b4e905 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 - + >>> next(it) 'a' >>> next(it)