[issue10954] No warning for csv.writer API change

Lennart Regebro report at bugs.python.org
Sun Jan 23 08:09:48 CET 2011


Lennart Regebro <regebro at gmail.com> added the comment:

In the worst case, not checking for newline='' is not a big problem, as anyone moving from Python 2 to Python 3 will open the file in binary mode. That error message could tell the user to use binary mode newlines=''.

Using textmode and newlines is only likely to happen with people writing new code for Python 3 and not reading the docs, which is a different problem. :-)

----------

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


More information about the Python-bugs-list mailing list