Re: [Numpy-discussion] Continued New Indexing Methods Revival #N (subclasses!)

2016-09-10 Thread Sebastian Berg
On Sa, 2016-09-10 at 12:01 +0200, Sebastian Berg wrote: > Hi all, > > from the discussion, I was thinking maybe something like this: > > class B(): >    def __numpy_getitem__(self, index, indexing_method="plain"): >        # do magic. >        return super().__numpy_getitem__( >    

[Numpy-discussion] Continued New Indexing Methods Revival #N (subclasses!)

2016-09-10 Thread Sebastian Berg
Hi all, from the discussion, I was thinking maybe something like this: class B():    def __numpy_getitem__(self, index, indexing_method="plain"):        # do magic.        return super().__numpy_getitem__( index, indexing_method=indexing_method) as new API. There are some issues,