Martin v. Löwis wrote:
> Bill Janssen schrieb:
>>> I think most of these points are irrelevant. The curly braces are not
>>> just syntactic sugar, at least the opening brace is not; the digit
>>> is not syntactic sugar in the case of message translations.
>> Are there "computation of matching braces" problems here?
> 
> I don't understand: AFAIK, the braces don't nest, so the closing
> brace just marks the end of the place holder (which in the printf
> format is defined by the type letter).

I don't understand, either.  The braces do nest, but I don't know what 
the "computation of matching brace" problem is.

This test currently passes in my implementation:
         self.assertEqual('{0[{bar}]}'.format('abcdefg', bar=4), 'e')

This shows nesting braces working.  Bill, what problem are you thinking of?

Eric.

_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to