[issue15639] csv.Error description is incorrectly broad

2016-08-05 Thread Berker Peksag
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

[issue15639] csv.Error description is incorrectly broad

2012-08-14 Thread Xavier Morel
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

[issue15639] csv.Error description is incorrectly broad

2012-08-13 Thread Xavier Morel
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