and becomes or and or becomes and

Stef Mientki stef.mientki at gmail.com
Sun May 22 15:23:03 EDT 2011


hello,

must of us will not use single bits these days,
but at first sight, this looks funny :

>>> a=2
>>> b=6
>>> a and b
6
>>> a & b
2
>>> a or b
2
>>> a | b
6

cheers,
Stef



More information about the Python-list mailing list