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.9.1.tar.gz 0000182463 178 KB
python-bitarray.changes 0000022447 21.9 KB
python-bitarray.spec 0000002517 2.46 KB
Revision 25 (latest revision is 26)
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1135240 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 25)
- update to 2.9.1:
  * avoid buffer being unnecessarily initialized with 0s in
    several functions of the ``bitarray.util`` module
  * fix ``.count()`` type hint in pyi-file
  * improve testing
  * deprecate support for Python 2 - Python 2.7 support will be
    removed in bitarray version 3.0
  * ``bitarray(n)`` for integer initializer ``n`` will always
    return a bitarray of length ``n`` with all items initialized
    to ``0``
  * allow sub-bitarray in ``.count()``, `#212
  * add ``util.ones()`` ``.find()`` and ``.index()``:
    add keyword argument ``right`` for rightmost index
  * ``.itersearch()``: add start and stop argument, and keyword
  * argument ``right``
  * deprecate ``util.rindex()`` (will be removed in 3.0 release),
  * use ``.index(..., right=True)`` instead
  * deprecate ``util.make_endian()`` (will be removed in 3.0
    release),
  * use ``bitarray(..., endian=...)`` instead
Comments 0
openSUSE Build Service is sponsored by