[Python-Dev] Proposal: thread.get_dict

Aahz aahz at pythoncraft.com
Mon Jun 28 11:07:01 EDT 2004

On Mon, Jun 28, 2004, Jim Fulton wrote:
> 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.

Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Typing is cheap.  Thinking is expensive."  --Roy Smith, c.l.py

More information about the Python-Dev mailing list