def pformat(temp, **fmt):
 formatter = Formatter()
 mapping = _FormatDict(fmt)
 return formatter.vformat(temp, (), mapping)

def pformat ( temp , ** fmt ) : formatter = Formatter ( ) mapping = _FormatDict ( fmt ) return formatter . vformat ( temp , ( ) , mapping )
partially format a template string .