![]() |
||
|
Type bindings in Python are straightforward and are based on the existing standard types, except for those cases where no standard type matches the intent of the given YAMI4 type. This is the area where Python 2.x and 3.x differ:
In Python 2.x:
bool is used for boolean values.int is used for integer values.long is used for representing long values.float is used for double float values.str is used for string values (for the purpose of serialization and deserialization, the UTF-8 encoding is used).yami.Bytes, a specially provided wrapper type, is used to describe binary buffers.In Python 3.x:
bool is used for boolean values.int is used for integer values.yami.Long, a specially provided wrapper type, is used for representing long values.float is used for double float values.str is used for string values (for the purpose of serialization and deserialization, the UTF-8 encoding is used).bytes is used to describe binary buffers.