Getting at the bits of a 32-bit integer

Erik Max Francis max at alcyone.com
Mon Aug 23 21:13:10 EDT 2004


Phil Frost wrote:

> Then you have paid the cost of a bool, and then some.

If someone's interested in using a bitfield to store flags, they're
obviously interested in more than one bool!  Now you're talking about
one long vs. a list and n bools.

-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ Freedom is never voluntarily given by the oppressor.
    -- Dr. Martin Luther King, Jr.



More information about the Python-list mailing list