Message176824
I heard someone complain about this code appearing in the official documentation in a few places:
for line in open("file.txt"):
print(line)
This code will print two newlines.
I went through the current "default" and "2.7" branches and changed the places where this occurred to use print(line, end="") for 3.x or "print line," for 2.x.
r80699.patch is for the "default" branch (3.x)
r80694.py27.patch is for the "2.7" branch |
|
Date |
User |
Action |
Args |
2012-12-03 03:41:43 | lost-theory | set | recipients:
+ lost-theory, docs@python |
2012-12-03 03:41:42 | lost-theory | set | messageid: <1354506102.98.0.373990465676.issue16598@psf.upfronthosting.co.za> |
2012-12-03 03:41:42 | lost-theory | link | issue16598 messages |
2012-12-03 03:41:41 | lost-theory | create | |
|