> I am trying to get the value of a reiterative XOR operation and thought > I'd use Idle to figure it out. I thought the module which allows for > bitwise ops was the operator module, so I first did: > > import operator You don't need that. Just use the xor operator(~) >>> print ~0x01 -2 >>> print "%X" % ~0x01 '0xFFFFFFFE' Alan G.