[Tutor] Defining "bit" type
ptmcg at austin.rr.com
Sat Jan 24 17:31:07 CET 2009
If your actual interest in defining a bit type is to work with an array of
bits, try Ilan Schnell's bitarray module
(http://pypi.python.org/pypi/bitarray/0.3.4). It uses a compiled extension,
so it is quite fast and space-efficient.
Ilan gave a presentation on this at the Texas Unconference last fall, and
some of the applications were pretty interesting/novel. If you download the
tarball from PyPI, there is an included examples directory.
More information about the Tutor