INNER CODE UNIT · Python

_copy

wbond/asn1crypto · asn1crypto/core.py:586

    def _copy(self, other, copy_func):
        """
        Copies the contents of another Asn1Value object to itself

        :param object:
            Another instance of the same class

        :param copy_func:
            An reference of copy.copy() or copy.deepcopy() to use when copying
            lists, dicts and objects
        """

        if self.__class__ != other.__class__:
            raise TypeError(unwrap(
                '''
                Can not copy values from %s object to %s object
                ''',
                type_name(other),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…