diff options
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index c56301a08..eb476eb3e 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -425,9 +425,9 @@ def array_repr(arr, max_line_width=None, precision=None, suppress_small=None): typename=arr.dtype.name lf = '' if issubclass(arr.dtype.type, flexible): - typename = str(arr.dtype) + typename = "'%s'" % str(arr.dtype) lf = '\n'+' '*len("array(") - return cName + "(%s, %sdtype='%s')" % (lst, lf, typename) + return cName + "(%s, %sdtype=%s)" % (lst, lf, typename) def array_str(a, max_line_width=None, precision=None, suppress_small=None): return array2string(a, max_line_width, precision, suppress_small, ' ', "", str) |