[Numpy-discussion] str/bytes object from arr.data?
Francesc Alted
faltet at pytables.org
Mon Sep 27 13:24:03 EDT 2010
A Monday 27 September 2010 15:04:14 Zachary Pincus escrigué:
> As str objects are supposed to be immutable, I think anything
> "official" that makes a string from a numpy array is supposed to copy
> the data. But I think you can use ctypes to wrap a pointer and a
> length as a python string.
Yeah, ctypes is very powerful indeed. Thanks!
--
Francesc Alted
More information about the NumPy-Discussion
mailing list