Bitarray

Latest version: v3.0.0

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

Scan your dependencies

Page 6 of 17

2.3.2

-------------------
* fix slice assignment for shared buffer with offset case, see 3ba05687
and 73081e98
* add tests (including internal debug mode tests for `buffers_overlap()`)

2.3.1

-------------------
* fix special shared buffer copy case, see 815c2a11
* add and improve tests

2.3.0

-------------------
* add optional `buffer` argument to `bitarray()` to import the buffer of
another object, 141, 146, see also: [buffer protocol](buffer.rst)
* update `.buffer_info()` to include: a read-only flag, an imported buffer
flag, and the number of buffer exports
* add optional start and stop arguments to `util.rindex()`
* add [memory-mapped file](../examples/mmapped-file.py) example
* ignore underscore (`_`) in string input, e.g. `bitarray('1100_0111')`
* add missing type hinting for new `.bytereverse()` arguments
* fix `.extend()` type annotations, 145
* avoid `.reverse()` using temporary memory
* make `.unpack()`, `util.serialize()`, `util.vl_encode()`
and `.__reduce__()` more memory efficient
* add and improve tests

2.2.5

-------------------
* speedup `find_bit()` and `find_last()` using uint64 checking, this means
a speedup for `.find()`, `.index()`, `.search()` and `util.rindex()`
* add optional start and stop arguments to `.bytereverse()`
* add example to illustrate how
[unaligned copying](../examples/copy_n.py) works internally
* add documentation
* add tests

2.2.4

-------------------
* use shift operations to speedup all unaligned copy operations, 142
* expose functionality to Python level only in debug mode for testing
* add and improve tests

2.2.3

-------------------
* speedup `repeat()`, 136
* speedup shift operations, 139
* optimize slice assignment with negative step, e.g.: `a[::-1] = 1`
* add tests

Page 6 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.