diff options
author | Shota Kawabuchi <shota.kawabuchi+Github@gmail.com> | 2016-10-15 21:56:24 +0900 |
---|---|---|
committer | Shota Kawabuchi <shota.kawabuchi+Github@gmail.com> | 2016-10-18 13:03:18 +0900 |
commit | 3d75c3f5165d958ff109a4f877aeb18d77ce279f (patch) | |
tree | cda6eed31b8c9e24ea551d64759590aaf20269da /numpy/add_newdocs.py | |
parent | b8da06bdc44b3481f9e0e17d6ff24e79176eed7c (diff) | |
download | numpy-3d75c3f5165d958ff109a4f877aeb18d77ce279f.tar.gz |
BUG: fix _array2string for strustured array (issue #5692)
The cause of issue #5692 is that `_array2string` (in
numpy/core/arrayprint.py) doesn’t have format function for structured
arrays and it uses general purpose format function to format array
elements of structured arrays.
This commit adds `StructureFormat` class to format structured array
elements. `_get_format_function` instantiates `StructureFormat` by
instantiating format function classes for each field of structure
recursively and merge them.
Closes #5692.
Diffstat (limited to 'numpy/add_newdocs.py')
0 files changed, 0 insertions, 0 deletions