This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients George K, docs@python, mark.dickinson, r.david.murray, rhettinger, serhiy.storchaka, steve.dower
Date 2017-07-27.17:08:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1501175327.11.0.429124196613.issue30940@psf.upfronthosting.co.za>
In-reply-to
Content
[Serhiy]
> is it worth to mention explicitly that round(number) and round(number, None) > delegate to number.__round__()?

Yes, if we can find a non-clunky wording that does that. The current wording does seem to misleadingly suggest that the delegation to `__round__` only happens for the two-argument version of round.

How about just:

> For a general Python object ``number``, ``round`` delegates to
> ``number.__round__``.
History
Date User Action Args
2017-07-27 17:08:47mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, r.david.murray, docs@python, serhiy.storchaka, steve.dower, George K
2017-07-27 17:08:47mark.dickinsonsetmessageid: <1501175327.11.0.429124196613.issue30940@psf.upfronthosting.co.za>
2017-07-27 17:08:47mark.dickinsonlinkissue30940 messages
2017-07-27 17:08:47mark.dickinsoncreate