proto-PEP: interpolated strings using ""if

Roman Suzi rnd at onego.ru
Sat Feb 8 08:29:59 CET 2003


On Sat, 8 Feb 2003, Anthony Baxter wrote:

>Examples
>
>    >>> a, b = 5, 6
>    >>> print "a = $a, b = $b"if
>    a = 5, b = 6

What is wrong with:

print "a= %(a)s, b = %(b)s" % vars()

???

Sincerely yours, Roman Suzi
-- 
rnd at onego.ru =\= My AI powered by Linux RedHat 7.3






More information about the Python-list mailing list