bitarray
bitarray copied to clipboard
mask assignment
Hello, thanks for your nice package. I would like to know how to implement efficiently mask assignment. Something like: a = bitarray('0000000') b = bitarray('1100110') c = bitarray('1010') a[b] = c in order to get : bitarray('1000100') Thanks in advance
Thanks for requesting this feature. I have been thinking about this for a while and had created a branch with this feature over a year ago. I just mad a commit 6326c5c71cd6eb6ff63c8115c028688882add89b with updated changes. This will be part of the 3.1.0 release.
I just released bitarray 3.1.0 which includes mask assignment to bitarrays. I'm therefore closing this issue.