[issue1868] threading.local doesn't free attrs when assigning thread exits
Amaury Forgeot d'Arc
report at bugs.python.org
Tue Sep 2 14:55:38 CEST 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
With the patch, subclasses of threading.local seem to have an empty
__dict__:
import threading
class MyLocal(threading.local):
pass
l = MyLocal()
l.x = 2
l.__dict__ # returns {}
Maybe __dict__ should be special-cased in local_getattro()?
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1868>
_______________________________________
More information about the Python-bugs-list
mailing list