Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3b367f

Browse files
jseaboldcertik
authored andcommitted
BUG: Use numpystr for arrayprint fallback instead of str
1 parent f5d883c commit b3b367f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

numpy/core/arrayprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def _array2string(a, max_line_width, precision, suppress_small, separator=' ',
308308
elif issubclass(dtypeobj, _nt.datetime64):
309309
format_function = formatdict['datetime']
310310
else:
311-
format_function = formatdict['str']
311+
format_function = formatdict['numpystr']
312312

313313
# skip over "["
314314
next_line_prefix = " "

0 commit comments

Comments
 (0)