ValueError from dict - some detail would be helpful
Gabriel Genellina
gagsl-py at yahoo.com.ar
Sat Jan 13 09:55:30 EST 2007
"Facundo Batista" <facundo at taniquetil.com.ar> escribió en el mensaje
news:eo8agn$5au$1 at sea.gmane.org...
> metaperl wrote:
>
>> File "/sw/lib/python2.5/csv.py", line 120, in _dict_to_list
>> raise ValueError, "dict contains fields not in fieldnames"
>>
>>
>> --- it would be nice if it said what field it was
>
> Yeap, nice and useful... but, for example, what'd happen if the fields
> that are not in fieldnames are 10, or 100? How the message could be?
The code inside _dict_to_list currently just stops at the first unknown key.
Just report that - much better than nothing.
http://sourceforge.net/tracker/index.php?func=detail&aid=1634717&group_id=5470&atid=355470
--
Gabriel Genellina
More information about the Python-list
mailing list