From: <no...@so...> - 2000-12-22 14:52:34
|
Bug #126677, was updated on 2000-Dec-22 06:52 Here is a current snapshot of the bug. Project: Jython Category: Core Status: Open Resolution: None Bug Group: None Priority: 3 Submitted by: bckfnn Assigned to : nobody Summary: Throwing IndexError from __getitem__() Details: 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] For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=126677&group_id=12867 |