[Twisted-Python] [twisted-python] a problem about reactor
29 Mar
2010
29 Mar
'10
10:04 a.m.
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
5113
Age (days ago)
5113
Last active (days ago)
1 comments
2 participants
participants (2)
-
Albert Brandl
-
Joson Mandaro