Variable Interpolation - status of PEP 215

Aahz aahz at pythoncraft.com
Thu Jun 20 15:43:29 EDT 2002


In article <7xu1ny4cvz.fsf at ruckus.brouhaha.com>,
Paul Rubin  <phr-n2002b at NOSPAMnightsong.com> 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()

Consider

    "$numbers of items on sale"

versus

    "${number}s of items on sale"
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Project Vote Smart: http://www.vote-smart.org/



More information about the Python-list mailing list