Alex Rivera | Logout

Python equivalent to Java's BitSet

Asked 2010-10-15T20:59:46.223
43

Is there a Python class or module that implements a structure that is similar to the BitSet?

Edit
Report

1 Answer

5

You might like to take a look at a module I wrote called bitstring (full documentation here), although for simple cases that need to be as fast as possible I'd still recommend bitarray.

Some similar questions:

What is the best way to do Bit Field manipulation in Python?

Does Python have a bitfield type?

Python Bitstream implementations

answered 2010-10-15T23:02:15.437

Your Answer