syntax difference

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Jun 26 19:18:37 EDT 2018


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



More information about the Python-list mailing list