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

Skip to content

Commit 10116d4

Browse files
committed
note abcs of int and float (closes #11977)
1 parent 13aaef5 commit 10116d4

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ Notes:
353353
for a complete list of code points with the ``Nd`` property.
354354

355355

356-
All :class:`numbers.Real` types (:class:`int` and
357-
:class:`float`) also include the following operations:
356+
All :class:`numbers.Real` types (:class:`int` and :class:`float`) also include
357+
the following operations:
358358

359359
+--------------------+------------------------------------+--------+
360360
| Operation | Result | Notes |
@@ -438,6 +438,9 @@ Notes:
438438
Additional Methods on Integer Types
439439
-----------------------------------
440440

441+
The int type implements the :class:`numbers.Integral` :term:`abstact base
442+
class`. In addition, it provides one more method
443+
441444
.. method:: int.bit_length()
442445

443446
Return the number of bits necessary to represent an integer in binary,
@@ -468,7 +471,8 @@ Additional Methods on Integer Types
468471
Additional Methods on Float
469472
---------------------------
470473

471-
The float type has some additional methods.
474+
The float type implements the :class:`numbers.Real` :term:`abstract base
475+
class`. float also has the following additional methods.
472476

473477
.. method:: float.as_integer_ratio()
474478

0 commit comments

Comments
 (0)