Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Python 3 Support #9

Open
wackywendell opened this issue Jul 25, 2011 · 2 comments
Open

Python 3 Support #9

wackywendell opened this issue Jul 25, 2011 · 2 comments

Comments

@wackywendell
Copy link

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

@eliben
Copy link

eliben commented Jan 23, 2012

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

@MostAwesomeDude
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants