[issue26223] decimal.to_eng_string() does not implement engineering notation in all cases.
Keith Brafford
report at bugs.python.org
Fri Aug 12 17:15:01 EDT 2016
Keith Brafford added the comment:
Serge, I wrote this awhile back, before I learned you aren't supposed to subclass built-in types. Is this the type of effect you're looking for?
https://gist.github.com/kbrafford/da39e06d18b6df2a07777eecb4493699
Here's an example using it:
https://gist.github.com/kbrafford/e0115e796890fcefb4f0c35248bd05f1
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26223>
_______________________________________
More information about the Python-bugs-list
mailing list