This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:36Ben.Wolfsonsetrecipients: + Ben.Wolfson, mark.dickinson, eric.smith
2011-05-06 14:41:36Ben.Wolfsonsetmessageid: <1304692896.12.0.0145108580736.issue12014@psf.upfronthosting.co.za>
2011-05-06 14:41:35Ben.Wolfsonlinkissue12014 messages
2011-05-06 14:41:34Ben.Wolfsoncreate