Per thread data

Hrvoje Niksic hniksic at xemacs.org
Mon Jul 9 15:41:30 CEST 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