12 Apr
2010
12 Apr
'10
12:21 p.m.
Hi,
I'd like to run a python function in a new process, like python 2.6's multiprocessing does. I wanted to use ProcessProtocol, but it seems to only work for executing executables and interacting with them using stdin/stdout/other fds. Is there a way of running a python piece of code in a new process?
Well, the only way to run Python code is to run the Python interpreter in a process and feed it the python code you want to run (using the -c option). Cheers, Reza -- Reza Lotun mobile: +44 (0)7521 310 763 email: rlotun@gmail.com work: reza@tweetdeck.com twitter: @rlotun