[Python Edinburgh] Comparing two Tuples

Dougal Matthews dougal85 at gmail.com
Wed Oct 20 16:19:09 CEST 2010

On 20 October 2010 15:12, danjac354 at gmail.com <danjac354 at gmail.com> wrote:

> Off the top of my head:
> bool(set(A).intersection(B))

That's what I'm using. Although you don't need the bool method call - maybe
its more intuitive than I thought!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edinburgh/attachments/20101020/fcb8c646/attachment.html>

More information about the Edinburgh mailing list