[Python-Dev] Version 3 Proposal: thread-local data
Jim Fulton
jim at zope.com
Thu Jul 1 09:34:46 EDT 2004
Samuele Pedroni wrote:
> At 16:53 30.06.2004 -0400, Jim Fulton wrote:
>
...
>
> what happens if there's a thread switch, to another thread using the
> local object, here? between patching __dict__ and accessing __dict__
That's a problem, which is why I've added the use of a reentrant lock in
__getattribute__, __setattr__ and __delattr__. I'll make an updated
version available soon.
Thanks.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Python-Dev
mailing list