INNER CODE UNIT · Python

_new_instance

wbond/asn1crypto · asn1crypto/core.py:499

    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
        new_obj.explicit = self.explicit
        return new_obj

    def __copy__(self):
        """
        Implements the copy.copy() interface

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…