Example #1
0
 def __getstate__(self):
     state = super().__getstate__()
     for i in _GeneralBooleanVarData.__slots__:
         state[i] = getattr(self, i)
     if isinstance(self._associated_binary, ReferenceType):
         state['_associated_binary'] = self._associated_binary()
     state['_stale'] = StaleFlagManager.is_stale(self._stale)
     return state
Example #2
0
 def stale(self):
     return StaleFlagManager.is_stale(self._stale)
Example #3
0
 def __getstate__(self):
     state = super(_GeneralVarData, self).__getstate__()
     for i in _GeneralVarData.__slots__:
         state[i] = getattr(self, i)
     state['_stale'] = StaleFlagManager.is_stale(self._stale)
     return state
Example #4
0
 def stale(self):
     """The stale status of the variable"""
     return StaleFlagManager.is_stale(self._stale)