I am trying to determine how to test whether variors bits are set within a
byte (or larger flag) , the python 'and' and 'or' do not seem to be doing
what i want .. does anybody have some sample code showing how to do it ??

e.g. (in "C")

unsigned char a = 6;

is 3rd bit set ??

a & 4 =,  true in this case ....

thanks
Robert Somerville
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to