Jason J. W. Williams wrote: > Hi Gabriel, > > You might want to try Python's multiprocessing code, it works very > well. I've had pretty good luck using it with Twisted inside the > processes too. The multiprocessing library handles the work of setting > up the send and receive file descriptors. > > -J > Hi Jason,
yes, I was going to use that but I read in several threads that this didn't work correctly in Twisted Gabriel > On Mon, Apr 12, 2010 at 6:09 AM, Gabriel Rossetti > <gabriel.rosse...@arimaz.com> wrote: > >> Hello everyone, >> >> 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? >> >> Thank you, >> Gabriel >> >> _______________________________________________ >> Twisted-Python mailing list >> Twisted-Python@twistedmatrix.com >> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python >> >> > > _______________________________________________ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python