[Twisted-Python] Interfaces

Christopher Armstrong radix at twistedmatrix.com
Wed Apr 16 21:27:58 MDT 2003


On 2003.04.16 23:07, Jp Calderone wrote:
>   I went to remove the interface inheritance done in
> twisted.internet.interfaces tonight, thinking it was all my fault.  To my
> surprise, IReadDescriptor and IWriteDescriptor both use it as well though. 
> So what's the story on this?  Is it kosher?
> 
>   Next:  There is no IPerspective, and I think I want one.  What I actually
> *really* want is a way to specify that any class that implements a
> particular interface of mine also be a Perspective.  If interface
> inheritance is okay, I can just make my interface inherit from IPerspective. 
> If it's not, I guess I need another solution.
> 
>   Thoughts?

I like Interface inheritance, and I don't think anyone has really objected to
it yet.

Maybe you were thinking of the objections to _inheriting of Interfaces_ of
superclasses?

-- 
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030416/d2ba833e/attachment.sig>


More information about the Twisted-Python mailing list