cgi, templates, and the % operator

Michal Wallace sabren at manifestation.com
Sun Jul 23 01:35:03 EDT 2000


On Sun, 23 Jul 2000, Bob Horvath wrote:

> Anyway to escape the %, or to turn it into something else that
> won't screw up the % operator.

Yup. %% will escape the %.

>>> print "%%%s" % "cat"
%cat


Cheers,

- Michal
------------------------------------------------------------------------
www.manifestation.com  www.sabren.com  www.linkwatcher.com  www.zike.net
------------------------------------------------------------------------





More information about the Python-list mailing list