xor operator?

dsavitsk at my-deja.com dsavitsk at my-deja.com
Fri Jan 26 17:09:07 EST 2001


In article <94sbo702lon at news2.newsguy.com>,
  "Alex Martelli" <aleaxit at yahoo.com> wrote:
> "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.

not correct.  look back a few pages (608) and you will notice that it
is both logical and "... [it] doubles[s] as [a] bitwise operator ..."

ds


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list