Here is my function
def f(task_list):
results = []
for task_id in task_list:
results.append(work(task_id))
print len(results) # show the progress
return results
I use execfile() in ipython to run this function,
but it seems that the progress is showed
until the whole function ends
=======================
I tried again, it seems okay now…
try to force to flush stdout :