What is this syntax ?

rusi rustompmody at gmail.com
Sun Jun 19 12:58:00 EDT 2011


On Jun 19, 8:39 pm, Roy Smith <r... at panix.com> wrote:

> This is one of the (very) few places PHP wins over Python.  In PHP, I
> would write this as
>
> print "'$x'"


You dont find

>>> print '"%s"' % x

readable? Why?



More information about the Python-list mailing list