[Numpy-discussion] Subclassing ndarray in C: getitem ?
Mon Jul 26 11:58:18 CDT 2010
I'm teaching myself how to subclass ndarrays in C (not in Cython, just plain C). It's slowly coming together, but I'm now running into a problem: I need to overwrite __getitem__ and I'm not sure how to do it. I was thinking about using my own function instead of array_as_mapping.mp_subscript, but how do I import array_as_mapping in the first place ? And is it really the way to go ?
Any pointer appreciated...
More information about the NumPy-Discussion