bitstring is a pure Python module designed to help make the
creation, manipulation and analysis of binary data as simple and
natural as possible. BitStrings can be constructed from integers
(big and little endian), hex, octal, binary, strings or files.
They can be sliced, joined, reversed, inserted into,
overwritten, etc. with simple functions or slice notation. They
can also be read from, searched and replaced, and navigated in,
similar to a file or stream. Internally the data is efficiently
stored as byte arrays, the module has been optimized for speed,
and excellent code coverage is given by over 300 unit tests. It
is available for Python 2.4 / 2.5 and for Python 2.6 / 3.x. To
get updates on new releases you can subscribe to the project on
freshmeat. NewsMarch 18th 2010: Version 1.3.0 for Python 2.6 and
3.x releasedFor details see the ReleaseNotes. View the
Documentation HereIt contains a walk-through of all the features
and a complete reference section. >>> a = BitString(bin='00101')
>>> b = BitString(a_f