Closed chongxi closed 5 years ago
clu.fill(label)
clu.changed
PS: clu.changed is a @property, which compare the new membership with the last in the stack: self._membership_stack.append(self.membership.copy())
self._membership_stack.append(self.membership.copy())
A python tip: copy() here is critical, otherwise when the external membership changes, the value in the stack will also change.
copy()
clu.fill(label)
clu.changed
PS:
clu.changed
is a @property, which compare the new membership with the last in the stack:self._membership_stack.append(self.membership.copy())
A python tip:
copy()
here is critical, otherwise when the external membership changes, the value in the stack will also change.