Message228

Author bckfnn
Recipients
Date 2000-12-22.14:52:30
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
A IndexError cannot be thrown from with a __getitem__() method. It is turned into a KeyError. This is a difference between CPython and Jython.

class Foo:
   def __getitem__(self, i):
       raise IndexError, i
foo = Foo()
foo[1]
History
Date User Action Args
2008-02-20 17:16:46adminlinkissue226677 messages
2008-02-20 17:16:46admincreate