Mercurial > cpython-lru_cache-weakref
diff Python/errors.c @ 61216:f550ed89398f legacy-trunk
Issue #1533: fix inconsistency in range function argument processing:
any non-float non-integer argument is now converted to an integer (if
possible) using its __int__ method. Previously, only small arguments
were treated this way; larger arguments (those whose __int__ was
outside the range of a C long) would produce a TypeError.
Patch by Alexander Belopolsky (with minor modifications).
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Tue, 04 May 2010 16:18:25 +0000 |
| parents | cf39c5e462f9 |
| children | fd25030223b0 |
