python coroutine gevent
from gevent import monkey; monkey.patch_all()
import gevent
from information_from_espace import Espace_info
def get_email(jobNumber):
t = Espace_info(jobNumber)
print t.get_espace_info()
with open('LineCI.txt', 'r') as f:
task_list = []
for i in f:
jobNumber = i.strip('\n').split(',')[0]
task_list.append(gevent.spawn(get_email,jobNumber))
gevent.joinall(task_list)