diff options
author | Allan Haldane <allan.haldane@gmail.com> | 2017-06-29 15:20:00 -0400 |
---|---|---|
committer | Allan Haldane <allan.haldane@gmail.com> | 2017-11-08 19:15:44 -0500 |
commit | 2461bc91ba0eb97e66357d6454d1df5836a705cf (patch) | |
tree | e742ec6cd9e65940b509ea0e1e8e5fa2e6d159c3 /numpy/doc/glossary.py | |
parent | 1368cbb696ae27b849eed67b4fd31c550a55dad5 (diff) | |
download | numpy-2461bc91ba0eb97e66357d6454d1df5836a705cf.tar.gz |
ENH: fix 0d array printing using `str` or `formatter`.
The str of 0d arrays now returns `str(a[()])` like scalars, and the
repr returns `'array(' + formatter(a[()]) + ')'` like ndarrays.
The default implementation of str and repr for user-defined types is
removed. Fixes #1415
Diffstat (limited to 'numpy/doc/glossary.py')
0 files changed, 0 insertions, 0 deletions