(percent, value, grouping=False, monetary=False, *additional)
return _format(percent, value, grouping, monetary, *additional)
Returns the locale-aware substitution of a %? specifier
    (percent).

    additional is for format strings which contain one or more
    '*' modifiers.
Returns the locale-aware substitution of a %? specifier
    (percent).
Returns the locale - aware substitution of a %? specifier ( percent ) .
def format(percent, value, grouping=False, monetary=False, *additional):
    """Returns the locale-aware substitution of a %? specifier
    (percent).

    additional is for format strings which contain one or more
    '*' modifiers."""
    # this is only for one-percent-specifier strings and this should be checked
    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)
def format ( percent , value , grouping = False , monetary = False , * additional ) : # this is only for one-percent-specifier strings and this should be checked 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 )