Craig Rodrigues
2016-06-10 09:57:19 UTC
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
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