array of bits?

Paul Rubin http
Mon Feb 14 17:19:32 EST 2005


MM <mm at newsgroups.com> writes:
> What is the best structure/way to create an array of bits (actually
> true/false flags) of an arbitrary length ranging from about 20 upto
> about 500. Speed of access more of an issue than compactness.

Use a normal list: [False, False, True, False, True, ... ] .



More information about the Python-list mailing list