[Twisted-Python] Porting Twisted to Python 3.

Maxim Lacrima lacrima.maxim at gmail.com
Tue May 20 03:40:51 MDT 2014


Hello!

I can see that Python 3 support in Twisted is incomplete. I was able to
`pip install twisted` on Python 3, but I couldn't run a simple example
program using Twisted Agent.

A simple `from twisted.web.client import Agent` causes `ImportError: No
module named 'twisted.python.systemd'`

I would like to help in porting Twisted to Python 3. I have a couple of
questions.

My initial idea was to run some twisted tests with trial and start from
there. But it looks like trial is not ported to python3 and also I think
many tests themselves are not python3 aware.

So what is a recommended workflow?

As for Twisted Agent... URL and its parsed components are now bytes, but
`Agent._getEndpoint` operates on str, and so do other functions
(`isIPAddress`, `isIPv6Address`), causing type and other errors.

I would like to fix this (at least to try), but I need some guidance.

Thank you.

-- 
Regards,
Maxim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140520/9425453f/attachment.html>


More information about the Twisted-Python mailing list