Skip to content

Commit

Permalink
A few things before the point release.
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-griffiths committed Sep 7, 2023
1 parent 80c0557 commit 2dd3568
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions doc/array.rst
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,12 @@ Rule 4 ``'float16'`` ``-=`` ``'bfloat'`` → ``'float1
Comparison operators
""""""""""""""""""""

Comparison operators can operate between two ``Array`` objects, or between an ``Array`` and a scalar quantity (usually a number).

Note that they always produce an ``Array`` of :attr:`~Array.dtype` ``'bool'``, including the equality and inequality operators.

To test the boolean equality of two Arrays use the :meth:`~Array.equals` method instead.

.. method:: Array.__eq__(self, other: int | float | str | BitsType | Array) -> Array

``a1 == a2``
Expand Down
4 changes: 2 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Arrays of bitstrings
^^^^^^^^^^^^^^^^^^^^

.. note ::
This class was introduced in version 4.1.0 of bitstring, and is a 'beta' feature that may have some small changes in future point releases.
This class was introduced in version 4.1 of bitstring, and is a 'beta' feature that may have some small changes in future point releases.
If you are dealing with just one type of data but perhaps it's not one of the dozen or so supported in the ``array`` module in the standard library, then we have you covered with the :class:`Array` class.

Expand All @@ -109,7 +109,7 @@ You can also easily change the data's interpretation, convert to another format,
>>> a = bitstring.Array('uint16', [0, 1, 4, 6, 11, 2, 8, 7])
>>> a.data
BitArray('0x0000000100040006000b000200080007')
>>> b = bitstring.Array('int5', a.tolist())
>>> b = a.astype('uint5')
>>> b.data
BitArray('0x0048658907')
>>> a.tolist() == b.tolist()
Expand Down
6 changes: 3 additions & 3 deletions release_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
bitstring module version history
--------------------------------

-----------------------------------
In development: version 4.1.2
-----------------------------------
--------------------------------------
September 2023: version 4.1.2 released
--------------------------------------
Another maintenance release. Once again some small changes to the 'beta' Array class,
plus new Array functionality.

Expand Down

0 comments on commit 2dd3568

Please sign in to comment.