Variant.printString

Behaves as g_variant_print(), but operates on a GString. If string is non-NULL then it is appended to and returned. Else, a new empty GString is allocated and it is returned. Since 2.24

class Variant
printString

Parameters

string StringG

a GString, or NULL. [allow-none][default NULL]

typeAnnotate int

TRUE if type information should be included in the output

Return Value

Type: StringG

a GString containing the string

Meta