Closed m472 closed 11 months ago
Hi. Thanks for the bug report. I've reproduced it and can see what's happened. The fix should be simple but I should write a few tests to make sure it doesn't happen again.
I was planning a bug fix release in a day or two, so a fix should be available soon.
Cheers.
Version 4.1.1 just released should fix this issue.
I use the following code to create bitflips at random positions:
With version 4.0.2 of bitstring this used to work just fine. However with version 4.1.0 this no longer works and instead produces the following error message:
If I cast the index on the right hand side of the assignment it works just fine, which I will now use as a workaround:
Used versions: bitstring: 4.0.2 and 4.1.0 numpy: 1.24.0 python: 3.8.16