# HG changeset patch # User paulb # Date 1189900015 0 # Node ID 761f6fca5e2edcc5e560315c033e4823ff69529d # Parent ebd8b8e451ec9f7548f64a5bcfdfa5b1cfab88e7 [project @ 2007-09-15 23:46:55 by paulb] Added a create method for the Map class. diff -r ebd8b8e451ec -r 761f6fca5e2e pprocess.py --- a/pprocess.py Sat Sep 15 19:42:24 2007 +0000 +++ b/pprocess.py Sat Sep 15 23:46:55 2007 +0000 @@ -609,6 +609,18 @@ self.results.append(None) # placeholder Exchange.start(self, callable, *args, **kw) + def create(self): + + """ + Using pprocess.create, create a new process and return the created + communications channel to the created process. In the creating process, + return None - the channel receiving data from the created process will + be automatically managed by this exchange. + """ + + self.results.append(None) # placeholder + return Exchange.create(self) + def __call__(self, callable, sequence): "Wrap and invoke 'callable' for each element in the 'sequence'."