Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d02a98

Browse files
committed
#22170: merge with 3.4.
2 parents 304e542 + 79a1ffd commit 7d02a98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tutorial/classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ using a :keyword:`for` statement::
802802
for char in "123":
803803
print(char)
804804
for line in open("myfile.txt"):
805-
print(line)
805+
print(line, end='')
806806

807807
This style of access is clear, concise, and convenient. The use of iterators
808808
pervades and unifies Python. Behind the scenes, the :keyword:`for` statement

0 commit comments

Comments
 (0)