[Twisted-Python] Does anyone use instance-only interface implementation

Itamar Shtull-Trauring itamar at itamarst.org
Sun Jan 4 18:13:42 EST 2004


On Sun, 2004-01-04 at 17:00, Bob Ippolito wrote:

> I've used "instance-only interface implementation" when the instance at 
> hand is Foo (the class itself, for its class methods), not Foo().. but 
> that doesn't work with a stock version of Twisted anyways.  I'm 
> probably going to convert the code to PyProtocols next time it's 
> unearthed for that (and other) reasons, but I figure it's worthy of 
> mention.

Well, this is actually the motivation. Want to fix the code so you can
specify classes implementing interfaces, by setting __implements__ on
their metaclass. 

http://twistedmatrix.com/users/roundup.twistd/twisted/issue457

-- 
Itamar Shtull-Trauring    http://itamarst.org
Looking for a job: http://itamarst.org/resume.html





More information about the Twisted-Python mailing list