INNER CODE UNIT · Python
__reduce__
wbond/asn1crypto · asn1crypto/core.py:493
def __reduce__(self):
"""
Permits pickling Asn1Value objects using their DER representation.
"""
return unpickle_helper, (self.__class__, self.dump())
def _new_instance(self):
"""
Constructs a new copy of the current object, preserving any tagging
:return:
An Asn1Value object
"""
new_obj = self.__class__()
new_obj.class_ = self.class_
new_obj.tag = self.tag
new_obj.implicit = self.implicit