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

Hendrik van Rooyen mail at microcorp.co.za
Fri Dec 8 00:40:41 EST 2006


\ "Istvan Albert" <istvan.albert at gmail.com> wrote:


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

It is my opinion that yes, the first 40Mb or so should be displayed, as a lesson
to the perpetrator, and to help him find the error.

Displaying 50 Mb is obviously ridiculous.

- Hendrik




More information about the Python-list mailing list