On Wed, Jun 8, 2011 at 5:34 PM, MikeKJ <[email protected]> wrote:
>
> I have 3 tuples of email addresses, I want to compare the 3 against each
> other to make a single tuple of email addresses with no duplicates, any
> ideas?

>>> t1 = ( '[email protected]', '[email protected]', '[email protected]' )
>>> t2 = ( '[email protected]', '[email protected]', )
>>> t3 = ( '[email protected]', )
>>> set(t1) | set(t2) | set(t3)
set(['[email protected]', '[email protected]', '[email protected]', '[email protected]'])


Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to