By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,285 Members | 1,691 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,285 IT Pros & Developers. It's quick & easy.

ValueError from dict - some detail would be helpful

P: n/a
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?

Jan 11 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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?

--
.. Facundo
..
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
Jan 12 '07 #2

P: n/a
"Facundo Batista" <fa*****@taniquetil.com.arescribió en el mensaje
news:eo**********@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...70&atid=355470

--
Gabriel Genellina

Jan 13 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.