[issue1744752] Newline skipped in "for line in file"

Antoine Pitrou report at bugs.python.org
Mon Apr 6 13:36:41 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

The only difference between "r" and "rb" (in Python 2.x) is that under
Windows, "r" mode converts "\r\n" line endings into "\n". But it's the
Windows C stdlib which does that, not Python. So maybe a bug in Windows
itself?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1744752>
_______________________________________


More information about the Python-bugs-list mailing list