[issue7268] 2to3 execfile conversion changes behavior

Benjamin Peterson report at bugs.python.org
Fri Nov 6 02:00:55 CET 2009


Benjamin Peterson <benjamin at python.org> added the comment:

This is because you have DOS newlines which the Python compiler cannot
handle. In 2.x, open("test.py", "r") does not translate newlines. In
3.x, it does.

----------

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


More information about the Python-bugs-list mailing list