[Numpy-discussion] classmethods for ndarray

Travis Oliphant oliphant at ee.byu.edu
Thu Feb 1 19:50:31 EST 2007


Sebastian Haase wrote:

>Travis,
>Could you explain what a possible downside of this would be !?
>It seems that if you don't need to refer to a specific "self" object
>that a class-method is what it should - is this not always right !?
>
>  
>
I don't understand the last point.   Classmethods would get inherited by 
sub-classes by default, as far as I know.

I can't think of any downsides.  I have to understand how class-methods 
are actually implemented, though before I could comment on speed 
implications of class methods.

-Travis




More information about the NumPy-Discussion mailing list