3 ms·
I wrote a python library that makes it fairly easy to use a bitmap for this a couple of years ago. Seemed to work pretty well. https://github.com/mmmurf/pytho
by grandalf 15y ago
I wrote a python library that makes it fairly easy to use a bitmap for this a couple of years ago. Seemed to work pretty well.
https://github.com/mmmurf/python_bitfield https://github.com/mmmurf/python_bitfield
This was used as a proof of concept and surely contains a few embarrassing bits of code, but oh well.