[issue24020] threading.local() must be run at module level (doc improvement)
Ethan Furman
report at bugs.python.org
Tue Apr 21 18:19:21 CEST 2015
Ethan Furman added the comment:
http://stackoverflow.com/q/1408171/208880
No, it just says (towards the top):
----------------------------------
> One important thing that everybody seems to neglect to mention is that writing
> threadLocal = threading.local() at the global level is required. Calling
> threading.local() within the worker function will not work.
It is now my experience that "will not work" (reliably) is accurate.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24020>
_______________________________________
More information about the Python-bugs-list
mailing list