
March 16, 2005
8:46 a.m.
Hi,
print "Looping..." for i in range(10000000): pass print "Looping done."
regardles I am not sure the reason of the loop and how it fits into the design of Reactor, I wonder why it is *only* 2 seconds. On my laptop 1.1GHz, 256MB RAM it takes a way more to complete the loop and unblock the Reactor's "select". Second comment is why not xrange(10000000). With range my python2.3 starts allocating xxMB of memory. What machine,OS,python version you use? A.