Currently we support a default encoding of classes using their underlying __dict__. This does not cover all classes as some classes are optimized to use __slots__ instead of having a __dict__.
To accomplish this, a branch will need to be added to the default_encode_value function in snappiershot.serializers.utils that checks for a __slots__ attribute and performs the encoding.
Currently we support a default encoding of classes using their underlying
__dict__
. This does not cover all classes as some classes are optimized to use__slots__
instead of having a__dict__
.To accomplish this, a branch will need to be added to the
default_encode_value
function insnappiershot.serializers.utils
that checks for a__slots__
attribute and performs the encoding.