boolean xor

Aahz Maruch aahz at panix.com
Sun Jan 7 16:52:05 EST 2001


In article <H6366.4370$Qb7.621903 at newsb.telia.net>,
Fredrik Lundh <fredrik at effbot.org> wrote:
>
>def xor(a,b):
>    from operator import truth
>    return truth(a) ^ truth(b)

Thanks!  That's clear enough I don't need to comment it.  ;-)
-- 
                      --- Aahz (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"This is Usenet.  We're all masturbating in public places."  -DH



More information about the Python-list mailing list