[ python-Bugs-1216831 ] csv module sometimes raises _csv.Error
SourceForge.net
noreply at sourceforge.net
Wed Jun 8 04:42:38 CEST 2005
Bugs item #1216831, was opened at 2005-06-08 02:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1216831&group_id=5470
More information about the Python-bugs-list
mailing list