John Machin wrote: > http://theopensourcery.com/phplogic.htm > > "In effect the bitwise operations [words "can be" omitted, I presume]
"can only be", more likely. > safely applied to integer variables - their effect on booleans, > float/double or string variables can be predicted but are not really > useful" ??? sounds like we're in >>> v = float(4653896912) >>> from string import pack, unpack >>> o = unpack("i", pack("d", v)[:4])[0] >>> (-o>>(13-3))|-2<<(32-13-1) -212992 territory. </F> -- http://mail.python.org/mailman/listinfo/python-list