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

Travis Oliphant oliphant at ee.byu.edu
Tue Jul 11 18:43:09 CDT 2006

Filip Wasilewski wrote:

>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..


More information about the Numpy-discussion mailing list