My problem is pretty straight forward. I have a client program written in Java which has a method that generates an ID. I'm writing Python scripts to parse and correct the output of this client program. The method in the client that creates the ID's uses bitwise operations to create the ID. Unfortunately, the ID generator is unique though it says it's UUID, it's not.
The code I'm trying to convert is open source and in the EMF EcoreUtil.java file1. If you have the time or looking for a fun coding, you're welcome to translate this code. But I'd like to know how to do bitwise operations like this in python like I would in C/C++ and Java.
a = -8; b = a >> 1. Nowbis-4.