[Python-ideas] XOR
geremy condra
debatem1 at gmail.com
Wed Oct 28 00:07:23 CET 2009
On Tue, Oct 27, 2009 at 6:46 PM, Georg Brandl <g.brandl at gmx.net> wrote:
> Sturla Molden schrieb:
>> Why does Python have a bitwise but not a logical xor operator?
>
> How often do you need the xor operator?
>
1) Technically, an operator is *never* needed, as its just syntactic sugar.
2) It sure would make crypto code look prettier, as we rely on xor
operations extensively.
Geremy Condra
More information about the Python-ideas
mailing list