Why not just show the out-of-range index?

Istvan Albert istvan.albert at gmail.com
Thu Dec 7 10:06:21 EST 2006


Russ wrote:

> The message tells you where the error occurred, but it doesn't tell you
> what the range and the offending index are.

So here is a scenario,

what should happen if by accident one uses a 50Mb string as an index?
Should it be displayed?

i.




More information about the Python-list mailing list