Skip to content

Commit 5599504

Browse files
Apply suggestions from code review
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent 835a46c commit 5599504

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Doc/library/math.integer.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@
1111
This module provides access to the mathematical functions defined for integer arguments.
1212
These 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

1716
The following functions are provided by this module. All return values are
1817
computed 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

Comments
 (0)