Issue36200
Created on 2019-03-05 16:54 by Aditya Shankar, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg337231 - (view) | Author: Aditya Shankar (Aditya Shankar) | Date: 2019-03-05 17:00 | |
considering a list of 5 elements, if the 6th element is asked, the Interpreter would raise IndexError: list index out of range, I think It'd be better if it actually said what the invalid index is Improvement benefits: *quicker debugging of faulty python code *person debugging does not need to edit and restart the program to fix issue, sometimes at least |
|||
| msg337232 - (view) | Author: Karthikeyan Singaravelan (xtreak) * ![]() |
Date: 2019-03-05 17:27 | |
Possibly related issues in the past : issue18162, issue1534607 , issue21911, https://www.python.org/dev/peps/pep-0473/ |
|||
| msg337233 - (view) | Author: Aditya Shankar (Aditya Shankar) | Date: 2019-03-05 17:33 | |
closed as this is a duplicate for https://bugs.python.org/issue18162 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:12 | admin | set | github: 80381 |
| 2019-03-05 17:38:00 | SilentGhost | set | superseder: Add index attribute to IndexError resolution: duplicate |
| 2019-03-05 17:33:15 | Aditya Shankar | set | status: open -> closed messages:
+ msg337233 |
| 2019-03-05 17:27:47 | xtreak | set | nosy:
+ xtreak messages: + msg337232 |
| 2019-03-05 17:00:44 | Aditya Shankar | set | messages: + msg337231 |
| 2019-03-05 16:56:35 | Aditya Shankar | set | versions:
+ Python 3.8 type: enhancement components: + Interpreter Core title: display index on Index -> display index on IndexError |
| 2019-03-05 16:54:42 | Aditya Shankar | create | |
