parameters: (percent, value, grouping=False, monetary=False, *additional)
return_statement: return _format(percent, value, grouping, monetary, *additional)
docstring: Deprecated, use format_string instead.
docstring_summary: Deprecated, use format_string instead.
docstring_tokens: Deprecated use format_string instead .
function: def format(percent, value, grouping=False, monetary=False, *additional):
      """Deprecated, use format_string instead."""
      import warnings
      warnings.warn(
          "This method will be removed in a future version of Python. "
          "Use 'locale.format_string()' instead.",
          DeprecationWarning, stacklevel=2
      )
  
      match = _percent_re.match(percent)
      if not match or len(match.group())!= len(percent):
          raise ValueError(("format() must be given exactly one %%char "
                           "format specifier, %s not valid") % repr(percent))
      return _format(percent, value, grouping, monetary, *additional)
function_tokens: def format ( percent , value , grouping = False , monetary = False , * additional ) : import warnings warnings . warn ( "This method will be removed in a future version of Python. " "Use 'locale.format_string()' instead." , DeprecationWarning , stacklevel = 2 ) match = _percent_re . match ( percent ) if not match or len ( match . group ( ) ) != len ( percent ) : raise ValueError ( ( "format() must be given exactly one %%char " "format specifier, %s not valid" ) % repr ( percent ) ) return _format ( percent , value , grouping , monetary , * additional )