Serhiy Storchaka added the comment: Here is a patch.
>>> list(csv.reader(['foo,"'])) [['foo', '']] >>> list(csv.reader(['foo,"'], strict=1)) Traceback (most recent call last): File "<stdin>", line 1, in <module> _csv.Error: unexpected end of data >>> list(csv.reader(['foo,^'], escapechar='^')) [['foo', '\n']] >>> list(csv.reader(['foo,^'], escapechar='^', strict=1)) Traceback (most recent call last): File "<stdin>", line 1, in <module> _csv.Error: unexpected end of data Is it good? ---------- keywords: +patch Added file: http://bugs.python.org/file27283/csv_eof-3.3.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16013> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com