diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-08-17 07:53:01 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-08-17 07:53:01 +0000 |
commit | a764a203bbe4b26c25457f86ae902e248998bda6 (patch) | |
tree | 1107d440b269a6cfc7025c20990be89306ac134c /numpy/core/numeric.py | |
parent | 9e244f2d5ab9b2a92a46bf8d41daed3258c0f7fb (diff) | |
download | numpy-a764a203bbe4b26c25457f86ae902e248998bda6.tar.gz |
Fix mismatch between tp_name and pickle name so that pickles of scalar types will work.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |