Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does gevent interact with threading.local data?

Tags:

gevent

Will data stored in a threading.local be unique to a specific co-routine, or will it continue to be unique to a python thread?

like image 605
limscoder Avatar asked Mar 12 '13 05:03

limscoder


1 Answers

According to the documentation of gevent.monkey at http://www.gevent.org/gevent.monkey.html, the thread and threading modules become greenlet-based. "Thread-local storage becomes greenlet-local storage."

like image 101
kkurian Avatar answered Oct 04 '22 20:10

kkurian