INNER CODE UNIT · Python

__str__

wbond/asn1crypto · asn1crypto/core.py:448

    def __str__(self):
        """
        Since str is different in Python 2 and 3, this calls the appropriate
        method, __unicode__() or __bytes__()

        :return:
            A unicode string
        """

        if _PY2:
            return self.__bytes__()
        else:
            return self.__unicode__()

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…