[issue36200] display index on IndexError

2019-03-05 Thread SilentGhost
Change by SilentGhost : -- resolution: -> duplicate superseder: -> Add index attribute to IndexError ___ Python tracker ___ ___ Py

[issue36200] display index on IndexError

2019-03-05 Thread Aditya Shankar
Aditya Shankar added the comment: closed as this is a duplicate for https://bugs.python.org/issue18162 -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36200] display index on IndexError

2019-03-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Possibly related issues in the past : issue18162, issue1534607 , issue21911, https://www.python.org/dev/peps/pep-0473/ -- nosy: +xtreak ___ Python tracker ___

[issue36200] display index on IndexError

2019-03-05 Thread Aditya Shankar
New submission from Aditya Shankar : 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 co

[issue36200] display index on IndexError

2019-03-05 Thread Aditya Shankar
Change by Aditya Shankar : -- components: +Interpreter Core title: display index on Index -> display index on IndexError type: -> enhancement versions: +Python 3.8 ___ Python tracker