Whatever happened to String Interpolation?
Fernando Pérez
fperez528 at yahoo.com
Mon Dec 10 20:34:58 EST 2001
Ville Vainio wrote:
> Fernando Pérez <fperez528 at yahoo.com> writes:
>
>> That already exists: type 'python Itpl' in google.
>
> So, it appears to be done already. What's the fuss, then? Wouldn't
> having this in the standard library suffice? Looking at the relatively
> concise syntax on Itpl, why on earth would one want an equivalent
> thing encumbering the core language?
Well, at least having it in the standard library would be IMO a big
advancement. As it stands now, one often tries to work around it to avoid
generating an extra dependency for a project.
Syntactic sugar is nice, but I could live with
itpl('blah $foo $bar')
instead of
$'blah $foo $bar'
Cheers,
f
More information about the Python-list
mailing list