Quote:
Originally Posted by Dave Flowerday
I'm well aware of struct in Python. It operates on bytes, not bits. Several things in the data stream are bitfields, and it's hard to beat a C struct with each bit individually named that you can just set to 1 or 0. Python structs don't allow this that I'm aware of.
|
Not built in. But a relatively simple class like that discussed here keeps it pretty easy.
http://code.activestate.com/recipes/113799/
I'm not trying to start a flame war. Either C++ or python are good choices, depending on portability requirements. Which is easier depends on the person and the tools at hand.