Exemple #1
0
    def __repr__(self):
        strn = lib.EnvGetDefclassPPForm(self._env, self._cls)
        strn = ffi.string(strn).decode() if strn != ffi.NULL else self.name

        return "%s: %s" % (self.__class__.__name__, strn.rstrip('\n'))
Exemple #2
0
    def __str__(self):
        strn = lib.EnvGetDefclassPPForm(self._env, self._cls)
        strn = ffi.string(strn).decode() if strn != ffi.NULL else self.name

        return strn.rstrip('\n')