[Numpy-discussion] Array interface and builtin array.array example

Travis Oliphant oliphant at ee.byu.edu
Tue Jul 11 19:43:09 EDT 2006


Filip Wasilewski wrote:

>Hi,
>
>the way of accessing data with __array_interface__, as shown by Travis
>in [1], also works nicely when used with builtin array.array (if someone
>here is still using it;).
>
>Time to convert array.array to ndarray is O(N) but can be made O(1) just
>by simple subclassing.
>
>[1] http://aspn.activestate.com/ASPN/Mail/Message/numpy-discussion/3191164
>
>  
>
This is exactly the kind of thing I'd like to see get into Python.  
Thanks for picking up the ball..


-Travis





More information about the NumPy-Discussion mailing list