diff options
author | Jeffrey Yasskin <jyasskin@gmail.com> | 2008-02-04 01:04:35 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@gmail.com> | 2008-02-04 01:04:35 +0000 |
commit | a26cf9b7609fc1c08fd1a69ddf5e44dc98a70dce (patch) | |
tree | 6950856bc7823c7907e4546d4920a59724424062 /Lib/rational.py | |
parent | 72a6576279b81213c426d1022ddc97f30a698636 (diff) | |
download | cpython-git-a26cf9b7609fc1c08fd1a69ddf5e44dc98a70dce.tar.gz |
Make int() and long() fall back to __trunc__(). See issue 2002.
Diffstat (limited to 'Lib/rational.py')
-rwxr-xr-x | Lib/rational.py | 2 |
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) |