[Twisted-Python] Avoid circullair dependencies.

Ivanov Maxim redbaron at hitv.ru
Sun Jul 1 03:45:14 MDT 2007


Some of my logic need protocol to be imoported to be able to send data back.

So when I start app protocol imports my logic (where all data is processed) 
and my logic imports protocol.  Right now I simply pass protocol object as 
argument to constructors, but it seems to be not the best way from my point 
of view. How to solve this problem?




More information about the Twisted-Python mailing list