mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Get rid of remnants of integer division
This commit is contained in:
parent
ed483ba63b
commit
bcc0db82dc
28 changed files with 47 additions and 212 deletions
|
@ -140,8 +140,6 @@ class Rat(object):
|
|||
return float(self) / other
|
||||
return NotImplemented
|
||||
|
||||
__div__ = __truediv__
|
||||
|
||||
def __rtruediv__(self, other):
|
||||
"""Divide two Rats, or a Rat and a number (reversed args)."""
|
||||
if isRat(other):
|
||||
|
@ -152,8 +150,6 @@ class Rat(object):
|
|||
return other / float(self)
|
||||
return NotImplemented
|
||||
|
||||
__rdiv__ = __rtruediv__
|
||||
|
||||
def __floordiv__(self, other):
|
||||
"""Divide two Rats, returning the floored result."""
|
||||
if isint(other):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue