Bitwise expression

Gigs_ gigs at
Mon Jan 8 22:32:12 CET 2007

Can someone explain me bitwise expression?
few examples for every expression will be nice

x << y Left shift
x >> y Right shift
x & y Bitwise AND
x | y Bitwise OR
x ^ y Bitwise XOR (exclusive OR)
~x Bitwise negation

thanks people

More information about the Python-list mailing list