I'm trying to do something along the lines of

>>> print '%temp %d' % 1
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: unsupported format character 't' (0x74) at index 1

although, obviously I can't do this, since python thinks that the '%t'
is a format string.

I've tried obvious permutations like

>>> print '\%temp %d' % 1

which also doesn't work.

For (template) reasons, I can't do

>>> print '%s %d' % ('%temp',1)

Will anything else work here?

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

Reply via email to