diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-09-23 18:35:46 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-09-23 18:35:46 +0000 |
commit | d0d5a9218ecb31041e9e20807ff2f4ccca0bbbfb (patch) | |
tree | c2560907ec7764ad0e705e7ef49d774925480b0c /numpy/core/numeric.py | |
parent | 61838cf125b8308d152266f3eab2c6815377e862 (diff) | |
download | numpy-d0d5a9218ecb31041e9e20807ff2f4ccca0bbbfb.tar.gz |
Fix ticket #289 plus improve the way array data-types print and arrays represent themselves.
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 19f0c1fb5..c56301a08 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -427,7 +427,7 @@ def array_repr(arr, max_line_width=None, precision=None, suppress_small=None): if issubclass(arr.dtype.type, flexible): typename = 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) |