Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74f3669

Browse files
committed
Use consistent note numbers.
1 parent a6fa272 commit 74f3669

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ numeric operations have a higher priority than comparison operations):
303303
+---------------------+---------------------------------+-------+--------------------+
304304
| ``int(x)`` | *x* converted to integer | \(3) | :func:`int` |
305305
+---------------------+---------------------------------+-------+--------------------+
306-
| ``float(x)`` | *x* converted to floating point | \(6) | :func:`float` |
306+
| ``float(x)`` | *x* converted to floating point | \(4) | :func:`float` |
307307
+---------------------+---------------------------------+-------+--------------------+
308308
| ``complex(re, im)`` | a complex number with real part | | :func:`complex` |
309309
| | *re*, imaginary part *im*. | | |
@@ -314,9 +314,9 @@ numeric operations have a higher priority than comparison operations):
314314
+---------------------+---------------------------------+-------+--------------------+
315315
| ``divmod(x, y)`` | the pair ``(x // y, x % y)`` | \(2) | :func:`divmod` |
316316
+---------------------+---------------------------------+-------+--------------------+
317-
| ``pow(x, y)`` | *x* to the power *y* | (7) | :func:`pow` |
317+
| ``pow(x, y)`` | *x* to the power *y* | (5) | :func:`pow` |
318318
+---------------------+---------------------------------+-------+--------------------+
319-
| ``x ** y`` | *x* to the power *y* | (7) | |
319+
| ``x ** y`` | *x* to the power *y* | (5) | |
320320
+---------------------+---------------------------------+-------+--------------------+
321321

322322
.. index::
@@ -347,11 +347,11 @@ Notes:
347347
as in C; see functions :func:`floor` and :func:`ceil` in the :mod:`math` module
348348
for well-defined conversions.
349349

350-
(6)
350+
(4)
351351
float also accepts the strings "nan" and "inf" with an optional prefix "+"
352352
or "-" for Not a Number (NaN) and positive or negative infinity.
353353

354-
(7)
354+
(5)
355355
Python defines ``pow(0, 0)`` and ``0 ** 0`` to be ``1``, as is common for
356356
programming languages.
357357

0 commit comments

Comments
 (0)