Serhiy Storchaka added the comment: In the documentation:
For a general Python object ``number``, ``round(number, ndigits)`` delegates to ``number.__round__(ndigits)``. Mark, is it worth to mention explicitly that round(number) and round(number, None) delegate to number.__round__()? The custom __round__() method should support calling without the argument, but it can not support calling with None. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30940> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com