[Twisted-Python] [twisted-python] a problem about reactor
Joson Mandaro
joson.prog at gmail.com
Mon Mar 29 09:04:25 MDT 2010
Hi all,
I'm puzzled by this code:
# -*- coding: utf-8 -*-
from twisted.web.client import reactor
f = open("test1.txt","w")
f.write("html")
reactor.run()
Then it won't write anything into test1.txt. When I deleted "reactor.run()",
it will write contents. It is interesting but I don't know why the reactor
blocks file writing.
Best regards,
Joson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20100329/eff238e1/attachment.html>
More information about the Twisted-Python
mailing list