"Steven D'Aprano" <ste...@remove.this.cy..e.com.au> wrote:

>Unfortunately, outside of boolean algebra and simulating electrical 
>circuits, I can't think of any use-cases for an xor operator. Do you have 
>any?

A bitwise xor is a poor man's comparator - if the result is binary zero,
the operands were equal, no matter what they represented.

Not much use in python, though.

- Hendrik




-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to