Commit af7b47bd authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Implement more informative __repr__ function for vector types

parent 8f91834e
......@@ -1675,6 +1675,7 @@ vector_types = [Vector_bool, Vector_int32_t, Vector_int64_t, Vector_double,
for vt in vector_types:
vt.a = property(_get_array_view, _set_array_view,
doc=r"""Shortcut to the `get_array` method as an attribute.""")
vt.__repr__ = lambda self: self.a.__repr__()
Vector_string.a = None
Vector_string.get_array = lambda self: None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment