<div dir="ltr">Thanks. That wiki page has enough info to get started.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 May 2014 13:50, Itamar Turner-Trauring <span dir="ltr"><<a href="mailto:itamar@itamarst.org" target="_blank">itamar@itamarst.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><div class="">
    <div>On 05/20/2014 05:40 AM, Maxim Lacrima
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hello!
        <div><br>
        </div>
        <div>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.</div>
        <div><br>
        </div>
        <div>A simple `from twisted.web.client import Agent`
          causes `ImportError: No module named 'twisted.python.systemd'`</div>
        <div><br>
        </div>
        <div>I would like to help in porting Twisted to Python
          3. I have a couple of questions.<br>
        </div>
        <div><br>
        </div>
        <div>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.</div>
      </div>
    </blockquote>
    <br></div>
    The trial command-line tool is not ported, but the library part is.<br>
    <br>
    <a href="https://twistedmatrix.com/trac/browser/trunk/admin/run-python3-tests" target="_blank">admin/run-python3-tests</a>
    will run Twisted's tests on Python 3.<div class=""><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>So what is a recommended workflow?</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br></div>
    See <a href="https://twistedmatrix.com/trac/wiki/Plan/Python3" target="_blank">https://twistedmatrix.com/trac/wiki/Plan/Python3</a><div class=""><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>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.</div>
      </div>
    </blockquote>
    <br></div>
    Probably Agent would probably need to be modified to explicitly take
    bytes on both Python 2 and Python 3, since URLs are bytes.<br>
    <br>
    <br>
  </div>

<br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<br>Maxim</div>
</div>