mirror of
https://github.com/python/cpython.git
synced 2025-11-18 18:31:56 +00:00
note abcs of int and float (closes #11977)
This commit is contained in:
parent
97cf585f4b
commit
17ebbdb73e
1 changed files with 5 additions and 1 deletions
|
|
@ -460,6 +460,9 @@ Notes:
|
|||
Additional Methods on Integer Types
|
||||
-----------------------------------
|
||||
|
||||
The int type implements the :class:`numbers.Integral` :term:`abstact base
|
||||
class`. In addition, it provides one more method
|
||||
|
||||
.. method:: int.bit_length()
|
||||
.. method:: long.bit_length()
|
||||
|
||||
|
|
@ -491,7 +494,8 @@ Additional Methods on Integer Types
|
|||
Additional Methods on Float
|
||||
---------------------------
|
||||
|
||||
The float type has some additional methods.
|
||||
The float type implements the :class:`numbers.Real` :term:`abstract base
|
||||
class`. float also has the following additional methods.
|
||||
|
||||
.. method:: float.as_integer_ratio()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue