def _ilen(obj):
    '''Length of multi-precision int (aka long) in digits.
    '''
    n, i = 1, abs(obj)
    if i > _digitmax:
         # no log(x[, base]) in Python 2.2
        n += int(log(i) * _digitlog)
    return n
Length of multi-precision int (aka long) in digits.
    
recipes/Python/544288_Size_of_Python_objects/recipe-544288.py