Aug-11-2018, 06:42 AM
This entry in the documentation seems to ensure your requirement of contiguous bytes in memory. However, if you're creating read-only tables, why not use the bytes type directly?
num = bytes(c for a, b, c, d in ctl for o in range(a, b)) bit = bytes(o & d for a, b, c, d in ctl for o in range(a, b))