Bitarray

Latest version: v3.0.0

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

Scan your dependencies

Page 4 of 17

2.6.2

-------------------
* optimize `richcompare()` for opposite endianness
* improve some docstrings add tests

2.6.1

-------------------
* add documentation on shift operators, 181
* fix typo in iterable initializer description, 179
* optimize `richcompare()`

2.6.0

-------------------
* add data descriptions: `.nbytes`, `.padbits`, `.readonly`
* allow optional `endian` argument to be `None` when creating bitarrays
* fix type annotation for `canonical_decode()`, 178
* frozenbitarray's padbits are now guaranteed to be zero
* add tests

2.5.1

-------------------
* optimize `.reverse()`, see 177
* allow negative (byte) indices in `.bytereverse()`

2.5.0

-------------------
* add calculating of canonical Huffman codes `util.canonical_huffman()`
and decoding thereof `util.canonical_decode()`, see 173
* allow creating "Huffman codes" from frequency maps with a single symbol
in `util.huffman_code()` and `util.canonical_huffman()`, see 172
* allow bytes-like argument in `.frombytes()` and `.pack()` - previously,
the arguments were limited to the `bytes` object, see 174
* allow bytes-like arguments in `util.deserialize()`
* add official [pyodide](https://pyodide.org/) support
* add [DEFLATE decompression](../examples/puff/) example
* optimize `.bytereverse()`
* optimize `delslice()` for cases like `del a[1:17:2]` when `a` is large
* fix `examples/huffman/compress.py` to handle files with 0 or 1 characters,
see also 172
* add `skipIF` decorator for skipping tests
* add tests

2.4.1

-------------------
* improve `resize()`, see 167
* optimize `copy_n()` by avoiding loops, 171
* `.bytereverse()` no longer sets unused pad bits to zero

Page 4 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.