[issue1225769] Proposal to implement comment rows in csv module

Andrew McNamara report at bugs.python.org
Thu Feb 4 05:05:38 CET 2010


Andrew McNamara <andrewm at object-craft.com.au> added the comment:

Note that there is one case that cannot easily be addressed via pre-processing: where the comment character coincidently appears at the start of a line within a multi-line quoted field. For example:

# This is a comment
1, 2, "This is field^M
#3"

What this should produce is debatable, but it would be hard to make it produce:

  ["1", "2", "This is field^M#3"]

without implementing it within the parser.

----------

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


More information about the Python-bugs-list mailing list