commit | ba3e6ec0c9928000e796090b6df70cccd0d6f385 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Sep 19 22:42:41 2005 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Sep 19 22:42:41 2005 +0000 |
tree | e395c4618845a014fcd9db0e212d8505342b309f | |
parent | 3a703b60593e2bc2ddde232eaad365e4c126ff42 [diff] |
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).