Re: [Numpy-discussion] Subclasses - use of __finalize__

2006-12-18 Thread Pierre GM
On Saturday 16 December 2006 19:55, Colin J. Williams wrote: Colin, First of all, a disclaimer: I'm a (bad) hydrologist, not a computer scientist. I learned python/numpy by playing around, and really got into subclassing since 3-4 months ago. My explanations might not be completely accurate, I'

[Numpy-discussion] Subclasses - use of __finalize__

2006-12-16 Thread Colin J. Williams
Could someone please clarify three of things? Presumably self is the object returned by the __new__ call, for a newly created subclass object or is the object created by some ndarray method? Presumably obj is whatever data was in the call to __new__, which might not be an instance of ndarr