For example, int(float(10**18 - 1)) != 10**18 - 1, but xrange(1, 10**18) is perfectly valid (even in Python 2).