summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Molinski <jakub@molinski.dev>2019-04-15 12:37:04 (GMT)
committerMark Dickinson <mdickinson@enthought.com>2019-04-15 12:37:04 (GMT)
commita9a28808e5a03d2e68e421227c113a38edc40946 (patch)
treefe3bb0ad9555b19d11bcc8fb6af75da962c58a30
parent3c7931e514faf509a39c218c2c9f55efb434628f (diff)
downloadcpython-a9a28808e5a03d2e68e421227c113a38edc40946.zip
cpython-a9a28808e5a03d2e68e421227c113a38edc40946.tar.gz
cpython-a9a28808e5a03d2e68e421227c113a38edc40946.tar.bz2
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.
-rw-r--r--Lib/fractions.py6
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst1
3 files changed, 5 insertions, 3 deletions
diff --git a/Lib/fractions.py b/Lib/fractions.py
index 4bbfc43..7443bd3 100644
--- a/Lib/fractions.py
+++ b/Lib/fractions.py
@@ -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.
"""
diff --git a/Misc/ACKS b/Misc/ACKS
index 5d7181d..393ea20 100644
--- 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
index 0000000..af1a157
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst
@@ -0,0 +1 @@
+Remove obsolete comments from docstrings in fractions.Fraction