[EMAIL PROTECTED] wrote: > And furthermore, having Python's bitwise operators > is nice, but it's not nice enough. I need the bitwise > functionality gmpy provides that's not available in > Python: scan for position of least significant 1 or 0, Cute tricks (artifact of two's complement notation):
v & -v == isolated least significant bit of v math.log(v & -v, 2) == bit number of least significant bit. --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list