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 eric.smith
Recipients Ben.Wolfson, eric.araujo, eric.smith, mark.dickinson, petri.lehtinen, r.david.murray
Date 2011-06-03.19:47:48
SpamBayes Score 6.717711e-05
Marked as misclassified No
Message-id <1307130469.16.0.861092248507.issue12014@psf.upfronthosting.co.za>
In-reply-to
Content
PEP 3101 defines format strings as intermingled character data and markup. Markup defines replacement fields and is delimited by braces. Only after markup is extracted does the PEP talk about interpreting the contents of the markup.

So, given "{0[a}b]}" the parser first parses out the character data and the markup. The first piece of markup is "{0[a}". That gives a syntax error because it's missing a right bracket.

I realize you'd like the parser to find the markup as the entire string, but that's not how I read the PEP.
History
Date User Action Args
2011-06-03 19:47:49eric.smithsetrecipients: + eric.smith, mark.dickinson, eric.araujo, r.david.murray, Ben.Wolfson, petri.lehtinen
2011-06-03 19:47:49eric.smithsetmessageid: <1307130469.16.0.861092248507.issue12014@psf.upfronthosting.co.za>
2011-06-03 19:47:48eric.smithlinkissue12014 messages
2011-06-03 19:47:48eric.smithcreate