Comparing modified elements in Sets

dabu11et at rock.com dabu11et at rock.com
Mon Jul 9 19:29:18 EDT 2007


On Jul 9, 2:57 pm, ChrisEdge... at gmail.com wrote:
> I've got a set with contents like: [filename1.mp3, filename2.mp3,
> filename3.mp3, ...]
> I've got another set with contents like [filename1.ogg,
> filename3.ogg, ...]
> And another set with contents like [filename1, filename 2, ...]
>
> I'd like to be able to compare set 1 with set 2 and have it match
> filename1 and filename3, or compare set 1 with 3 and get back
> filename1, filename2.  etc.
>
> Is there a way for me to do this inside the compare function, rather
> than having to make duplicate copies of each set?

<A HREF="resumepage.html">my resume</A




More information about the Python-list mailing list