Bitarray

Latest version: v3.1.1

Safety actively analyzes 714973 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 17

3.1.2

-------------------

3.1.1

-------------------
* updated `pythoncapi_compat.h` for pypy3.11 support, see 227
* use `__builtin_parityll()` when available in `util.parity()`
* add `parity_64()` to header
* simplify some tests
* add LFSR example

3.1.0

-------------------
* allow mask assignment to bitarrays, see 225
* add missing masked operations to pyi-file
* refactor `resize()` and avoid overallocation when downsizing buffer
* update `build_wheels.yml`
* fix some typos
* minor simplifications
* rename `growth/` example to `resize/` and add tests for `resize()`
* update gene example
* add comments

3.0.0

-------------------
* see [Bitarray 3 transition](bitarray3.rst)
* remove Python 2.7 support
* `.decode()` now returns iterator (equivalent to past `.iterdecode()`)
* `.search()` now returns iterator (equivalent to past `.itersearch()`)
* remove `.iterdecode()` and `.itersearch()`
* remove `util.rindex()`, use `.index(..., right=1)` instead,
deprecated since 2.9
* remove `util.make_endian()`, use `bitarray(..., endian=...)` instead,
deprecated since 2.9
* remove hackish support for `bitarray()` handling unpickling,
see detailed explaination in 207 - closes 206

2.9.3

-------------------
* add official Python 3.13 support
* update cibuildwheel to 2.21.3
* minor simplifications
* fix some typos

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)

Page 1 of 17

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.