]> granicus.if.org Git - python/commit
Make int() and long() fall back to __trunc__(). See issue 2002.
authorJeffrey Yasskin <jyasskin@gmail.com>
Mon, 4 Feb 2008 01:04:35 +0000 (01:04 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Mon, 4 Feb 2008 01:04:35 +0000 (01:04 +0000)
commita26cf9b7609fc1c08fd1a69ddf5e44dc98a70dce
tree6950856bc7823c7907e4546d4920a59724424062
parent72a6576279b81213c426d1022ddc97f30a698636
Make int() and long() fall back to __trunc__(). See issue 2002.
Include/abstract.h
Lib/rational.py
Lib/test/test_builtin.py
Objects/abstract.c
Objects/classobject.c