./devel/py-bitarray, Efficient arrays of booleans

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.9.3, Package name: py312-bitarray-2.9.3, Maintainer: pkgsrc-users

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.


Master sites:

Filesize: 129.613 KB

Version history: (Expand)


CVS history: (Expand)


   2024-01-22 20:50:30 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: updated to 2.9.2

2024-01-01   2.9.2:
-------------------
* optimize initialization from strings by not constantly resizing buffer
* optimize `util.hex2ba()` and `util.base2ba()` by avoiding unnecessary
  copies
* optimize `util.base2ba()` and `util.ba2base()` for `n=16` (hexadecimal)

2023-12-23   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

2023-12-17   2.9.0:
-------------------
* 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()`
* add `util.ones()`
* `.find()` and `.index()`: add keyword argument `right` for rightmost index
* `.itersearch()`: add start and stop argument, and keyword
  argument `right` (for descending order - starting with rightmost match)
* 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
   2023-12-11 10:43:08 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: update to 2.8.5.

2023-12-09   2.8.5:
-------------------
  * speedup unaligned copies by always using word shifts (in combination
    with builtin byte swap 64 when available) when bit-endianness and
    machine byte-order are opposite
  * add `HAVE_BUILTIN_BSWAP64` to header
  * avoid misaligned pointers when casting to `(uint64_t *)`
  * add tests
   2023-12-04 18:31:34 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-bitarray: updated to 2.8.4

2.8.4 (2023-12-04):

simplify copy_n() (remove special cases)
add word shift example C program, and simplify shift_r8()
improve documentation and testing
add roadmap
   2023-11-16 13:28:51 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: updated to 2.8.3

2.8.3:
* ensure readonly attribute is set correctly when creating new objects,
* optimize sparse bitarray compression for raw block type
* improve hash functions in Bloom filter example
   2023-10-06 21:42:15 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: updated to 2.8.2

2.8.2:
* update cibuildwheel to 2.16.1 in order to provide cp312 wheels on PyPI
* 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
   2023-08-07 07:26:01 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-bitarray: updated to 2.8.1

2.8.1:
* use reconstructor function for pickling
* simplify implementation of `.reverse()`
   2023-07-24 20:43:28 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: updated to 2.8.0

2.8.0:
* allow [integer sequence indexing](indexing.rst) by list of indices
* add [masked indexing](indexing.rst) by bitarray masks
* improve `.bytereverse()` docstring
   2023-07-04 12:09:53 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-bitarray: updated to 2.7.6

2.7.6
remove caching hash value