Implement __repr__ instead of __str__ for _NumericField
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 23 Nov 2017 19:41:25 +0000 (14:41 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 23 Nov 2017 20:16:42 +0000 (15:16 -0500)
commit5abb9e3309c1aa2b622daebd9bea9da67a6554b8
tree6ae803c2fab0ce04e66c1f760a6de2a40b5f5123
parent2bc21382c642001d2df391b20f2f29b33deabae1
Implement __repr__ instead of __str__ for _NumericField

__repr__ provides a generic fallback for __str__ and, in the
case of IntegerFields the representation is both human readable
and unambiguous.

Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bindings/python/bt2/bt2/fields.py
This page took 0.024028 seconds and 4 git commands to generate.