Efficient Arrays of Booleans

Edit Package python-bitarray
https://github.com/ilanschnell/bitarray

This module provides an object type which efficiently represents an
array of booleans. Bitarrays are sequence types and behave very
much like usual lists. Eight bits are represented by one byte in a
contiguous block of memory. The user can select between two
representations; little-endian and big-endian.
All of the functionality is implemented in C. Methods for accessing
the machine representation are provided. This can be useful when
bit level access to binary files is required, such as portable
bitmap image files (.pbm).
Also, when dealing with compressed data which uses variable bit
length encoding, you may find this module useful.

Refresh
Refresh
Source Files
Filename Size Changed
bitarray-2.7.3.tar.gz 0000170762 167 KB
python-bitarray.changes 0000018911 18.5 KB
python-bitarray.spec 0000002517 2.46 KB
Revision 17 (latest revision is 26)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1069754 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 17)
- update to 2.7.3:
  * allow running ``python setup.py test``
  * add official Python 3.12 support
  * simplify count functionality in util module
  * retire ``bitcount_lookup[256]`` table
  * improve ``util.count_n()`` error messages
  * avoid ``util`` module tests from being run more than once in
    each call to ``bitarray.test()`` when called multiple times in
    the same Python process
  * improve testing
Comments 0
openSUSE Build Service is sponsored by