[Twisted-Python] _pollingfile._PollingTimer

Jean-Paul Calderone exarkun at divmod.com
Sun Oct 1 13:23:34 EDT 2006


On Sun, 01 Oct 2006 19:06:46 +0200, Manlio Perillo <manlio_perillo at libero.it> wrote:
>Since the _PollingTimer can be reused for a possible console support,
>why not to make it a public "simil reactor"?
>
>As an example:
>
>class UPollReactor(object):
>   """User mode polling reactor, for Windows.
>
>      Note that this is not a real reactor.
>   """
>
>   def addResource(self, resource, action):
>	...
>
>   def run():
>      # add a fake resource, just to do the job done by twistd with the
>      # TimeService
>      ...
>
>
>
>twistd can, as an example, always "run" the UPollReactor when on a
>windows system.
>

Huh?

Jean-Paul




More information about the Twisted-Python mailing list