Berker Peksag added the comment:
Thanks for the report.
Most of the csv.Error usages are in Modules/_csv.c. You can search for
"_csvstate_global->error_obj" in the module's source code. I think the
documentation is correct as is.
--
nosy: +berker.peksag
resolution: -> not a bug
Xavier Morel added the comment:
Correction: csv also seems to raise csv.Error if the file contains NUL bytes:
Error: line contains NULL byte
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15639
New submission from Xavier Morel:
In both Python 2.7 and Python 3.x, csv.Error is documented as:
Raised by any of the functions when an error is detected.
As far as I can tell from using the module and looking at the code, this is
completely incorrect. There is actually a single instance