Author serhiy.storchaka
Recipients George K, docs@python, mark.dickinson, r.david.murray, rhettinger, serhiy.storchaka, steve.dower
Date 2017-07-27.09:34:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1501148065.57.0.601622425505.issue30940@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-07-27 09:34:25serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, mark.dickinson, r.david.murray, docs@python, steve.dower, George K
2017-07-27 09:34:25serhiy.storchakasetmessageid: <1501148065.57.0.601622425505.issue30940@psf.upfronthosting.co.za>
2017-07-27 09:34:25serhiy.storchakalinkissue30940 messages
2017-07-27 09:34:25serhiy.storchakacreate