diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2014-08-08 14:23:32 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2014-08-08 14:23:32 (GMT) |
commit | 79a1ffde9b3ae4b7dccdf2a64c6fc7cb7c243211 (patch) | |
tree | 31eb9fab8df7185c123ce618367483f83df02815 | |
parent | 41ad77c69718e7864eac62c8cd9034c3b51fb93e (diff) | |
download | cpython-79a1ffde9b3ae4b7dccdf2a64c6fc7cb7c243211.zip cpython-79a1ffde9b3ae4b7dccdf2a64c6fc7cb7c243211.tar.gz cpython-79a1ffde9b3ae4b7dccdf2a64c6fc7cb7c243211.tar.bz2 |
#22170: avoid printing newlines twice in tutorial example.
-rw-r--r-- | Doc/tutorial/classes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 6c71d80..11e07e3 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -802,7 +802,7 @@ using a :keyword:`for` statement:: for char in "123": print(char) for line in open("myfile.txt"): - print(line) + print(line, end='') This style of access is clear, concise, and convenient. The use of iterators pervades and unifies Python. Behind the scenes, the :keyword:`for` statement |