Example #1
0
 def __str__(self):
     return "<%s(%s, '%s')>" % (reprStr(
         self.__class__), self._device, self._name)
Example #2
0
 def __repr__(self):
     return "<%s(%s, name='%s', desc='%s')>" % (reprStr(
         self.__class__), self._device, self._name, self._desc)
Example #3
0
 def __repr__(self):
     try:
         data_ = hex(self._data)
     except TypeError:
         data_ = None
     return "<%s(dpt='%s')>" % (reprStr(self.__class__), repr(self._dpt.id))
Example #4
0
 def __str__(self):
     return "<%s('%s')>" % (reprStr(self.__class__), self._dpt.id)
Example #5
0
 def __repr__(self):
     return "<%s(name='%s')>" % (reprStr(self.__class__), self._name)