Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Lib/fractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ Tim Mitchell
Zubin Mithra
Florian Mladitsch
Doug Moen
Jakub Molinski
Juliette Monsel
The Dragon De Monsyne
Bastien Montagne
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove obsolete comments from docstrings in fractions.Fraction