Bugs item #1216831, was opened at 2005-06-07 21:42 Message generated for change (Settings changed) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1216831&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: None >Status: Closed >Resolution: Invalid Priority: 5 Submitted By: Mary Gardiner (hypatia) Assigned to: Nobody/Anonymous (nobody) Summary: csv module sometimes raises _csv.Error Initial Comment: Tested on 2.3 (Fedora Core 3) and 2.4 (Ubuntu 5.04). The documentation strongly suggests that the csv module raises csv.Error when there are problems parsing the csv, but in fact it sometimes lets _csv.Error escape the C module, as per this example: >>> import csv, StringIO >>> r = csv.reader(StringIO.StringIO('"xx,qq')) >>> r.next() Traceback (most recent call last): File "<stdin>", line 1, in ? _csv.Error: newline inside string ---------------------------------------------------------------------- >Comment By: Skip Montanaro (montanaro) Date: 2005-06-07 21:52 Message: Logged In: YES user_id=44345 csv.Error and _csv.Error are the same object. The object is defined in the low level _csv module, then imported into the csv module. That the name is "_csv.Error" can't be changed in the context of the csv module. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1216831&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com