[Twisted-Python] AFactory

Zooko zooko at zooko.com
Thu Jul 25 11:53:08 EDT 2002


> The normal idiom here is to have your "userapp" inherit from protocol.Factory.
> The default "factory" implementation does set itself as an attribute on the
> protocols it builds...

Ah!  Of course.  Thanks.

I tend to prefer other techniques (like AFactory) over inheritance when
possible, but since inheritance is the Twisted Way, I'll do it that way.  

Maybe this idiom should be added to plugin.html?

Regards,

Zooko





More information about the Twisted-Python mailing list