From d8f2b33396ae57a6ed37d3d77b2c9de673b3d1cb 2012-06-25 03:42:06 From: MinRK Date: 2012-06-25 03:42:06 Subject: [PATCH] include dtype itself in metadata, not str representation which is totally wrong for recarrays --- diff --git a/IPython/utils/newserialized.py b/IPython/utils/newserialized.py index b960b16..c3336c7 100644 --- a/IPython/utils/newserialized.py +++ b/IPython/utils/newserialized.py @@ -110,7 +110,7 @@ class SerializeIt(object): self.obj = numpy.ascontiguousarray(self.obj, dtype=None) self.typeDescriptor = 'ndarray' self.metadata = {'shape':self.obj.shape, - 'dtype':self.obj.dtype.str} + 'dtype':self.obj.dtype} elif isinstance(self.obj, bytes): self.typeDescriptor = 'bytes' self.metadata = {}