Bit length of int or long?

Darrell Gallion darrell at dorb.com
Fri May 19 00:48:26 EDT 2000


Assuming it never hurts to ask.
>>> x=0xffffffff
>>> x >> 1
-1

Wouldn't 0x7fffffff be nice, maybe even a rotate function.

My last hot idea to allow re to match nested patterns, produced only polite
interest. So I'm sure my interests must be on the fringe :)

--Darrell Gallion













More information about the Python-list mailing list