[ python-Feature Requests-1534607 ] IndexError: Add bad index to msg
SourceForge.net
noreply at sourceforge.net
Fri Aug 4 16:40:26 CEST 2006
Feature Requests item #1534607, was opened at 2006-08-04 09:40
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1534607&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.6
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Kleehammer (mkleehammer)
Assigned to: Nobody/Anonymous (nobody)
Summary: IndexError: Add bad index to msg
Initial Comment:
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1534607&group_id=5470
More information about the Python-bugs-list
mailing list