scott-griffiths / bitstring

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

Delete not always deleting anything #201

Closed scott-griffiths closed 4 years ago

scott-griffiths commented 4 years ago
>>> s = bitstring.BitArray('0x12345678')
>>> del s[:-12]
>>> s
BitArray('0x12345678')

It should delete everything except the final 12 bits.

scott-griffiths commented 4 years ago

Fixing in 3.1.7