Dictionary record is truncated when printing
What you're seeing is a difference between what is printed when the __str__
method is invoked vs when the __repr__
is invoked.
An example:
In [816]: print 0.010000000000000231
0.01
In [817]: print repr(0.010000000000000231)
0.010000000000000231
The reason for this difference is because str
attempts to truncate the number in python2.
This is changed in python3, and the str
and repr
behave consistently.