diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-01-20 22:28:02 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-20 22:28:02 +0000 |
commit | f3a4e8ff8d76dbadd59d4d4e2efc359d3b2db091 (patch) | |
tree | f15dcf18a2992a04fc08bd5b512860b710612f04 /numpy/core/numeric.py | |
parent | 97f03d64d86f6d7a7c9135c44ef97baf17e6ce15 (diff) | |
download | numpy-f3a4e8ff8d76dbadd59d4d4e2efc359d3b2db091.tar.gz |
Fix str representation for rank-0 arrays
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 bdf087dcb..5e4e0b864 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -241,7 +241,7 @@ def array_repr(arr, max_line_width=None, precision=None, suppress_small=None): return cName + "(%s, dtype=%s)" % (lst, typename) def array_str(a, max_line_width=None, precision=None, suppress_small=None): - return array2string(a, max_line_width, precision, suppress_small, ' ', "") + return array2string(a, max_line_width, precision, suppress_small, ' ', "", str) set_string_function = multiarray.set_string_function set_string_function(array_str, 0) |