Found shorthand for constructing dtype str (thanks, Zach!).

This commit is contained in:
Stefan van der Walt
2010-05-14 15:53:27 +02:00
parent 13199840cd
commit 01dca4ef5f
@@ -299,7 +299,7 @@ def _wrap_bitmap_bits_in_array(bitmap, shape, dtype):
__array_interface__ = {
'data': (bits, False),
'strides': strides,
'typestr': dtype.byteorder + dtype.kind + str(dtype.itemsize),
'typestr': dtype.str,
'shape': tuple(shape),
}