def arguments_format_string(args, types):
 if (len(args) == 0):
  return ''
 parts = [printf_format_for_type(x['type'], types) for x in args]
 return ', '.join(parts)

def arguments_format_string ( args , types ) : if ( len ( args ) == 0 ) : return '' parts = [ printf_format_for_type ( x [ 'type' ] , types ) for x in args ] return ', ' . join ( parts )
returns a format string for printing the given arguments with printf() .