This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.snow
Recipients docs@python, eric.snow, eryksun, ethan.furman, paul.moore, rhettinger
Date 2015-04-21.22:34:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429655682.28.0.603601265872.issue24020@psf.upfronthosting.co.za>
In-reply-to
Content
Think of threading.local this way: instances of threading.local are shared between all the threads, but the effective "__dict__" of each instance is per-thread.  Basically, the object stores a dict for each thread.  In __getattribute__, __setattr__, and __delattr__ it swaps the dict for the current thread into place and then does proceeds normally.
History
Date User Action Args
2015-04-21 22:34:42eric.snowsetrecipients: + eric.snow, rhettinger, paul.moore, docs@python, ethan.furman, eryksun
2015-04-21 22:34:42eric.snowsetmessageid: <1429655682.28.0.603601265872.issue24020@psf.upfronthosting.co.za>
2015-04-21 22:34:42eric.snowlinkissue24020 messages
2015-04-21 22:34:42eric.snowcreate