MostAwesomeDude/construct — pull request #19 by eliben (2012-03-06 03:47:43+00:00)
Title: Python 3 support in the same code base

Hi Corbin,

This is construct modified to run under Python 3 as well as Python 2, in the same code base. Specifically, both of the following test runs are succeeding:

> python3 construct/tests/testall.py
> python3 -m unittest discover construct/tests/

Regarding what this means for construct - it doesn't mean parsing Unicode. construct is for parsing byte streams, so the changes are solely for the purpose of making it run at all on Python 3.

I agree completely that text/unicode parsing is not the focus of construct, and would even go as far as to remove the current *very partial and incomplete* support construct has for text parsing. This is ultimately your decision of course.

Feel free to ask me any questions/details about the pull request. It's a pretty straightforward port to a python 2/3 portable code, really.