[Numpy-discussion] Inconsistent type name formatting.
Charles R Harris
charlesr.harris@gmail....
Sat Mar 24 15:17:07 CDT 2012
Example:
In [40]: array([1, 2], dtype('>l')).dtype
Out[40]: dtype('>i8')
In [41]: array([1, 2], dtype('<l')).dtype
Out[41]: dtype('int64')
In [42]: array([1, 2], dtype('>q')).dtype
Out[42]: dtype('>i8')
In [43]: array([1, 2], dtype('<q')).dtype
Out[43]: dtype('int64')
In [44]: array([1, 2], dtype('>M8[D]')).dtype
Out[44]: dtype('>M8[D]')
In [45]: array([1, 2], dtype('<M8[D]')).dtype
Out[45]: dtype('<M8[D]')
I rather like the '>i8' form with '<' if appropriate, although it's
probably a bit late to do anything about it. The datetime requires a patch
to generate the swapped form. Long term, it might be good to strive for
consistency. Thoughts?
Chuck.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120324/dfb7e715/attachment.html
More information about the NumPy-Discussion
mailing list