[Python-Dev] draft PEP: Trace and Profile Support for Threads
Guido van Rossum
Wed, 23 Apr 2003 16:58:09 -0400
> Hrm. While I don't want to overload what looks like a simple PEP, I'd
> like some thoughts about how this ought to interact with thread-local
> storage (if at all). There are some modules (notably the BCD module)
> that need to keep track of state on a per-thread basis, but without
> requiring a user of the module to do the work.
IMO you can do thread-local storage just fine by attaching private
attributes to threading.currentThread().
--Guido van Rossum (home page: http://www.python.org/~guido/)