Is crawling the stack "bad"? Why?
Mon Feb 25 08:40:45 CET 2008
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. It's pretty
lame, though, that the rpc server module itself doesn't make the
request available to the rpc responder. Maybe you should submit a
> My biggest specific fear at the moment is that sys._frame will do
> funky things with multiple threads,
You should not rely on anything that implementation specific at all.
What happens if you want to switch to pypy?
More information about the Python-list