[Twisted-Python] Twisted for Python 3

Itamar Turner-Trauring itamar at itamarst.org
Wed Oct 19 09:25:14 EDT 2011

On Wed, 2011-10-19 at 13:50 +0200, Antoine Pitrou wrote:
> Hello,
> I'm announcing an experimental, work-in-progress port of Twisted to
> Python 3. The homepage, where you can find more detailed information,
> is at https://bitbucket.org/pitrou/t3k

Cool! Any patches you can submit to us that would make the code more
Python 3 compatible, while not breaking Python 2.5 and later, would make
your life easier going forward.

I notice you have banana getting extra op code for bytes... I think a
better solution is to use existing 'string' op code for bytes, and
rejecting unicode strings. What banana calls 'string' *is* bytes, it
doesn't support unicode:


In general, anywhere existing Twisted code uses a Python 2 normal
string, you should have the Python 3 version only accept bytes.

More information about the Twisted-Python mailing list