Bitarray

Latest version: v2.9.2

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

Scan your dependencies

Page 8 of 16

2.0.0

-------------------
* require more specific objects, int (0 or 1) or bool, see 119
* items are always returned as int 0 or 1, 119
* remove `.length()` method (deprecated since 1.5.1 - use `len()`)
* in `.unpack()` the `one` argument now defaults to 0x01 (was 0xff)
* `.tolist()` now always returns a list of integers (0 or 1)
* fix frozenbitarray hash function, see 121
* fix frozenbitarray being mutable by `<<=` and `>>=`
* support sequence protocol in `.extend()` (and bitarray creation)
* improve OverflowError messages from `util.int2ba()`
* add [hexadecimal example](../examples/hexadecimal.py)

1.9.2

-------------------
* update pythoncapi_compat: Fix support with PyPy 3.7, 120
* update readme

1.9.1

-------------------
* switch documentation from markdown to reStructuredText
* add tests

1.9.0

-------------------
* add shift operations (`<<`, `>>`, `<<=`, `>>=`), see 117
* add `bitarray.util.ba2base()` and `bitarray.util.base2ba()`,
see last paragraph in [Bitarray representations](represent.rst)
* documentation and tests

1.8.2

-------------------
* fix crash caused by unsupported types in binary operations, 116
* speedup initializing or extending a bitarray from another with different
bit-endianness
* add formatting options to `bitarray.util.pprint()`
* add documentation on [bitarray representations](represent.rst)
* add and improve tests (all 291 tests run in less than half a second on
a modern machine)

1.8.1

-------------------
* moved implementation of and `hex2ba()` and `ba2hex()` to C-level
* add `bitarray.util.parity()`

Page 8 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.