I got two objects, a and b, each containing a single byte in a bytes object.
a
b
I am trying to do a bitwise operation on this to get the two m
A more general answer
def andbytes(abytes, bbytes): return bytes([a & b for a, b in zip(abytes[::-1], bbytes[::-1])][::-1])
Though IMO pyhon bytes objects should aready do this....