Moin, what is wrong with eval('print %s %s %s' % ('%s', '%', 'foo')) I try to pass a format string to an assignment. Like this fmt='%.2f' a=1 b="fmt %" % a Matthias -- Matthias Teege -- http://www.mteege.de make world not war