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>
Wed, 6 Dec 2017 15:51:27 +0000 (10:51 -0500)
commite100fef0a55b507996837f74d1cd2b34c9f8be79
tree8e203350956341bdab55ab48bc3c71db39afa440
parent7e06e400642ed52997c60681631d827332bf67df
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.024218 seconds and 4 git commands to generate.