During a Python 3000 sprint I have spend some time investigating what it would take to port docutils to Python 3000. The ideal way to handle things is to make changes to the current release and then use the converter that is being created to make a Python-3000 compatible version, so that one can continue to support the 2.x line as well.
The good news is that the converter works on the docutils sources. This doesn't mean the resulting code will work; in fact it won't, but it does a lot of things right already. One thing I found is being fixed in the converter. Another is the following issue, which will require more thought by someone knowledgeable.
The io module appears to attempt to convert things to Unicode and uses such things as types.UnicodeType. In py3k there will only be Unicode strings and their type is 'str'. types.UnicodeType won't exist.
It isn't clear to me if one can fix this using the 'fix the 2.x' line; probably a branch of at least this one file is needed.
Log in to post a comment.