[Numpy-discussion] ndarray __getattr__ to perform __getitem__

Ian Stokes-Rees ijstokes@hkl.hms.harvard....
Fri Oct 29 04:59:07 CDT 2010


>> But wouldn't the performance hit only come when I use it in this way?
>> __getattr__ is only called if the named attribute is *not* found (I
>> guess it falls off the end of the case statement, or is the result of
>> the attribute hash table "miss").
> That's why I said that __getattr__ would perhaps work better.


So do you want me to try out an implementation and supply a patch?  If
so, where should I send the patch?

Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ijstokes.vcf
Type: text/x-vcard
Size: 393 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/numpy-discussion/attachments/20101029/69e589be/attachment-0001.vcf 


More information about the NumPy-Discussion mailing list