module documentation
Module for object related utils.
Class |
|
Meta base class for __slots__ definitions. |
Class |
|
Sets and validates slots. |
Function |
|
Convert a container from standard python types. |
Function |
|
Convert the elements of a container to standard Python types. |
Constant | _SEQUENCE |
Undocumented |
Convert a container from standard python types.
This method converts a container with standard Python types to objects. If the container is a dict, we don't touch the keys, only the values.
Parameters | |
source:None, dict or sequence (see _SEQUENCE_TYPES ) | Input data |
c | Desired type for returned container |
e | Item type for elements in returned container (must have a FromDict class method) |
Convert the elements of a container to standard Python types.
This method converts a container with elements to standard Python types. If the input container is of the type dict, only its values are touched. Those values, as well as all elements of input sequences, must support a ToDict method returning a serialized version.
Parameters | |
container:dict or sequence (see _SEQUENCE_TYPES ) | Undocumented |