diff Doc/tutorial/classes.rst @ 80758:29627bd5b333 2.7

Drop double newlines printed in some file iteration examples. Patch by Steven Kryskalla.
author Andrew Svetlov <andrew.svetlov@gmail.com>
date Sat, 08 Dec 2012 18:01:27 +0200
parents 15cb8d80ecc8
children ac826284fdd1
line wrap: on
line diff
--- a/Doc/tutorial/classes.rst	Sat Dec 08 12:29:40 2012 +0200
+++ b/Doc/tutorial/classes.rst	Sat Dec 08 18:01:27 2012 +0200
@@ -688,7 +688,7 @@
    for char in "123":
        print char
    for line in open("myfile.txt"):
-       print line
+       print line,
 
 This style of access is clear, concise, and convenient.  The use of iterators
 pervades and unifies Python.  Behind the scenes, the :keyword:`for` statement