[Python-ideas] Allow getting all the items out of a `threading.local`

Ram Rachum ram.rachum at gmail.com
Fri Aug 22 13:40:49 CEST 2014


I propose adding a method to `threading.local` that allows to check the 
values stored for any and all threads.

I asked on Stack Overflow how to do 
that: http://stackoverflow.com/questions/25435908/python-getting-all-the-items-out-of-a-threading-local

But I got the answer that it's only possible on the pure Python 
implementation, not the C one. And it's quite ugly too.

I propose a method be added to both the Python implementation and the C 
implementation of `threading.local` that allows checking the values stored 
for all threads.


Thanks,
Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140822/cf1716b8/attachment.html>


More information about the Python-ideas mailing list