[issue10515] csv sniffer does not recognize quotes at the end of line

Skip Montanaro report at bugs.python.org
Sun Dec 19 16:55:44 CET 2010


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

Also, this comment in test_csv.py puzzles me:

        # given that all three lines in sample3 are equal,
        # I think that any character could have been 'guessed' as the
        # delimiter, depending on dictionary order

As a human looking at sample3 it's obvious the '?' should
be the delimiter.  I can understand it picking '/' instead,
but it shouldn't punt.  (I stumbled upon this while trying
to make "," be the default delimiter instead of None when
none of the regular expressions matched.)

----------

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


More information about the Python-bugs-list mailing list