From d2b06fe879f5b2b14de3dad0f517561a0c815df0 Mon Sep 17 00:00:00 2001 From: Allan Haldane Date: Mon, 24 Apr 2017 19:38:59 -0400 Subject: ENH: str/repr fixed for 0d-arrays 0d arrays now use the arrayprint.py formatters to print themselves. Deprecates 'style' argument to array2string. Integer scalars are no longer printed using the function set with ``np.set_print_function``. --- numpy/core/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 6b4a93ce0..1dde02400 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -1936,7 +1936,7 @@ def array_str(a, max_line_width=None, precision=None, suppress_small=None): '[0 1 2]' """ - return array2string(a, max_line_width, precision, suppress_small, ' ', "", str) + return array2string(a, max_line_width, precision, suppress_small, ' ', "") def set_string_function(f, repr=True): -- cgit v1.2.1