scott-griffiths / bitstring

A Python module to help you manage your bits
https://bitstring.readthedocs.io/en/stable/index.html
MIT License
404 stars 68 forks source link

bit pos not reset when contents reset. #266

Open scott-griffiths opened 1 year ago

scott-griffiths commented 1 year ago

For example

>>> a
BitStream('0x0120310230123', pos=23)
>>> a.u8=4
>>> a
BitStream('0x04', pos=23)

If we reset the value via a property setter we should change the pos back to 0.