Message135299
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. |
|
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 | |
|