Variable Interpolation - status of PEP 215
Gerhard Häring
gerhard.haering at gmx.de
Wed Jun 19 23:45:01 EDT 2002
* Ganesan R <rganesan at myrealbox.com> [2002-06-20 08:50 +0530]:
>
> Hi,
>
> I am a relative newbie to Python. I have a reasonably good perl background
> (don't worry I am not about to start a language flame war :-), and one of
> the things I really miss is variable interpolation in strings. I searched
> the net and found PEP 215 (http://www.python.org/peps/pep-0215.html). This
> seems to be exactly what I need. The proposal seems to be quite old, so I'd
> like to know if it's still in consideration or has it been dropped
> completely?
It's currently being discussed on the python-dev mailing list. I
personally find the "%(substname)s" % {"substname": "somevalue"} scheme
good enough, and don't see the point of the PEP. Maybe one reason is
that I haven't actually read it. <0.5 wink>
Gerhard
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
More information about the Python-list
mailing list