This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mkleehammer
Recipients
Date 2006-08-04.14:40:26
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
It would be very helpful to add more information to the
IndexErrors raised by the built-in classes.

Today, these errors look like:

  IndexError: list index out of range

When these occur, I usually have to add print
statements before the error and reproduce the problem
to determine what has gone wrong.  

If the list and tuple classes add the requested index
and the length of the structure, it would help a lot. 
Below is a suggestion:

  IndexError: list index 30 out of range; len=27

History
Date User Action Args
2008-01-20 09:59:49adminlinkissue1534607 messages
2008-01-20 09:59:49admincreate