ValueError from dict - some detail would be helpful

M

metaperl

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

I know that I can do a set difference on the two myself, but since it
know what wasn't there.. why not report it and save me some time?
 
F

Facundo Batista

metaperl said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top