Message2502

Author juneau001
Recipients
Date 2006-06-13.21:18:26
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2008-02-20 17:18:32adminlinkissue1505666 messages
2008-02-20 17:18:32admincreate