[Python-Dev] Proposal: thread.get_dict
Armin Rigo
arigo at tunes.org
Tue Jun 29 11:04:34 EDT 2004
Hello Jim,
On Tue, Jun 29, 2004 at 09:44:27AM -0400, Jim Fulton wrote:
> I have to say that I *really* like your suggestion of the thread.local
> object. I'm not sure the elegance isn't worth the extra dictionary lookup.
We may have the best of both world by providing a pure Python implementation
of class Local. If you want performance then you use [gs]et_thread_local.
For convenience, we should consider setdefault_thread_local() too...
Armin
More information about the Python-Dev
mailing list