From: Samuele P. <pe...@in...> - 2002-03-26 22:16:45
|
From: Kevin Butler <kb...@ca...> > > print template % Formatter() > You can use Formatter also in this way: import sys def i(str): uplocals = sys._getframe().f_back.f_locals return str % Formatter(locals = uplocals) print i(template) As taste goes YMMV. regards. |