Esempio n. 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'))
Esempio n. 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')