A KeyFlattener computes keys for the things within curly braces in PEP-3101-style format strings as parsed by string.Formatter.parse.

Method __init__ Initialize a KeyFlattener.
Method flatKey Compute a string key for a given field/format/conversion.
def __init__(self):

Initialize a KeyFlattener.

def flatKey(self, fieldName, formatSpec, conversion):

Compute a string key for a given field/format/conversion.

ParametersfieldNameA format field name. (type: str)
formatSpecA format spec. (type: str)
conversionA format field conversion type. (type: str)
ReturnsA key specific to the given field, format and conversion, as well as the occurrence of that combination within this KeyFlattener's lifetime. (type: str)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.