Bitwise OR?

Tim N. van der Leeuw tim.leeuwvander at nl.unisys.com
Fri Mar 24 03:39:29 EST 2006


xkenneth wrote:
> Why is 3500 | -67 equal to 3500 instead of -3567?

Well that's funny... On my computer, python says it's -67. Java also
says it's -67.

Haven't yet looked at the actual bits of both values.
What Python implementation and what machine do you have?

--Tim




More information about the Python-list mailing list