Message299326
[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__``. |
|
Date |
User |
Action |
Args |
2017-07-27 17:08:47 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, r.david.murray, docs@python, serhiy.storchaka, steve.dower, George K |
2017-07-27 17:08:47 | mark.dickinson | set | messageid: <1501175327.11.0.429124196613.issue30940@psf.upfronthosting.co.za> |
2017-07-27 17:08:47 | mark.dickinson | link | issue30940 messages |
2017-07-27 17:08:47 | mark.dickinson | create | |
|