scott-griffiths / bitstring

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

struct formats `i` and `I` not supported. #340

Open scott-griffiths opened 4 months ago

scott-griffiths commented 4 months ago

We do support l and L for 4-byte ints, but not i and I. I think the latter are the more appropriate as they're always 4 bytes, whereas the former can sometimes be 8 bytes.

There is also potentially a clash between i as a struct-like code and i meaning unsigned int to worry about.

See #339 for some more context.