INNER CODE UNIT · Python

__repr__

wbond/asn1crypto · asn1crypto/core.py:462

    def __repr__(self):
        """
        :return:
            A unicode string
        """

        if _PY2:
            return '<%s %s b%s>' % (type_name(self), id(self), repr(self.dump()))
        else:
            return '<%s %s %s>' % (type_name(self), id(self), repr(self.dump()))

    def __bytes__(self):
        """
        A fall-back method for print() in Python 2

        :return:
            A byte string of the output of repr()
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…