subclassing multiprocessing.Process

James Mills prologic at shortcircuit.net.au
Wed Jan 7 21:40:26 EST 2009


Hey all,

Just a quick clarification on multiprocessing'
Process object. If I were to subclass this, say:

class Foo(Process):

   def foo(self):
      ...

   def run(self):
      ...

Would the parent and child objects
be identical ? That is, would the same
methods of Foo exist in the child ?

Basically I'm trying to create a Process
object, and within that a Pipe to communicate
between the parent and child processes.

cheers
James

--
-- "Problems are solved by method"



More information about the Python-list mailing list