PyDocs

Nav

Text Processing Services

Formatter

string

class (source)
See PEP 3101 for details and purpose of this class.
Members of Formatter

c

check_unused_args
Implement checking for unused arguments if desired.
convert_field
Converts the value (returned by get_field()) given a conversion type (as in the tuple returned by the parse() method).

f

format
The primary API method.
format_field
format_field() simply calls the global format() built-in.

g

get_field
Find the object referenced by a given field name.
get_value
Retrieve a given field value.

p

parse
Return an iterable that contains tuples of the form (literal_text, field_name, format_spec, conversion).

v

vformat
This function does the actual work of formatting.
0 Examples
No examples for string/Formatter.
See Also
No see-alsos for string/Formatter
0 Notes
No notes for Formatter