"Carl Banks" <[EMAIL PROTECTED]> wrote:
> Howabout something like this (untested):
>
> class CmpProxy(object):
> def __init__(self,obj):
> self.obj = obj
> def __eq__(self,other):
> return (self.obj.att_a == other.obj.att_b
> and self.obj.att_b == other.obj.
James Stroud wrote:
> Hello All,
>
> I find myself in this situation from time to time: I want to compare two lists
> of arbitrary objects and (1) find those unique to the first list, (2) find
> those unique to the second list, (3) find those that overlap. But here is the
> catch: comparison is no
Hello All,
I find myself in this situation from time to time: I want to compare two lists
of arbitrary objects and (1) find those unique to the first list, (2) find
those unique to the second list, (3) find those that overlap. But here is the
catch: comparison is not straight-forward. For examp