Ejemplo n.º 1
0
 def values(self):
     if self.timeout is None:
         return six.values(self)
     t0 = time.time()
     return [
         v for (k, v) in six.iteritems(self.__dict__)
         if t0 - self._timetable[k] < self.timeout
     ]
Ejemplo n.º 2
0
 def values(self):
     if self.timeout is None:
         return six.values(self)
     t0=time.time()
     return [v for (k,v) in six.iteritems(self.__dict__) if t0-self._timetable[k] < self.timeout]