Re: Format strings that contain '%'

2005-03-08 Thread [EMAIL PROTECTED]
Thanks!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Format strings that contain '%'

2005-03-08 Thread Diez B. Roggisch
> Will anything else work here? Use %% print "%%s %s" % "foo" -- Regards, Diez B. Roggisch -- http://mail.python.org/mailman/listinfo/python-list

Re: Format strings that contain '%'

2005-03-08 Thread Erik Max Francis
[EMAIL PROTECTED] wrote: I'm trying to do something along the lines of print '%temp %d' % 1 Traceback (most recent call last): File "", line 1, in ? ValueError: unsupported format character 't' (0x74) at index 1 Use %%: >>> '%%temp %d' % 1 '%temp 1' -- Erik Max Francis && [EMAIL PROTECTED] && htt