[Twisted-Python] Using zope

Craig Rodrigues rodrigc at crodrigues.org
Fri Jun 10 03:57:19 MDT 2016


Hi,

There are some places in the Twisted code which use zope.interface to do
things like:


class MyClass:
    inherits(IMyInterface)


That works in Python 2, but the zope.interface library has code to hard
fail that
line on Python 3.  The supported way of doing the same thing on Python 2
and 3 is:


@implementer(IMyInterface)
class MyClass

This was discussed on the mailing list before by Barry Warsaw:
https://twistedmatrix.com/pipermail/twisted-python/2013-January/026414.html

I have submitted several patches for review (Trac ticket is in each one):

http://bit.ly/1YhxKI2

For anyone who can help review the patches, the help would be appreciated.
:)

--
Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20160610/b42b3b07/attachment.html>


More information about the Twisted-Python mailing list