Message135299
| Author |
Ben.Wolfson |
| Recipients |
Ben.Wolfson, eric.smith, mark.dickinson |
| Date |
2011年05月06日.14:41:34 |
| SpamBayes Score |
4.042403e-08 |
| Marked as misclassified |
No |
| Message-id |
<1304692896.12.0.0145108580736.issue12014@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The semantics the docs suggest for index fields (namely that whatever is in the index field is just passed to getitem) do seem to be right, no other processing is done here, for instance:
>>> d = {"{0}":"hi"}
>>> "{0[{0}]}".format(d)
'hi'
>>> import string
>>> list(string.Formatter().parse("{0[{0}]}"))
[('', '0[{0}]', '', None)]
>>>
Which is what you'd expect, but makes me think that treating "!" and ":" in the index field separately is definitely wrong. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年05月06日 14:41:36 | Ben.Wolfson | set | recipients:
+ Ben.Wolfson, mark.dickinson, eric.smith |
| 2011年05月06日 14:41:36 | Ben.Wolfson | set | messageid: <1304692896.12.0.0145108580736.issue12014@psf.upfronthosting.co.za> |
| 2011年05月06日 14:41:35 | Ben.Wolfson | link | issue12014 messages |
| 2011年05月06日 14:41:34 | Ben.Wolfson | create |
|