How do I represent and work with n-bit vectors in Python?

The library BitVector is a pure-Python library for this purpose, and should suit the needs you specified.

Leave a Comment