]> granicus.if.org Git - python/commit
A minor fix for 64-bit platforms: when __len__() returns Python int
authorGuido van Rossum <guido@python.org>
Mon, 19 Sep 2005 22:42:41 +0000 (22:42 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 19 Sep 2005 22:42:41 +0000 (22:42 +0000)
commitba3e6ec0c9928000e796090b6df70cccd0d6f385
treee395c4618845a014fcd9db0e212d8505342b309f
parent3a703b60593e2bc2ddde232eaad365e4c126ff42
A minor fix for 64-bit platforms: when __len__() returns Python int
containing a value that doesn't fit in a C int, raise OverflowError
rather than truncating silently (and having 50% chance of hitting the
"it should be >= 0" error).
Objects/classobject.c