valueto a Python literal in GML representation.
Parameters: value (object) – The
valueto be converted to GML representation.
Returns: rep – A double-quoted Python literal representing value. Unprintable characters are replaced by XML character references. Return type: string Raises:
valuecannot be converted to GML.
literal_stringizeris largely the same as
reprin terms of functionality but attempts prefix
bto provide better interoperability of data generated by Python 2 and Python 3.
The original value can be recovered using the