xor operator?

Alex Martelli aleaxit at yahoo.com
Fri Jan 26 12:22:15 EST 2001


"savitsk" <dsavitsk at e-coli.net> wrote in message
news:Fihc6.6515$Ch.1522702 at newsrump.sjc.telocity.net...
    [snip]
> > > > the only language I'm famialiar with, with a boolean XOR operation
:)
> >
> for better or worse, visual basic 6 has an Xor operator (according to VB &
> VBA in a nutshell, pg. 611)

Sure, but, as the same excellent nutshell book indicates in the
same page, it's *bitwise* -- 15 Xor 179 is worth 188.  It is
thus roughly equivalent to the ^ operator of Python and is not
the 'boolean' kind that I think is being discussed.


Alex






More information about the Python-list mailing list