[Python-3000] Using range()

"Martin v. Löwis" martin at v.loewis.de
Thu Apr 24 17:52:26 CEST 2008


> Where is that OverflowError coming from? 

It computes the length of the range, to find out whether the index
is out of range. Computing the length then raises the exception,
as it uses range_length, not range_length_obj.

Regards,
Martin




More information about the Python-3000 mailing list