[Python-Dev] Proposal: thread.get_dict
jim at zope.com
Mon Jun 28 10:50:08 EDT 2004
We often want to associate data with threads. Python
manages a dictionary per-tread for this purpose, but there's
currently no way to get to this dictionary from Python.
I propose, for 2.4, to add a get_dict method to the thread
module that will return this dictionary. This will be
implemented via a call to PyThreadState_GetDict.
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