2021-04-05 10:17:53 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-bitarray: updated to 1.9.0
2021-04-03 1.9.0:
-------------------
* add shift operations (`<<`, `>>`, `<<=`, `>>=`)
* add `bitarray.util.ba2base()` and `bitarray.util.base2ba()`,
see last paragraph in [Bitarray representations](examples/represent.rst)
* documentation and tests
2021-03-31 1.8.2:
-------------------
* fix crash caused by unsupported types in binary operations
* speedup initializing or extending a bitarray from another with different
bit endianness
* add formatting options to `bitarray.util.pprint()`
* add documentation on [bitarray representations](examples/represent.rst)
* add and improve tests (all 291 tests run in less than half a second on
a modern machine)
2021-03-25 1.8.1:
-------------------
* moved implementation of and `hex2ba()` and `ba2hex()` to C-level
|
2021-03-22 10:45:44 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-bitarray: updated to 1.8.0
1.8.0:
* add `bitarray.util.serialize()` and `bitarray.util.deserialize()`
* allow whitespace (ignore space and `\n\r\t\v`) in input strings,
e.g. `bitarray('01 11')` or `a += '10 00'`
* add `bitarray.util.pprint()`
* When initializing a bitarray from another with different bit endianness,
e.g. `a = bitarray('110', 'little')` and `b = bitarray(a, 'big')`,
the buffer used to be simply copied, with consequence that `a == b` would
result in `False`. This is fixed now, that is `a == b` will always
evaluate to `True`.
* add example showing how to jsonize bitarrays
* add tests
|
2021-03-20 20:21:15 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-bitarray: updated to 1.7.1
2021-03-12 1.7.1:
-------------------
* fix issue 114, raise TypeError when incorrect index is used during
assignment, e.g. `a[1.5] = 1`
* raise TypeError (not IndexError) when assigning slice to incorrect type,
e.g. `a[1:4] = 1.2`
* improve some docstrings and tests
2021-02-27 1.7.0:
-------------------
* add `bitarray.util.urandom()`
* raise TypeError when trying to extend bitarrays from bytes on Python 3,
ie. `bitarray(b'011')` and `.extend(b'110')`. (Deprecated since 1.4.1)
|
2021-02-08 07:57:04 by Adam Ciarcinski | Files touched by this commit (4) |
Log message:
py-bitarray: added version 1.6.3
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.
|