mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Remove references to Py3k in __floor__, __ceil__ and __round__ documentation.
This commit is contained in:
parent
5dce7e9a83
commit
cab7e56e84
1 changed files with 3 additions and 6 deletions
|
@ -65,14 +65,12 @@ Fraction number class.
|
|||
|
||||
.. method:: __floor__()
|
||||
|
||||
Returns the greatest :class:`int` ``<= self``. Will be accessible through
|
||||
:func:`math.floor` in Py3k.
|
||||
Returns the greatest :class:`int` ``<= self``.
|
||||
|
||||
|
||||
.. method:: __ceil__()
|
||||
|
||||
Returns the least :class:`int` ``>= self``. Will be accessible through
|
||||
:func:`math.ceil` in Py3k.
|
||||
Returns the least :class:`int` ``>= self``.
|
||||
|
||||
|
||||
.. method:: __round__()
|
||||
|
@ -81,8 +79,7 @@ Fraction number class.
|
|||
The first version returns the nearest :class:`int` to ``self``, rounding
|
||||
half to even. The second version rounds ``self`` to the nearest multiple
|
||||
of ``Fraction(1, 10**ndigits)`` (logically, if ``ndigits`` is negative),
|
||||
again rounding half toward even. Will be accessible through :func:`round`
|
||||
in Py3k.
|
||||
again rounding half toward even.
|
||||
|
||||
|
||||
.. seealso::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue