[Python-ideas] Deprecate the round builtin
dickinsm at gmail.com
Wed Sep 26 21:22:19 CEST 2012
On Wed, Sep 26, 2012 at 7:51 PM, Mike Graham <mikegraham at gmail.com> wrote:
> The builtin round function is completely useless. I've never seen
> anyone use it constructively
I disagree that it's *completely* useless: the one-argument form
(take a float, return the closest integer) is a fundamental and useful
mathematics operation, just like floor and ceiling. It would be crazy
to get rid of that. I could live with it moving from builtins into
the math module, though.
Agreed that the two-argument form causes a lot of confusion, though.
More information about the Python-ideas