[Python-3000] String formating operations in python 3k

Barry Warsaw barry at python.org
Wed Apr 5 04:13:26 CEST 2006


On Apr 4, 2006, at 7:17 PM, Ian Bicking wrote:

>
> These don't quite work with string.Template, because ${...} has the  
> same content constraints that $... has, so you can't easily put  
> extended expressions in there.  I could have sworn I opened an SF  
> bug on this, but it appears not.  But that's an aside.
>

I may be misunderstanding, but the contents of ${...} is pretty  
flexible because you control the regular expression that matches the  
substitution.  Heck, you can even use something other than $  
delimiters if you want.

-Barry



More information about the Python-3000 mailing list