Input/output#

dump

Serialize a Constant object and write the serialized data to a writable BinaryIO object.

load

Read serialized data from a readable BinaryIO object and deserialize it into a Constant object.

dumps

Serialize a Constant object and return the serialized data as bytes.

loads

Deserialize a Constant object from a bytes-like object.