Bitwise expression

Gigs_ gigs at hi.t-com.hr
Mon Jan 8 16:32:12 EST 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