Kaydet (Commit) a9a28808 authored tarafından Jakub Molinski's avatar Jakub Molinski Kaydeden (comit) Mark Dickinson

bpo-36625: Remove obsolete comments from docstrings in fractions module (GH-12822)

Remove left-over references to Python 3.0 as the future in Fraction class docstrings.
üst 3c7931e5
......@@ -512,16 +512,16 @@ class Fraction(numbers.Rational):
return a._numerator // a._denominator
def __floor__(a):
"""Will be math.floor(a) in 3.0."""
"""math.floor(a)"""
return a.numerator // a.denominator
def __ceil__(a):
"""Will be math.ceil(a) in 3.0."""
"""math.ceil(a)"""
# The negations cleverly convince floordiv to return the ceiling.
return -(-a.numerator // a.denominator)
def __round__(self, ndigits=None):
"""Will be round(self, ndigits) in 3.0.
"""round(self, ndigits)
Rounds half toward even.
"""
......
......@@ -1099,6 +1099,7 @@ Tim Mitchell
Zubin Mithra
Florian Mladitsch
Doug Moen
Jakub Molinski
Juliette Monsel
The Dragon De Monsyne
Bastien Montagne
......
Remove obsolete comments from docstrings in fractions.Fraction
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment