Message2502
I was able to repair this slice anomaly by altering
the PyInstance class.
I made the following repairs:
Line 600: Added within the catch block:
return invoke("__getitem__", key);
Line 618: Added the try/catch block:
try {
PyObject ret = trySlice
(key, "__getslice__", null);
if (ret != null)
return ret;
} catch (PyException e){
return invoke("__getitem__", key);
}
When __getattr__('__getslice__') raises ANY error,
__getitem__ is invoked as requested. |
|
Date |
User |
Action |
Args |
2008-02-20 17:18:32 | admin | link | issue1505666 messages |
2008-02-20 17:18:32 | admin | create | |
|