Re: [Tutor] KeyError list?

2007-08-15 Thread Alan Gauld
"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.

Re: [Tutor] KeyError list?

2007-08-15 Thread bob gailer
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

Re: [Tutor] KeyError list?

2007-08-15 Thread Kent Johnson
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 ___

Re: [Tutor] KeyError list?

2007-08-15 Thread wesley chun
> 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

[Tutor] KeyError list?

2007-08-15 Thread Rob Andrews
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