proto-PEP: interpolated strings using ""if

Dan Bishop danb_83 at yahoo.com
Sat Feb 8 08:55:01 EST 2003


Roman Suzi <rnd at onego.ru> wrote in message news:<mailman.1044689508.26562.python-list at python.org>...
> 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()
> 
> ???

I think he was making a joke about PEP 308.




More information about the Python-list mailing list