Variable Interpolation - status of PEP 215

Ian Bicking ianb at colorstudy.com
Thu Jun 20 14:11:33 EDT 2002


On Thu, 2002-06-20 at 02:39, Paul Rubin wrote:
> What's the deal with the curly braces in 292?  That's not discussed
> at all in the PEP.  I don't see what's wrong with
> 
>    print "My name is $name".sub()
> 
> (which is similar to what 215 allowed) instead of
> 
>    print "My name is ${name}".sub()

The PEP allows either, just like the shell.  It just uses the second
form in most of the examples.

  Ian







More information about the Python-list mailing list