Greg Ewing wrote: > Why do you want to overload based on return type > anyway? > > I don't see any need to do that in the case of > __getitem__. That fits perfectly well into the > usual model of parametric polymorphism -- the > return type is the same as the element type of > the array.
To be even more specific: Slices. arr[1:4] should return a Python object, arr[1] should return a single item of native type. Both calling methods uses __getitem__ in Python. -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
