Is crawling the stack "bad"? Why?
Boris Borcic
bborcic at gmail.com
Mon Feb 25 06:25:10 EST 2008
Paul Rubin wrote:
> Russell Warren <russandheather at gmail.com> writes:
>> That is exactly where I started (creating my own request handler,
>> snagging the IP address and stashing it), but I couldn't come up with
>> a stash location that would work for a threaded server.
>
> How about a dictionary indexed by by the thread name.
the threading.local class seems defined for that purpose, not that I've ever
used it ;)
BB
More information about the Python-list
mailing list