a1354970e2
- update to 3.5.2: * optimize util.random_p() by also using bitwise AND in final step * fix DeprecationWarning regarding u type code * add verification tests for internals of util.random_p() * optimize util.random_p() for n < 100 * add Random Bitarrays documentation * add statistical tests for random functions
Dirk Mueller2025-07-22 09:53:24 +00:00
f3f61ae5a1
- update to 3.5.2: * optimize util.random_p() by also using bitwise AND in final step * fix DeprecationWarning regarding u type code * add verification tests for internals of util.random_p() * optimize util.random_p() for n < 100 * add Random Bitarrays documentation * add statistical tests for random functions
Dirk Mueller2025-07-22 09:53:24 +00:00
d9199dfe94
Accepting request 1290225 from devel:languages:python
Ana Guerrero2025-07-06 15:07:44 +00:00
4941e18ae3
Accepting request 1290225 from devel:languages:python
Ana Guerrero2025-07-06 15:07:44 +00:00
955952485e
- Update to 3.4.3 * minor updates to documentation * C-level: - simplify and speedup extend_unicode01() - customize resize_lite() - avoid unused code - use PyTypeObject for bitarray type object in _util.c to be consistent with _bitarray.c - add and improve comments to implementation of sparse bitarray compression - simplify sc_count()Markéta Machová2025-07-03 12:30:22 +00:00
a00324bd9e
Accepting request 1290181 from home:glaubitz:branches:devel:languages:python
Markéta Machová2025-07-03 12:30:22 +00:00
e10f4a5cb4
Accepting request 1283506 from devel:languages:python
Ana Guerrero2025-06-06 20:43:30 +00:00
3f3ddd944d
Accepting request 1283506 from devel:languages:python
Ana Guerrero2025-06-06 20:43:30 +00:00
9a64816d18
- Update to 3.4.2 * extend documentation of [compression of sparse bitarrays](sparse_compression.rst) * util.sc_decode() and util.vl_decode() now raise StopIteration instead of ValueError when unexpected end of stream is encountered * add debug mode tests for read_n(), write_n() and count_from_word()Markéta Machová2025-05-30 08:23:00 +00:00
a86a98f07a
Accepting request 1281265 from home:glaubitz:branches:devel:languages:python
Markéta Machová2025-05-30 08:23:00 +00:00
ee0767129e
Accepting request 1278335 from devel:languages:python
Ana Guerrero2025-05-20 07:38:14 +00:00
1a83050b78
Accepting request 1278335 from devel:languages:python
Ana Guerrero2025-05-20 07:38:14 +00:00
99805b79f9
- Update to version 3.4.1 * add pyproject.toml, see #233 * implement bits2bytes() in C. * optimize delslice() when step is larger than about 5. * consistently name *_span() and *_range() in C for invert, set and count. * organize and add tests.
Matej Cepl2025-05-19 07:49:03 +00:00
4a50663e5e
Accepting request 1278168 from home:mnhauke
Matej Cepl2025-05-19 07:49:03 +00:00
9d11ad39e6
Accepting request 1277385 from devel:languages:python
Ana Guerrero2025-05-14 15:02:00 +00:00
a76c275aac
Accepting request 1277385 from devel:languages:python
Ana Guerrero2025-05-14 15:02:00 +00:00
80822caf47
- Update to 3.4.0 * remove .endian() method in favor of data descriptor .endian * allow bitarray initializer bytes or bytearray to set buffer directly * allow calling .extend() with bytes object (although the only valid bytes are 0x00 and 0x01) * add util.byteswap() * add util.correspond_all() * fix .reverse() for imported buffer * drop Python 3.5 support * add tests
Markéta Machová2025-05-14 10:17:20 +00:00
eb0255597d
Accepting request 1277371 from home:glaubitz:branches:devel:languages:python
Markéta Machová2025-05-14 10:17:20 +00:00
4ce36c7473
Accepting request 1274384 from devel:languages:python
Ana Guerrero2025-05-05 20:28:37 +00:00
af9d9c36d9
Accepting request 1274384 from devel:languages:python
Ana Guerrero2025-05-05 20:28:37 +00:00
137bc87d17
- Update to 3.3.2 * fix off-by-one-error in check for length of count argument in util.canonical_decode() * simplify util.int2ba() * add tests * add [masked indexing example](../examples/masked.py) * add [tricks example](../examples/tricks.py)
Markéta Machová2025-05-05 09:12:31 +00:00
abd2992adc
Accepting request 1274347 from home:glaubitz:branches:devel:languages:python
Markéta Machová2025-05-05 09:12:31 +00:00
9a634f45ef
Accepting request 1272311 from devel:languages:python
Ana Guerrero2025-04-24 15:26:00 +00:00
dd78090ad5
Accepting request 1272311 from devel:languages:python
Ana Guerrero2025-04-24 15:26:00 +00:00
3d35867c0e
- update to 3.3.1: * remove License classifier in favor of a SPDX license expression, #231 * reorganize and cleanup many tests * add optional group and sep arguments' to .to01(), #230 - as well as util.ba2hex() and util.ba2base() * ignore whitespace in util.base2ba() and util.hex2ba() * check for embedded nul characters when extending (and initializing) bitarray from string * improve testing * add double precision floating point number example
Dirk Mueller2025-04-24 06:53:08 +00:00
a5c0a4b5d7
- update to 3.3.1: * remove License classifier in favor of a SPDX license expression, #231 * reorganize and cleanup many tests * add optional group and sep arguments' to .to01(), #230 - as well as util.ba2hex() and util.ba2base() * ignore whitespace in util.base2ba() and util.hex2ba() * check for embedded nul characters when extending (and initializing) bitarray from string * improve testing * add double precision floating point number example
Dirk Mueller2025-04-24 06:53:08 +00:00
50f2894b1b
Accepting request 1255999 from devel:languages:python
Ana Guerrero2025-03-25 21:13:05 +00:00
277116c56b
Accepting request 1255999 from devel:languages:python
Ana Guerrero2025-03-25 21:13:05 +00:00
83983118f1
- Update to 3.2.0 * add util.xor_indices(), #229 * add Hamming code example - Update to 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 - Update to 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
Markéta Machová2025-03-25 15:04:06 +00:00
99576ae46d
Accepting request 1255980 from home:nkrapp:branches:devel:languages:python
Markéta Machová2025-03-25 15:04:06 +00:00
7c1666c044
Accepting request 1218794 from devel:languages:python
Ana Guerrero2024-10-28 14:23:05 +00:00
d859070fd2
Accepting request 1218794 from devel:languages:python
Ana Guerrero2024-10-28 14:23:05 +00:00
47b4d4db80
- update to 3.0.0: * see Bitarray 3 transition * 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 * add official Python 3.13 support * update cibuildwheel to 2.21.3 * minor simplifications * fix some typos
Dirk Mueller2024-10-28 11:36:24 +00:00
4ba8c4a5c6
- update to 3.0.0: * see Bitarray 3 transition * 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 * add official Python 3.13 support * update cibuildwheel to 2.21.3 * minor simplifications * fix some typos
Dirk Mueller2024-10-28 11:36:24 +00:00
f402fddac8
Accepting request 1217238 from devel:languages:python
Ana Guerrero2024-10-23 19:11:02 +00:00
f0e467fd4d
Accepting request 1217238 from devel:languages:python
Ana Guerrero2024-10-23 19:11:02 +00:00
6384fb15f2
package is required for SUSE AI project
Dirk Mueller2024-10-23 08:16:01 +00:00
6f1b937c0e
Accepting request 1217120 from home:yeey:OpenWebUI
Dirk Mueller2024-10-23 08:16:01 +00:00
afbafa38d1
Accepting request 1137632 from devel:languages:python
Ana Guerrero2024-01-09 19:49:35 +00:00
b552b0fbcc
Accepting request 1137632 from devel:languages:python
Ana Guerrero2024-01-09 19:49:35 +00:00
16ca85d60a
- update to 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)
Dirk Mueller2024-01-08 20:42:48 +00:00
924aaf6cab
- update to 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)
Dirk Mueller2024-01-08 20:42:48 +00:00
f91cad9310
Accepting request 1135240 from devel:languages:python
Ana Guerrero2023-12-28 22:01:04 +00:00
0f86a1caf4
Accepting request 1135240 from devel:languages:python
Ana Guerrero2023-12-28 22:01:04 +00:00
06e752e37d
- update to 2.9.1: * avoid buffer being unnecessarily initialized with 0s in several functions of the `bitarray.util module * fix .count() type hint in pyi-file * improve testing * deprecate support for Python 2 - Python 2.7 support will be removed in bitarray version 3.0 * bitarray(n) for integer initializer n will always return a bitarray of length n with all items initialized to 0 * allow sub-bitarray in .count(), #212 * add `util.ones().find() and .index(): add keyword argument right for rightmost index * .itersearch(): add start and stop argument, and keyword * argument right * deprecate util.rindex() (will be removed in 3.0 release), * use .index(..., right=True) instead * deprecate util.make_endian() (will be removed in 3.0 release), * use bitarray(..., endian=...)` instead
Dirk Mueller2023-12-27 09:31:03 +00:00
4eb9a2941f
- update to 2.9.1: * avoid buffer being unnecessarily initialized with 0s in several functions of the `bitarray.util module * fix .count() type hint in pyi-file * improve testing * deprecate support for Python 2 - Python 2.7 support will be removed in bitarray version 3.0 * bitarray(n) for integer initializer n will always return a bitarray of length n with all items initialized to 0 * allow sub-bitarray in .count(), #212 * add `util.ones().find() and .index(): add keyword argument right for rightmost index * .itersearch(): add start and stop argument, and keyword * argument right * deprecate util.rindex() (will be removed in 3.0 release), * use .index(..., right=True) instead * deprecate util.make_endian() (will be removed in 3.0 release), * use bitarray(..., endian=...)` instead
Dirk Mueller2023-12-27 09:31:03 +00:00
98a78b2bf3
Accepting request 1133923 from devel:languages:python
Ana Guerrero2023-12-19 22:15:52 +00:00
037550694f
Accepting request 1133923 from devel:languages:python
Ana Guerrero2023-12-19 22:15:52 +00:00
cc0ffcd814
- update to 2.8.5: * speedup unaligned copies by always using word shifts (in combination with builtin byte swap 64 when available) when bit-endianness and machine byte-order are opposite * add `HAVE_BUILTIN_BSWAP64 to header * avoid misaligned pointers when casting to (uint64_t *)` * add tests
Dirk Mueller2023-12-11 22:14:33 +00:00
8eec765c40
- update to 2.8.5: * speedup unaligned copies by always using word shifts (in combination with builtin byte swap 64 when available) when bit-endianness and machine byte-order are opposite * add `HAVE_BUILTIN_BSWAP64 to header * avoid misaligned pointers when casting to (uint64_t *)` * add tests
Dirk Mueller2023-12-11 22:14:33 +00:00
bf67d8c9ec
Accepting request 1131186 from devel:languages:python
Ana Guerrero2023-12-06 22:47:57 +00:00
d9ee31bb08
Accepting request 1131186 from devel:languages:python
Ana Guerrero2023-12-06 22:47:57 +00:00
e775533eaa
- update to 2.8.4: * simplify `copy_n() (remove special cases) * add word shift example C program * and simplify `shift_r8()` * improve documentation and testing
Dirk Mueller2023-12-05 17:42:37 +00:00
8c7ac01ca5
- update to 2.8.4: * simplify `copy_n() (remove special cases) * add word shift example C program * and simplify `shift_r8()` * improve documentation and testing
Dirk Mueller2023-12-05 17:42:37 +00:00
160662bd7c
Accepting request 1125860 from devel:languages:python
Ana Guerrero2023-11-14 20:43:32 +00:00
2c90f2047d
Accepting request 1125860 from devel:languages:python
Ana Guerrero2023-11-14 20:43:32 +00:00
8065822b6e
- update to 2.8.3: * ensure readonly attribute is set correctly when creating new objects * optimize sparse bitarray compression for raw block type * improve hash functions in Bloom filter example
Dirk Mueller2023-11-14 12:07:11 +00:00
a2b8963cbf
- update to 2.8.3: * ensure readonly attribute is set correctly when creating new objects * optimize sparse bitarray compression for raw block type * improve hash functions in Bloom filter example
Dirk Mueller2023-11-14 12:07:11 +00:00
a578ced37b
Accepting request 1115784 from devel:languages:python
Ana Guerrero2023-10-05 18:04:57 +00:00
5d5a24195a
Accepting request 1115784 from devel:languages:python
Ana Guerrero2023-10-05 18:04:57 +00:00
6b6ced3745
- update to 2.8.2: * improve error messages for masked assignment * simplify test collection * added `pytest.ini to allow running pytest with no additional arguments * util.sc_encode(): avoid writing empty blocks at end of compressed stream, ie. skip encoding when total population count is reached * optimize richcompare() * .bytereverse() no longer sets unused pad bits to zero * fix sys.getsizeof(bitarray) by adding .__sizeof__()`, see issue #100 - Update to 1.5.2:
Dirk Mueller2023-10-05 09:34:21 +00:00
18e79b83da
- update to 2.8.2: * improve error messages for masked assignment * simplify test collection * added `pytest.ini to allow running pytest with no additional arguments * util.sc_encode(): avoid writing empty blocks at end of compressed stream, ie. skip encoding when total population count is reached * optimize richcompare() * .bytereverse() no longer sets unused pad bits to zero * fix sys.getsizeof(bitarray) by adding .__sizeof__()`, see issue #100 - Update to 1.5.2:
Dirk Mueller2023-10-05 09:34:21 +00:00
a977a5170d
- update to 2.8.1: * use reconstructor function for pickling * simplify implementation of `.reverse() * allow integer sequence indexing <indexing.rst>__ by list of indices, * add masked indexing <indexing.rst>__ by bitarray masks, * improve .bytereverse()` docstring, see issue
Dirk Mueller2023-08-09 07:50:09 +00:00
860bbc8049
- update to 2.8.1: * use reconstructor function for pickling * simplify implementation of `.reverse() * allow integer sequence indexing <indexing.rst>__ by list of indices, * add masked indexing <indexing.rst>__ by bitarray masks, * improve .bytereverse()` docstring, see issue
Dirk Mueller2023-08-09 07:50:09 +00:00
f9df6892e4
- update to 2.7.5: * fix for pypy3.9-v7.3.11 * register `bitarray as abc.MutableSequence` * improve documentation regarding type when indexing single * bitarray items
Dirk Mueller2023-06-11 11:52:35 +00:00
075cb523e7
- update to 2.7.5: * fix for pypy3.9-v7.3.11 * register `bitarray as abc.MutableSequence` * improve documentation regarding type when indexing single * bitarray items
Dirk Mueller2023-06-11 11:52:35 +00:00
accc2f61a0
- update to 2.7.3: * fix popcount64 name conflict on NetBSD * even though PyPy is not actively supported, allow running tests for PyPy 3.7 and 3.8 * allow running `python setup.py test * add official Python 3.12 support * simplify count functionality in util module * retire bitcount_lookup[256] table * improve util.count_n() error messages * avoid util module tests from being run more than once in each call to bitarray.test()` when called multiple times in the same Python process * improve testing
Dirk Mueller2023-03-06 21:24:53 +00:00
874f453721
- update to 2.7.3: * fix popcount64 name conflict on NetBSD * even though PyPy is not actively supported, allow running tests for PyPy 3.7 and 3.8 * allow running `python setup.py test * add official Python 3.12 support * simplify count functionality in util module * retire bitcount_lookup[256] table * improve util.count_n() error messages * avoid util module tests from being run more than once in each call to bitarray.test()` when called multiple times in the same Python process * improve testing
Dirk Mueller2023-03-06 21:24:53 +00:00