]> granicus.if.org Git - python/commitdiff
bpo-36625: Remove obsolete comments from docstrings in fractions module (GH-12822)
authorJakub Molinski <jakub@molinski.dev>
Mon, 15 Apr 2019 12:37:04 +0000 (14:37 +0200)
committerMark Dickinson <mdickinson@enthought.com>
Mon, 15 Apr 2019 12:37:04 +0000 (13:37 +0100)
Remove left-over references to Python 3.0 as the future in Fraction class docstrings.

Lib/fractions.py
Misc/ACKS
Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst [new file with mode: 0644]

index 4bbfc434f7d182a9ba4486fae85b59af6de59067..7443bd3e0c6af999d6031b108a4e9374aa8b4384 100644 (file)
@@ -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.
         """
index 5d7181df6794837f666ccd5be5af67122796bd6d..393ea205ac1d769bbf8376caa7ed33e359a8658c 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1099,6 +1099,7 @@ Tim Mitchell
 Zubin Mithra
 Florian Mladitsch
 Doug Moen
+Jakub Molinski
 Juliette Monsel
 The Dragon De Monsyne
 Bastien Montagne
diff --git a/Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst b/Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst
new file mode 100644 (file)
index 0000000..af1a157
--- /dev/null
@@ -0,0 +1 @@
+Remove obsolete comments from docstrings in fractions.Fraction