[issue2690] Precompute range length

Mark Dickinson report at bugs.python.org
Fri Apr 25 18:55:20 CEST 2008


Mark Dickinson <dickinsm at gmail.com> added the comment:

So with this patch, range(10**100) produces an OverflowError:  is that 
right?

I don't much like this aspect of the change:   there are uses for

for i in range(ridiculously_large_number):
   ...
   if condition_that_occurs_early_in_practice:
       break

----------
nosy: +marketdickinson

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2690>
__________________________________


More information about the Python-bugs-list mailing list