ID EN
String

convert_field

Python 3.11

Converts the value (returned by get_field()) given a conversion type (as in the tuple returned by the parse() method). The default version understands ‘s’ (str), ‘r’ (repr) and ‘a’ (ascii) conversion types.

Syntax

PYTHON
convert_field(value, conversion)

See Also

get_field() parse()