how do you get the name of a dictionary?
Fredrik Lundh
fredrik at pythonware.com
Wed Aug 23 06:16:45 EDT 2006
Steven D'Aprano wrote:
> Here's a traceback. One of the arguments to spam() is too small. Can you
> tell which one just by looking at the traceback?
>
>>>> a, b, c, d = range(4)
>>>> spam(a, b, c, d)
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "<stdin>", line 6, in spam
> File "<stdin>", line 5, in eggs
> File "<stdin>", line 4, in beans
> ValueError: x is too small
>
> Of course you can't. x could be any one of a, b, c or d, and the traceback
> doesn't give you enough information to tell which.
for some reason, your example gives a different error on my machine:
StrawManError: Attempt to construct Reductio ad absurdum argument failed
</F>
More information about the Python-list
mailing list