Efficient Arrays of Booleans
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.
- Developed at devel:languages:python
- Sources inherited from project openSUSE:Factory
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:Rebuild/python-bitarray && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
bitarray-2.8.2.tar.gz | 0000176662 173 KB | |
python-bitarray.changes | 0000020301 19.8 KB | |
python-bitarray.spec | 0000002517 2.46 KB |
Revision 21 (latest revision is 26)
Ana Guerrero (anag+factory)
accepted
request 1115784
from
Dirk Mueller (dirkmueller)
(revision 21)
- update to 2.8.2: * improve error messages for masked assignment * simplify test collection * added ``pytest.ini`` to allow running pytest with no additional arguments * ``util.sc_encode()``: avoid writing empty blocks at end of compressed stream, ie. skip encoding when total population count is reached * optimize `richcompare()` * `.bytereverse()` no longer sets unused pad bits to zero * fix `sys.getsizeof(bitarray)` by adding `.__sizeof__()`, see issue #100 - Update to 1.5.2:
Comments 0