Raymond Hettinger added the comment:

See http://bugs.python.org/issue30477 for why I think this shouldn't be done.  
In short, the IndexError may be part of control flow (looping over successive 
matches) rather than an error (this patch adds a time/space cost with no 
benefit in those cases).  The repr itself may be large resulting in an unusable 
error message.  The repr may be expensive to compute for some objects.

nosy: +rhettinger

Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to