|
From: nobody <no...@so...> - 2001-03-05 19:57:59
|
Bugs #226677, was updated on 2000-12-22 06:52 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=226677&group_id=12867 Category: Core Group: None Status: Closed Priority: 3 Submitted By: Finn Bock Assigned to: Nobody/Anonymous Summary: Throwing IndexError from __getitem__() Initial Comment: 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] ---------------------------------------------------------------------- Comment By: Finn Bock Date: 2001-03-05 11:59 Message: Logged In: YES user_id=4201 Fixed in PyInstance.java: 2.21; ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=226677&group_id=12867 |