Variable Interpolation - status of PEP 215

Paul Rubin phr-n2002b at NOSPAMnightsong.com
Thu Jun 20 03:39:44 EDT 2002


aahz at pythoncraft.com (Aahz) writes:
> Peter already told you what you really wanted to know, but for the
> benefit of other people, PEP 215 is dead and PEP 292 is currently the
> subject of a LARGE thread on python-dev.

I didn't know 215 was dead.  A shame.  I thought it was a good idea.

292 seems ok, maybe clumsier than 215 but an improvement over the %
mess inherited from C.

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()

I understand that preferences can run either way, but I think PEP 292
should face this question instead of ignoring it.



More information about the Python-list mailing list