<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>There are some places in the Twisted code which use zope.interface to do things like:<br><br></div></div><br><div><div class="" style="display:block;padding:0.5em;color:rgb(51,51,51);font-family:monospace;background:rgb(248,248,248)"><div><span class=""><span class="" style="font-weight:bold">class</span> <span class="" style="color:rgb(136,0,0);font-weight:bold">MyClass</span>:</span><br></div>    inherits(IMyInterface)<br></div></div><br><br></div>That works in Python 2, but the zope.interface library has code to hard fail that<br></div>line on Python 3.  The supported way of doing the same thing on Python 2 and 3 is:<br><br></div></div><br><div><div class="" style="display:block;padding:0.5em;color:rgb(51,51,51);font-family:monospace;background:rgb(248,248,248)"><div>@implementer(IMyInterface)<br></div><span class=""><span class="" style="font-weight:bold">class</span> <span class="" style="color:rgb(136,0,0);font-weight:bold">MyClass</span></span></div></div><br>This was discussed on the mailing list before by Barry Warsaw:<br></div><a href="https://twistedmatrix.com/pipermail/twisted-python/2013-January/026414.html" target="_blank">https://twistedmatrix.com/pipermail/twisted-python/2013-January/026414.html</a><br><br></div><div>I have submitted several patches for review (Trac ticket is in each one):</div><div><br></div><div><a href="http://bit.ly/1YhxKI2">http://bit.ly/1YhxKI2</a></div><div><br></div><div>For anyone who can help review the patches, the help would be appreciated. :)</div><div><br></div><div>--<br></div>Craig<br></div>