ironic_python_agent.encoding.
RESTJSONEncoder
(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]¶Bases: json.encoder.JSONEncoder
A slightly customized JSON encoder.
default
(o)[source]¶Turn an object into a serializable object.
In particular, by calling Serializable.serialize()
on o.
ironic_python_agent.encoding.
Serializable
[source]¶Bases: object
Base class for things that can be serialized.
serializable_fields
= ()¶ironic_python_agent.encoding.
SerializableComparable
[source]¶Bases: ironic_python_agent.encoding.Serializable
A Serializable class which supports some comparison operators
This class supports the ‘__eq__’ and ‘__ne__’ comparison operators, but intentionally disables the ‘__hash__’ operator as some child classes may be mutable. The addition of these comparison operators is mainly used to assist with unit testing.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.