On 30 September 2012 22:38, Gregory P. Smith <greg@krypto.org> wrote:
Why suggest adding new round-like functions to the math module rather than defining a new round method on all numerical objects?

 >>> round("")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: type str doesn't define __round__ method

It seems it is done like that already ;)
This seems like a problem for the proposal, though: we can't have it in the math library if it's a method!