[issue41598] Adding support for rounding modes to builtin round
Raymond Hettinger
report at bugs.python.org
Wed Aug 26 01:02:27 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Like Mark, I'm not convinced this is a good idea.
Outside of finance calculations which typically already use decimal, the need for it is somewhat rare. Also, the API doesn't fit neatly with existing the __round__ dunder methods, so the new feature couldn't be made to work with existing classes.
If you want to pursue this, I recommend taking it to python-ideas.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41598>
_______________________________________
More information about the Python-bugs-list
mailing list