Beispiel #1
0
 def __eq__(self, other):
     if isinstance(other, WeakMethod):
         if not self._alive or not other._alive:
             return self is other
         return ref.__eq__(self,
                           other) and self._func_ref == other._func_ref
     return False
Beispiel #2
0
 def __eq__(self, other):
     if isinstance(other, WeakMethod):
         if not self._alive or not other._alive:
             return self is other
         return ref.__eq__(self, other) and self._func_ref == other._func_ref
     return False