Hi all,<br><br>I&#39;m puzzled by this code:<br><br># -*- coding: utf-8 -*-<br>from twisted.web.client import reactor<br><br>f = open(&quot;test1.txt&quot;,&quot;w&quot;)<br>f.write(&quot;html&quot;)<br>reactor.run()<br><br>
Then it won&#39;t write anything into test1.txt. When I deleted &quot;reactor.run()&quot;, it will write contents. It is interesting but I don&#39;t know why the reactor blocks file writing.<br><br>Best regards,<br><br>Joson<br>