On Sep 30, 2009, at 20:10, Robert Kern wrote: > array.array() solves these problems if your type is supported. It > follows the > same preallocation strategy as lists. One may create a numpy array > from it > quickly using np.frombuffer().
Using array.array has the (IMO big) advantage that the module is already available in pure Python -- in the standard library, even. (I currently generate plain Python code from my Cython for various purposes, so this would be useful to me, at least :) - M -- Magnus Lie Hetland http://hetland.org _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
