From a764a203bbe4b26c25457f86ae902e248998bda6 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Thu, 17 Aug 2006 07:53:01 +0000 Subject: Fix mismatch between tp_name and pickle name so that pickles of scalar types will work. --- numpy/core/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 8099a1273..b28d13bde 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -328,7 +328,7 @@ def array_repr(arr, max_line_width=None, precision=None, suppress_small=None): if typeless and arr.size: return cName + "(%s)" % lst else: - typename=arr.dtype.type.__name__[:-6] + typename=arr.dtype.name lf = '' if issubclass(arr.dtype.type, flexible): typename = str(arr.dtype) -- cgit v1.2.1