[issue5353] Improve IndexError messages with actual values

Raymond Hettinger report at bugs.python.org
Fri May 15 21:17:32 CEST 2009


Raymond Hettinger <rhettinger at users.sourceforge.net> 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 existing code fast (possibly
to support cases where IndexError is used for control flow instead of
for error conditions).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5353>
_______________________________________


More information about the Python-bugs-list mailing list