• Mark Dickinson's avatar
    Issue #1533: fix inconsistency in range function argument processing: · a8d26688
    Mark Dickinson yazdı
    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).
    a8d26688
test_builtin.py 58.3 KB