construct icon indicating copy to clipboard operation
construct copied to clipboard

Python 3 Support

Open wackywendell opened this issue 13 years ago • 2 comments

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)!

wackywendell avatar Jul 25 '11 13:07 wackywendell

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

eliben avatar Jan 23 '12 03:01 eliben

Patches welcome. I'd have to think about exactly what this would mean; Construct really isn't meant for parsing Unicode.

MostAwesomeDude avatar Mar 06 '12 02:03 MostAwesomeDude