◐ Shell
clean mode source ↗

Message 294552 - Python tracker

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.