string_format_kind

Which formatting language a format string is written in.

Declaración

Sintaxis

string_format_kind
    = FormatFortran
    | FormatC
    | FormatPythonPercent
    | FormatPythonFString
    | FormatPythonFormat

Values

Value

Meaning

FormatFortran

Fortran edit descriptors, "(f8.3,i4)".

FormatC

C printf conversions, "%f: %d".

FormatPythonPercent

Python’s % operator, "%f: %d" % (a, b).

FormatPythonFString

an f-string, f"{a}: {b}".

FormatPythonFormat

str.format, "{}: {}".format(a, b).

Valores devueltos

None. An enumeration value is not evaluated.

Descripción

StringFormat carries this so that one node serves every frontend: the format string is interpreted according to the language it was written in.

Ver también

StringFormat, Print, FileWrite