summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-09-25 16:26:43 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-09-25 16:26:43 +0000
commit25b594e5332f1f9bff3908f97bf45436b36a129b (patch)
tree4417ad283320f6a3a014c1194c509dbdd0f8e0af /numpy/core/numeric.py
parent46bd2a34e3006a5047d637543f472893e418462f (diff)
downloadnumpy-25b594e5332f1f9bff3908f97bf45436b36a129b.tar.gz
Fix back repr of arrays to not have quote unless flexible.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py4
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)