Message221847
(ugh, hit return too soon)
>>> '{1}'.format()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: tuple index out of range
This is a confusing error message. The user hasn't written any tuples, so a message about a tuple index out of range will just leave them scratching their head. We should either return a more specific subclass of IndexError, or at least a more descriptive text describing what went wrong.
See https://mail.python.org/pipermail/python-list/2014-June/674188.html for background. |
|
Date |
User |
Action |
Args |
2014-06-29 14:41:02 | roysmith | set | recipients:
+ roysmith |
2014-06-29 14:41:02 | roysmith | set | messageid: <1404052862.84.0.668500091812.issue21879@psf.upfronthosting.co.za> |
2014-06-29 14:41:02 | roysmith | link | issue21879 messages |
2014-06-29 14:41:02 | roysmith | create | |
|