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