"Rob Andrews" <[EMAIL PROTECTED]> wrote
> Is there a comprehensive list of dictionary KeyError meanings?
I don't understand the question Rob.
A KeyError means the key used wasn't found in the dictionary
What other meanings are you thinking of?
Alan G.
Rob Andrews wrote:
> Is there a comprehensive list of dictionary KeyError meanings?
>
>>> d = {1:2}
>>> d[1]
2
>>> d[2]
KeyError
AFAIK that's it.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Rob Andrews wrote:
> Is there a comprehensive list of dictionary KeyError meanings?
?? AFAIK there is only one meaning for KeyError - the key was not found
in the dict. From the docs: "Raised when a mapping (dictionary) key is
not found in the set of existing keys."
Kent
___
> Is there a comprehensive list of dictionary KeyError meanings?
>
> I could sure use one these days and haven't had much luck tracking one down
> yet.
can you give us an example of what you're looking for? generally:
exception KeyError:
Raised when a mapping (dictionary) key is not found in t
Is there a comprehensive list of dictionary KeyError meanings?
I could sure use one these days and haven't had much luck tracking one down yet.
-Rob
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor