Per thread data

Hrvoje Niksic hniksic at xemacs.org
Mon Jul 9 09:41:30 EDT 2007


Will McGugan <will at willNOmcguganSPAM.com> writes:

> Is there a canonical way of storing per-thread data in Python?

mydata = threading.local()
mydata.x = 1
...

http://docs.python.org/lib/module-threading.html



More information about the Python-list mailing list