
23 Jul
2008
23 Jul
'08
1:23 p.m.
Hi all,
I noticed that subclasses are not represented correctly:
In [8]: np.chararray([1, 2, 3]) Out[8]: chararray([[['\x03', '', ''], ['\xc0', '\x03', '']]], dtype='|S1')
Notice how the indentation of the second row is completely wrong.
I tried to fix this in array_repr_builtin (arrayobject.c:4318), but the fix had no impact. `array_repr_builtin` is not called unless preceded by
np.set_string_function(None, repr=1)
Does anybody know where the right place is to fix the representation?
Thanks Stéfan
5355
Age (days ago)
5355
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stéfan van der Walt