[Python-checkins] bpo-36625: Remove obsolete comments from docstrings in fractions module (GH-12822)
Mark Dickinson
webhook-mailer at python.org
Mon Apr 15 08:37:13 EDT 2019
https://github.com/python/cpython/commit/a9a28808e5a03d2e68e421227c113a38edc40946
commit: a9a28808e5a03d2e68e421227c113a38edc40946
branch: master
author: Jakub Molinski <jakub at molinski.dev>
committer: Mark Dickinson <mdickinson at enthought.com>
date: 2019年04月15日T13:37:04+01:00
summary:
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.
files:
A Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst
M Lib/fractions.py
M Misc/ACKS
diff --git a/Lib/fractions.py b/Lib/fractions.py
index 4bbfc434f7d1..7443bd3e0c6a 100644
--- a/Lib/fractions.py
+++ b/Lib/fractions.py
@@ -512,16 +512,16 @@ def __trunc__(a):
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 5d7181df6794..393ea205ac1d 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 000000000000..af1a15733249
--- /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
More information about the Python-checkins
mailing list