spell checked
This commit is contained in:
parent
74365f187c
commit
5d0866f8b6
|
@ -13,14 +13,14 @@ Post-History:
|
|||
|
||||
Abstract
|
||||
|
||||
This PEP describes an extension to the builtin divmod() function,
|
||||
This PEP describes an extension to the built-in divmod() function,
|
||||
allowing it to take multiple divisors, chaining several calls to
|
||||
divmod() into one.
|
||||
|
||||
|
||||
Specification
|
||||
|
||||
The builtin divmod() function would be changed to accept multiple
|
||||
The built-in divmod() function would be changed to accept multiple
|
||||
divisors, changing its signature from divmod(dividend, divisor) to
|
||||
divmod(dividend, *divisors). The dividend is divided by the last
|
||||
divisor, giving a quotient and a remainder. The quotient is then
|
||||
|
@ -59,7 +59,7 @@ Motivation
|
|||
|
||||
This is tedious and easy to get wrong each time you need it.
|
||||
|
||||
If instead the divmod() builtin is changed according the proposal,
|
||||
If instead the divmod() built-in is changed according the proposal,
|
||||
the code for converting seconds to weeks, days, hours, minutes and
|
||||
seconds then become
|
||||
|
||||
|
|
Loading…
Reference in New Issue