Hacker News new | past | comments | ask | show | jobs | submit login

Have you tried bitarray[1]?

[1]: https://pypi.python.org/pypi/bitarray




It was that easy? Man. Looking forward to giving these a shot...


I've used it quite heavily to parse data that comes in 85- and 1275-bit chunks and it works awesome.

Edit: sorry, it was bitstring, not bitarray. bitstring.BitArray :).


Obligatory XKCD: https://xkcd.com/353/


+1 from me. Excellent library




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: