Message162668
| Author |
ncoghlan |
| Recipients |
Ramchandra Apte, eric.araujo, eric.smith, flox, meador.inge, ncoghlan, terry.reedy, vinay.sajip |
| Date |
2012年06月12日.11:57:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339502274.57.0.972359207196.issue13598@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
One brief comment on the wording of the error message: the inconsistent naming is actually copied from the str.format code.
>>> "{foo} {} {bar}".format(2, foo='fooval', bar='barval')
'fooval 2 barval'
>>> "{foo} {0} {} {bar}".format(2, foo='fooval', bar='barval')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: cannot switch from manual field specification to automatic field numbering |
|