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'))
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')