[Twisted-Python] Second try at reporting gtk reactor problem
David E. Konerding
dekonerding at lbl.gov
Fri Feb 27 11:17:31 EST 2004
Hello, since nobody actually responding with a useful message regarding
my report, I'm
reposting an extremely simple (1 page) example which exhibits the behavior.
My example creates a gtkreactor and runs it. A small reporter class is
run from a second thread.
Under the gtk reactor, the log messages from the second thread are not
reported in a timely
fashion (only once per second or so). From my understanding the
messages should be printed more frequently (about once every 1/10th
second). This does work under the wx and plain reactors, so I suspect
there is a defect in the gtk reactor.
I would simply like to get a confirmation that my example is a valid
one, that the results I expect are valid, and that other
people can reproduce my experience. If that is the case then I will
submit a formal bug report. All of this should be reproducible using
Twisted 1.2.0. Things get even weirder if you remove the logging
support and replace it with all print statements.
import time, sys
from twisted.internet import gtk2reactor
from twisted.python import threadable
from twisted.internet import reactor
from twisted.python import log
print "TestThingy created"
print "TestThingy run"
for i in range(10):
print "TestThingy message"
print "TestThingy done"
f = TestThingy()
log.err("ticker: %d" % time.time())
t = ThingyManager()
More information about the Twisted-Python