Whatever happened to String Interpolation?
phil hunt
philh at comuno.freeserve.co.uk
Sun Dec 2 21:19:22 EST 2001
On Sun, 02 Dec 2001 13:31:52 +2328, Fernando PĂ©rez <fperez528 at yahoo.com> wrote:
>Oren Tirosh wrote:
>> Will this do?
>>
>> i"x is `x`, f(x) is `f(x)`"
>>
>> Take a look at http://www.tothink.com/python/interpp
This involves changing the python language. IMO a better proposal would
be to implement it in Python, perhaps using the syntax:
i("x is `x`, f(x) is `f(x)`")
That way, it'll not be part of the language, and anyone who doesn't want
the feature will simply not import the relevent module.
If you want this sort of thing, you can always use Perl.
--
*** Philip Hunt *** philh at comuno.freeserve.co.uk ***
More information about the Python-list
mailing list