Ejemplo n.º 1
0
 def merge(self, other):
     if self is not other:
         assert self.custom_eq_hash == other.custom_eq_hash, (
             "mixing plain dictionaries with r_dict()")
         ListItem.merge(self, other)
         if self.custom_eq_hash:
             self.update_rdict_annotations(other.s_rdict_eqfn,
                                           other.s_rdict_hashfn,
                                           other=other)
Ejemplo n.º 2
0
 def merge(self, other):
     if self is not other:
         assert self.custom_eq_hash == other.custom_eq_hash, (
             "mixing plain dictionaries with r_dict()")
         ListItem.merge(self, other)
         if self.custom_eq_hash:
             self.update_rdict_annotations(other.s_rdict_eqfn,
                                           other.s_rdict_hashfn,
                                           other=other)