Is there a built-in function in python to convert a bool array (which represents a bit in a byte) as follows:
p = [True, True, True, False, True, False, False, True]
into a byte array like this:
bp = byteArray([233])
I know oh numpy, but I was looking for something inside python itself
source
share