Now that we're doing element-wise operations, it makes sense that == and != work that way too.
The current implementation could become a method (numpy uses np.array_equal(A, B) which doesn't really fit the API style of bitstring). You could do (a == b).all(True) if we had an all method :)
Now that we're doing element-wise operations, it makes sense that
==
and!=
work that way too.The current implementation could become a method (numpy uses
np.array_equal(A, B)
which doesn't really fit the API style of bitstring). You could do(a == b).all(True)
if we had anall
method :)Or
a.equals(b)
would be simple enough.