← Back to team overview

python-quantities-developers team mailing list archive

Re: proper subclassing

 

Thanks, that is a useful link.

On Sun, Jan 18, 2009 at 10:38 PM, John Salvatier
<jsalvati@xxxxxxxxxxxxxxxx>wrote:

> This might also be useful to look at:
> http://docs.scipy.org/doc/numpy/reference/arrays.classes.html
>
>
> On Sun, Jan 18, 2009 at 7:36 PM, John Salvatier <jsalvati@xxxxxxxxxxxxxxxx
> > wrote:
>
>> On this note, perhaps we should ask somewhere whether anyone has extra
>> information/tips on subclassing numpy. Maybe there is more hidden stuff
>> about. I'm not really sure who to ask.
>>
>> On Sun, Jan 18, 2009 at 7:34 PM, John Salvatier <
>> jsalvati@xxxxxxxxxxxxxxxx> wrote:
>>
>>> I noticed that proper subclassing of ndarray lets us do away with some of
>>> the wrapped numpy functions (basically all the ones that were just copying
>>> over the dimensionality). However, for some reason, round() does not seem to
>>> work this way. I am confused as to why.
>>>
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~python-quantities-developers<https://launchpad.net/%7Epython-quantities-developers>
> Post to     : python-quantities-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~python-quantities-developers<https://launchpad.net/%7Epython-quantities-developers>
> More help   : https://help.launchpad.net/ListHelp
>
>

References