[Twisted-Python] knowing which reactor is running

Manlio Perillo manlio_perillo at libero.it
Mon Oct 23 13:45:22 EDT 2006

Nicolas D. Cesar ha scritto:
> El Sábado, 21 de Octubre de 2006 07:11, Manlio Perillo escribió:
>> In a test suite I need to know if the win32eventreactor is running.
>> Any solution?
> I'm new to python and twisted but try:
> print reactor.__class__
> Y get something like: 
> reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
> probably win32eventreactor  will say something like:
> reactor class: <class 'twisted.internet.win32eventreactor.XXX'>

Thanks, it works.
However, maybe, a reactor should have a name attribute.

Regards  Manlio Perillo

More information about the Twisted-Python mailing list