[Twisted-Python] Some problems with twisted

Itamar Shtull-Trauring itamar at itamarst.org
Tue Dec 2 10:42:50 EST 2003

On Tue, 2 Dec 2003 09:05:21 +0100
Pieter Claerhout <Pieter.Claerhout at Creo.com> wrote:

> 2. During the execution of the doProcessing function, it's impossible
> to stop the
>    application with e.g. CTRL+BREAK. Is there a way around this?

Yes, don't time.sleep(), that freezes the whole program. That's what
reactor.callLater is for - schedule a function to run in 5 seconds. This
is the same issue as the next one.

As an aside, twisted.internet.app is deprecated. Look at the online docs
for 1.1.0 to see how the new, updated APIs work.

Itamar Shtull-Trauring    http://itamarst.org/
Available for Python & Twisted consulting

More information about the Twisted-Python mailing list