construct
construct copied to clipboard
Python 3 Support
After a quick check, it appears that construct works to some degree after running the 2to3 tool... Cstring and Repeater objects can be created, can parse, and can build. However, the Bytes object cannot parse - it wants a StringIO, not a bytesIO, yet it can't accept a str object.
Anyways, it would be nice to have a python3 version that worked (and was on PyPi)!
I'm actually working on porting Construct to Python 3 (same-codebase support for both 2 & 3), in my fork here - https://github.com/eliben/construct. Stay tuned
Patches welcome. I'd have to think about exactly what this would mean; Construct really isn't meant for parsing Unicode.