[Tutor] bitwise manipulation
Tim Johnson
tim at johnsons-web.com
Fri Dec 9 02:24:18 CET 2005
Hello Snake Charmers:
I'm designing a database and am thinking about how to store a number
number of boolean values in one field.
Are there any python resources available that can make setting/unsetting
bits directly? I used to do that in "C" with preprocessor macros that
made calls like set_bit(vInteger,bit_position)
and unset_bit(vInteger,bit_position).
Thanks
tim
--
Tim Johnson <tim at johnsons-web.com>
http://www.alaska-internet-solutions.com
More information about the Tutor
mailing list