On 09/16/10 10:25, J wrote:
OK, this is a very stupid question about a very simple topic, but
print "Reported memory amounts are within %s%s tolerance" %
(self.mem_tolerance,'%')

Is there a better way to print a '%' in the string when also using formating?

I've tried things like this:

print "blahblahblah %s \%" % variable

So close

  print "blah %s %%" % variable

-tkc


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to