summaryrefslogtreecommitdiff
path: root/numpy/doc/glossary.py
diff options
context:
space:
mode:
authorAllan Haldane <allan.haldane@gmail.com>2017-06-29 15:20:00 -0400
committerAllan Haldane <allan.haldane@gmail.com>2017-11-08 19:15:44 -0500
commit2461bc91ba0eb97e66357d6454d1df5836a705cf (patch)
treee742ec6cd9e65940b509ea0e1e8e5fa2e6d159c3 /numpy/doc/glossary.py
parent1368cbb696ae27b849eed67b4fd31c550a55dad5 (diff)
downloadnumpy-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