Éric Araujo <mer...@netwok.org> added the comment:

I did a bit of testing on demo files.  The first one I tested with had mixed 
EOLs, in which case the newlines attribute will be a tuple and open(..., 
newline=r.newlines) will fail.  For reference: 
http://docs.python.org/dev/library/io#io.TextIOBase.newlines

What would be the best behavior in such cases?  Refuse the temptation to guess 
and exit?

----------
nosy: +pitrou
status: pending -> open

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10639>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to