Exemple #1
0
    def __repr__(self):
        string = ffi.string(
            lib.EnvGetDefmessageHandlerPPForm(self._env, self._cls, self._idx))

        return "%s: %s" % (self.__class__.__name__,
                           string.decode().rstrip('\n'))
Exemple #2
0
    def __str__(self):
        string = ffi.string(
            lib.EnvGetDefmessageHandlerPPForm(self._env, self._cls, self._idx))

        return string.decode().rstrip('\n')