From 3cbec134b8ca1354c78f9a855debf8f659377316 2012-07-21 06:12:21 From: MinRK Date: 2012-07-21 06:12:21 Subject: [PATCH] use brief dtype, rather than full object --- diff --git a/IPython/utils/pickleutil.py b/IPython/utils/pickleutil.py index ed78ada..7c2277e 100644 --- a/IPython/utils/pickleutil.py +++ b/IPython/utils/pickleutil.py @@ -108,7 +108,7 @@ class CannedFunction(CannedObject): class CannedArray(CannedObject): def __init__(self, obj): self.shape = obj.shape - self.dtype = obj.dtype + self.dtype = obj.dtype.descr if obj.dtype.fields else obj.dtype.str if sum(obj.shape) == 0: # just pickle it self.buffers = [pickle.dumps(obj, -1)]