[Twisted-Python] "Old style" classes in Twisted and inheritance

Christopher Armstrong radix at twistedmatrix.com
Tue Nov 13 09:35:01 EST 2007


On Nov 13, 2007 9:07 AM, Atilla <theatilla at gmail.com> wrote:
> Is there any practicular reason for that? Am I wrong to try inherit
> the Looping Call ?

Yes. You're not really getting any benefit from inheriting from it. I
suggest you use composition like in your first example.


-- 
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/




More information about the Twisted-Python mailing list