11 Jan
2007
11 Jan
'07
8:32 p.m.
Fred Drake wrote at 2007-1-10 17:30 -0500:
On 1/10/07, Dieter Maurer <dieter@handshake.de> wrote:
*It* must be informed whenever it is used in a different thread.
Perhaps it could use some thread-local data to keep track of this? threading.local comes to mind.
This is a nice idea but in this case not very practical: The module provides lots of functions. Each of these functions would need to get instrumented to interprete the thread-local variable and take appropriate action. -- Dieter