[Twisted-Python] Question about processes in python

Jason J. W. Williams jasonjwwilliams at gmail.com
Mon Apr 12 09:57:49 EDT 2010


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

On Mon, Apr 12, 2010 at 6:09 AM, Gabriel Rossetti
<gabriel.rossetti at 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 at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>



More information about the Twisted-Python mailing list