summaryrefslogtreecommitdiff
path: root/Lib/rational.py
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@gmail.com>2008-02-04 01:04:35 +0000
committerJeffrey Yasskin <jyasskin@gmail.com>2008-02-04 01:04:35 +0000
commita26cf9b7609fc1c08fd1a69ddf5e44dc98a70dce (patch)
tree6950856bc7823c7907e4546d4920a59724424062 /Lib/rational.py
parent72a6576279b81213c426d1022ddc97f30a698636 (diff)
downloadcpython-git-a26cf9b7609fc1c08fd1a69ddf5e44dc98a70dce.tar.gz
Make int() and long() fall back to __trunc__(). See issue 2002.
Diffstat (limited to 'Lib/rational.py')
-rwxr-xr-xLib/rational.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/rational.py b/Lib/rational.py
index c76cba3d07..dcdaad494b 100755
--- a/Lib/rational.py
+++ b/Lib/rational.py
@@ -424,8 +424,6 @@ class Rational(RationalAbc):
else:
return a.numerator // a.denominator
- __int__ = __trunc__
-
def __hash__(self):
"""hash(self)