[issue1868] threading.local doesn't free attrs when assigning thread exits

Antoine Pitrou report at bugs.python.org
Sun Aug 22 00:21:04 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

It should be noted that the original reason for this issue is already gone in SVN (as part of the reimplementation alluded to above), but the timing fragility is still there since there can be a thread switch between the moment the "dict" member is set and the moment it is actually used. Hence the patch I've posted, to get rid of the "dict" member and instead handle lookups of the __dict__ attributes ourselves.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1868>
_______________________________________


More information about the Python-bugs-list mailing list