On Sat, Apr 9, 2016, at 11:43, Steven D'Aprano wrote: > flag ^ flag is useful since we don't have a boolean-xor operator and > bitwise-xor does the right thing for bools. If you have bools, so does !=. If you don't, ^ is no better.