Try using the Queue module - http://docs.python.org/lib/module-Queue.html.
Here is a tutorial with it -
http://www.artfulcode.net/articles/multi-threading-python/.
--
http://mail.python.org/mailman/listinfo/python-list
I'm trying to implement an application that will listen for requests,
run them when they are present but also be able to add new requests
even while it's running. I've tried to do this using the thread and
xmlrpc modules - the idea is that an XML-RPC exposed object tell the
queue thread object to a