Skip to content

Commit 2ceb747

Browse files
committed
add release date - update docs
1 parent 9d4e067 commit 2ceb747

File tree

4 files changed

+24
-14
lines changed

4 files changed

+24
-14
lines changed

CHANGE_LOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2025-XX-XX 3.7.2:
1+
2025-10-08 3.7.2:
22
-------------------
33
* enable `util.random_k()` for all supported Python versions,
44
previously this functions required Python 3.9 or higher

README.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Once you have installed the package, you may want to test it:
5757
5858
$ python -c 'import bitarray; bitarray.test()'
5959
bitarray is installed in: /Users/ilan/bitarray/bitarray
60-
bitarray version: 3.7.1
60+
bitarray version: 3.7.2
6161
sys.version: 3.13.5 (main, Jun 16 2025) [Clang 18.1.8]
6262
sys.prefix: /Users/ilan/miniforge
6363
pointer size: 64 bit
@@ -319,7 +319,7 @@ and can therefore be used as a dictionary key:
319319
Reference
320320
=========
321321

322-
bitarray version: 3.7.1 -- `change log <https://github.com/ilanschnell/bitarray/blob/master/doc/changelog.rst>`__
322+
bitarray version: 3.7.2 -- `change log <https://github.com/ilanschnell/bitarray/blob/master/doc/changelog.rst>`__
323323

324324
In the following, ``item`` and ``value`` are usually a single bit -
325325
an integer 0 or 1.
@@ -697,6 +697,11 @@ This sub-module was added in version 1.2.
697697
Also, ``a`` may be any object that exposes a writable buffer.
698698
Nothing about this function is specific to bitarray objects.
699699

700+
We should mention that Python's ``array.array`` object has a
701+
method ``.byteswap()`` with similar functionality. However, unlike
702+
bitarray's ``util.byteswap()`` function, this method is limited to
703+
swapping 2, 4, or 8 consecutive bytes.
704+
700705
New in version 3.4
701706

702707

@@ -838,11 +843,7 @@ This sub-module was added in version 1.2.
838843
set to one. Mathematically equivalent to setting (in a bitarray of
839844
length ``n``) all bits at indices ``random.sample(range(n), k)`` to one.
840845
The random bitarrays are reproducible when giving Python's ``random.seed()``
841-
with a specific seed value.
842-
843-
This function requires Python 3.9 or higher, as it depends on the standard
844-
library function ``random.randbytes()``. Raises ``NotImplementedError``
845-
when Python version is too low.
846+
a specific seed value.
846847

847848
New in version 3.6
848849

doc/changelog.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Change log
22
==========
33

4+
**3.7.2** (2025-10-08):
5+
6+
* enable ``util.random_k()`` for all supported Python versions,
7+
previously this functions required Python 3.9 or higher
8+
* add official Python 3.14 support
9+
* update cibuildwheel to 3.2.0
10+
11+
412
**3.7.1** (2025-08-28):
513

614
* fix type hinting for memoryviews, see `#241 <https://github.com/ilanschnell/bitarray/issues/241>`__

doc/reference.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Reference
22
=========
33

4-
bitarray version: 3.7.1 -- `change log <https://github.com/ilanschnell/bitarray/blob/master/doc/changelog.rst>`__
4+
bitarray version: 3.7.2 -- `change log <https://github.com/ilanschnell/bitarray/blob/master/doc/changelog.rst>`__
55

66
In the following, ``item`` and ``value`` are usually a single bit -
77
an integer 0 or 1.
@@ -379,6 +379,11 @@ This sub-module was added in version 1.2.
379379
Also, ``a`` may be any object that exposes a writable buffer.
380380
Nothing about this function is specific to bitarray objects.
381381

382+
We should mention that Python's ``array.array`` object has a
383+
method ``.byteswap()`` with similar functionality. However, unlike
384+
bitarray's ``util.byteswap()`` function, this method is limited to
385+
swapping 2, 4, or 8 consecutive bytes.
386+
382387
New in version 3.4
383388

384389

@@ -520,11 +525,7 @@ This sub-module was added in version 1.2.
520525
set to one. Mathematically equivalent to setting (in a bitarray of
521526
length ``n``) all bits at indices ``random.sample(range(n), k)`` to one.
522527
The random bitarrays are reproducible when giving Python's ``random.seed()``
523-
with a specific seed value.
524-
525-
This function requires Python 3.9 or higher, as it depends on the standard
526-
library function ``random.randbytes()``. Raises ``NotImplementedError``
527-
when Python version is too low.
528+
a specific seed value.
528529

529530
New in version 3.6
530531

0 commit comments

Comments
 (0)