[Python-Dev] Version 3 Proposal: thread-local data (original) (raw)

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