Matthew Barnett <[email protected]> added the comment:
Your original:
"{0[-1]}".format('fox')
is a worse gotcha than:
"{-1}".format('fox')
because you're much less likely to want to do the latter.
It's one of those things that it would be nice to have fixed, or we could just
add a warning to the documentation that it _might_ be fixed in the future, so
people shouldn't rely on the current behaviour. :-)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7951>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com