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