Whatever happened to String Interpolation?

Tim Hammerquist tim at vegeta.ath.cx
Sun Dec 2 03:59:27 EST 2001

Fernando Pérez <fperez528 at yahoo.com> graced us by uttering:
> Tim Hammerquist wrote:
>>> In fact, things like 'blah %(var)s' to me look a lot less readable
>>> (and line noise like, perl-like, whatever) than 'blah $var'. Or is
>>> it that in Python there's such a rabid fear of $ as to not even
>>> admit a case where something like it may be useful?
>> It's possible.
> Good! Maybe we are getting somewhere after all... :-)

Maybe. Maybe not. I'm no rabid anti-Perler.  Ask Skip and you may get a
different answer. ;)

[ snip ]
> I hate extra function calls which just clutter things out. I'm a big 
> fan of 'first level' code readability: code which in a first reading, 
> with minimal mental gymnastics, shows its intended purpose.

Ah, but with training, one can do this with Python, Lisp, and even
Perl!  I'm proof!

> Oh well. We'll see if this gets anywhere.

That _would_ be something. =)

Tim Hammerquist
Perl will never turn into APL, despite our best efforts.
    -- Larry Wall in <199911021845.KAA01167 at kiev.wall.org>

More information about the Python-list mailing list