bpo-29677: DOC: clarify documentation for round by csabella · Pull Request #877 · python/cpython (original) (raw)

Changed the parameter name fromnumber to x to be consistent with documentation for other numeric functions, such as abs, float, math.floor, and mail.ceil. The use of number seemed to indicate an object from the Number class, which with PEP 3141 was not valid for round since round is implemented for Real and not Complex.

Not sure about this one, but changed the phrase *ndigits* digits to be *ndigits* precision to match the help() text.

Moved the delegation line and expanded it to match the similar line in the float() section since that is the only other built-in over the Real class.