ValueError from dict - some detail would be helpful

Facundo Batista facundo at
Fri Jan 12 16:46:32 CET 2007

metaperl wrote:

>   File "/sw/lib/python2.5/", 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

More information about the Python-list mailing list