Long Shifty Bits

Phlip phlip_cpp at my-deja.com
Tue Mar 6 13:50:21 EST 2001


Not hyp:

I want this expression to make sense:

        x = 1L << 200

If someone tells me "it will roll over at the 32nd bit", or mayby even "it 
will roll over when the CPU damn well feels like it", that's okay. I'l just 
construct a Bit Vector of some ilk and drop my bits into it. But the above 
notation is closest to our problem space, so it would be nice if it worked 
as expected.

-- 
  Phlip                          phlip_cpp at my-deja.com
============== http://phlip.webjump.com ==============
  --  "In my experience, the customer doesn't know what he wants
       until you don't give it to him." --David Brady  --



More information about the Python-list mailing list