Skip to content

Commit

Permalink
Fix str representation for rank-0 arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
teoliphant committed Jan 20, 2006
1 parent 97f03d6 commit f3a4e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f3a4e8f

Please sign in to comment.