[Numpy-discussion] subclassing ndaray

Zachary Pincus zpincus at stanford.edu
Mon Feb 27 22:31:01 CST 2006


> __array_priority__  (a floating point attribute)
> __array_wrap__  (which any class can define to have their objects  
> survive ufuncs)

What do these do again? That is, how are they used internally? What  
happens if they're not used?

If I (or anyone else) is to put together a wiki page about this (see  
the other thread I just emailed to, please), getting good concise  
descriptions of what ndarray subclasses need to do/can do would be  
very helpful.

Zach




More information about the Numpy-discussion mailing list