[issue5353] Improve IndexError messages with actual values

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm abandoning this one since I couldn't find a way to do it that didn't impair performance. Unlike C++, it is not uncommon in Python to use exceptions such as IndexError for control flow. There was too little added value in building-out this message to

[issue5353] Improve IndexError messages with actual values

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5353] Improve IndexError messages with actual values

2009-05-27 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue5353] Improve IndexError messages with actual values

2009-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've seen his patch and am working on my own variant that also attaches the index value as a separate field in the args tuple. The problem may be that it slows down the code -- at first I thought that didn't matter, but someone made a good effort to make the

[issue5353] Improve IndexError messages with actual values

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is about formatting a value into an error message. #1182143 is about adding values that have already been formatted into an error message to the resulting exception object. If this suggestion were implemented, then IndexError would be added to the ex

[issue5353] Improve IndexError messages with actual values

2009-05-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5353] Improve IndexError messages with actual values

2009-05-15 Thread R. David Murray
R. David Murray added the comment: See also issue 1182143. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue5353] Improve IndexError messages with actual values

2009-03-31 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray -r.david.murray-old ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue5353] Improve IndexError messages with actual values

2009-03-31 Thread R David Murray
Changes by R David Murray : -- nosy: +r.david.murray -bitdancer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5353] Improve IndexError messages with actual values

2009-03-17 Thread R. David Murray
R. David Murray added the comment: This issue was discussed two years ago in this thread: http://mail.python.org/pipermail/python-list/2006-December/588224.html Most of the messages under that subject are noise about politeness or lack thereof (including a post by the submitter of this issue t

[issue5353] Improve IndexError messages with actual values

2009-02-23 Thread Terry J. Reedy
New submission from Terry J. Reedy : Currently: >>> l=[]; l[1] # 3.0.1 ... IndexError: list index out of range Assuming that negative indexes are converted before the range test is made, I would like to see "IndexError: list index 1 not in range(0)", ie, "IndexError: list index {0} not in range(