[Numpy-discussion] attributes of scalar types - e.g. numpy.int32.itemsize
Charles R Harris
charlesr.harris at gmail.com
Sat Aug 26 21:03:42 CDT 2006
Hi,
On 8/18/06, Sebastian Haase <haase at msg.ucsf.edu> wrote:
<snip>
Thanks, that seems to be a handy "dictionary-like object"
>
> Just for the record - in the meantime I found this:
> >>> N.dtype(N.int32).itemsize
> 4
And on x86_64 linux python ints are 8 bytes.
In [15]: asarray([1])[0].itemsize
Out[15]: 8
Interesting. Looks like one needs to be careful about the builtin python
types.
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060826/31d22d6b/attachment-0001.html
More information about the Numpy-discussion
mailing list