bitarray icon indicating copy to clipboard operation
bitarray copied to clipboard

mask assignment

Open fmehats opened this issue 1 year ago • 1 comments

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

fmehats avatar Dec 20 '24 09:12 fmehats

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.

ilanschnell avatar Dec 22 '24 17:12 ilanschnell

I just released bitarray 3.1.0 which includes mask assignment to bitarrays. I'm therefore closing this issue.

ilanschnell avatar Feb 20 '25 01:02 ilanschnell