1111This module provides access to the mathematical functions defined for integer arguments.
1212These functions accept integers and objects that implement the
1313:meth: `~object.__index__ ` method which is used to convert the object to an integer
14- number. They cannot be used with floating-point numbers or complex
15- numbers.
14+ number.
1615
1716The following functions are provided by this module. All return values are
1817computed exactly and are integers.
1918
2019
21- .. function :: comb(n, k)
20+ .. function :: comb(n, k, / )
2221
2322 Return the number of ways to choose *k * items from *n * items without repetition
2423 and without order.
@@ -33,7 +32,7 @@ computed exactly and are integers.
3332 Raises :exc: `ValueError ` if either of the arguments are negative.
3433
3534
36- .. function :: factorial(n)
35+ .. function :: factorial(n, / )
3736
3837 Return factorial of the nonnegative integer *n *.
3938
@@ -47,7 +46,7 @@ computed exactly and are integers.
4746 returns ``0 ``.
4847
4948
50- .. function :: isqrt(n)
49+ .. function :: isqrt(n, / )
5150
5251 Return the integer square root of the nonnegative integer *n *. This is the
5352 floor of the exact square root of *n *, or equivalently the greatest integer
@@ -68,7 +67,7 @@ computed exactly and are integers.
6867 returns ``1 ``.
6968
7069
71- .. function :: perm(n, k=None)
70+ .. function :: perm(n, k=None, / )
7271
7372 Return the number of ways to choose *k * items from *n * items
7473 without repetition and with order.
0 commit comments