[issue7198] Extraneous newlines with csv.writer on Windows

Skip Montanaro report at bugs.python.org
Sun Mar 20 15:55:28 CET 2011


Skip Montanaro <skip at pobox.com> added the comment:

John> Skip, The changes that I suggested have NOT been made. Please
    John> re-read the doc page you pointed to. The "writer" paragraph does
    John> NOT mention that newline='' is required when writing. The "writer"
    John> examples do NOT include newline=''. The examples have NOT been
    John> enhanced by using a "with" statement and not using space as an
    John> example delimiter.

I copied the statement about using newline= from the reader() doc to the
writer() doc.  All the examples I see (I'm looking at the cpython repo -
that is, what will be 3.3) use the with statement and open files using
newline=''.  I don't think more changes are necessary.  I will consult with
other Python developers about merging these changes to other active
branches.  I simply don't understand the new Mercurial workflow well enough
to do it properly.

Skip

----------

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


More information about the Python-bugs-list mailing list