[issue22170] Typo in iterator doc

2014-08-08 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue22170] Typo in iterator doc

2014-08-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 35db84720d8d by Ezio Melotti in branch '3.4': #22170: avoid printing newlines twice in tutorial example. http://hg.python.org/cpython/rev/35db84720d8d New changeset 79e469ae13b7 by Ezio Melotti in branch 'default': #22170: merge with 3.4. http://hg.

[issue22170] Typo in iterator doc

2014-08-08 Thread R. David Murray
R. David Murray added the comment: The comma means print doesn't add a newline to what is printed. This is correct because the lines read from the file already have a newline at the end. I can see how this example becomes a little confusing in a tutorial section on iterators, but as Mark sai

[issue22170] Typo in iterator doc

2014-08-08 Thread Mark Lawrence
Mark Lawrence added the comment: The comma is needed to prevent blank newlines being printed. Please try it for yourself. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue22170] Typo in iterator doc

2014-08-07 Thread Susan Tan
Susan Tan added the comment: https://docs.python.org/2/tutorial/classes.html#iterators -- ___ Python tracker ___ ___ Python-bugs-list

[issue22170] Typo in iterator doc

2014-08-07 Thread Susan Tan
New submission from Susan Tan: Typo in last line: for line in open("myfile.txt"): print line, Instead there should be no extra "," character in "print line," -- assignee: docs@python components: Documentation messages: 225056 nosy: Susan, docs@python priority: normal severity: nor