Issue 1534607: IndexError: Add bad index to msg (original) (raw)
Issue1534607
Created on 2006-08-04 14:40 by mkleehammer, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg61250 - (view) | Author: Michael Kleehammer (mkleehammer) * | Date: 2006-08-04 14:40 |
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 | ||
msg68521 - (view) | Author: MartÃn Conte Mac Donell (Reflejo) | Date: 2008-06-21 17:33 |
I don't think this is bearly needed. This error messages (IndexError: list index out of range) comes from so long ago that those kind of changes makes me feel worried. | ||
msg114811 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2010-08-24 19:58 |
Is this ever likely to happen, it's already been closed and reopened once? |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:19 | admin | set | github: 43774 |
2013-11-07 18:22:56 | brett.cannon | set | status: open -> closedresolution: duplicate |
2013-11-07 18:22:48 | brett.cannon | set | superseder: Add index attribute to IndexError |
2010-08-24 19:58:54 | BreamoreBoy | set | nosy: + BreamoreBoymessages: + versions: - Python 2.7 |
2009-05-13 22:33:41 | ajaksu2 | set | stage: test neededversions: + Python 2.7, Python 3.2, - Python 2.6 |
2008-06-23 00:43:19 | benjamin.peterson | set | status: closed -> openresolution: not a bug -> (no value) |
2008-06-23 00:43:00 | benjamin.peterson | set | status: open -> closedresolution: not a bug |
2008-06-21 17:33:46 | Reflejo | set | nosy: + Reflejomessages: + |
2006-08-04 14:40:26 | mkleehammer | create |