[Twisted-Python] [twisted-python] a problem about reactor

Joson Mandaro joson.prog at gmail.com
Mon Mar 29 11:04:25 EDT 2010

Hi all,

I'm puzzled by this code:

# -*- coding: utf-8 -*-
from twisted.web.client import reactor

f = open("test1.txt","w")

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,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20100329/eff238e1/attachment.htm 

More information about the Twisted-Python mailing list