summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2014-08-08 14:24:06 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2014-08-08 14:24:06 (GMT)
commit7d02a98f78e9350f02143e473808a29594953905 (patch)
tree416f64d016f9d93ee20027ab6ce356a99ab0f8fb /Doc/tutorial
parent304e542ccd8dd2dc6c6f363a2a0c3c131c64a6ca (diff)
parent79a1ffde9b3ae4b7dccdf2a64c6fc7cb7c243211 (diff)
downloadcpython-7d02a98f78e9350f02143e473808a29594953905.zip
cpython-7d02a98f78e9350f02143e473808a29594953905.tar.gz
cpython-7d02a98f78e9350f02143e473808a29594953905.tar.bz2
#22170: merge with 3.4.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/classes.rst2
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