Bart wrote:
I don't know whether there is a direct equivalent in Python (I thought somebody would point it out)

Not built-in, but a tiny bit of googling turns this up:

https://pypi.org/project/bitarray/

"This module provides an object type which efficiently represents an array of booleans. Bitarrays are sequence types and behave very much like usual lists. Eight bits are represented by one byte in a contiguous block of memory."

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to