cgi "print statement" in multithreaded enviroment?

vegetax vegeta.z at gmail.com
Mon May 2 20:10:05 EDT 2005


How can i use cgi'like print statement in a multitreaded web framework?
each thread has its own Servlet instance with request/response objects,
sys.stdout = self.response(which is a file like object) wont work because
all threads will set the same file object and it will be a concurrence
mess.

I am out of ideas here,so any hacks welcome =)




More information about the Python-list mailing list