Richard Oudkerk added the comment:

> Thanks Richard. The set_start_method() call will affect any process 
> started from that time on? Is it possible to change idea at some point in 
> the future?

You can use different start methods in the same program by creating different 
contexts:

  spawn_ctx = multiprocessing.get_context('spawn')
  manager = spawn_ctx.Manager()

> Anyway, I cannot upgrade right now.
>
> Would it be an option to subclass BaseProxy, override the _after_fork
> method so it will do nothing upon forking?

That would probably mean that proxy objects could not be inherited by *any* 
sub-process.  (You would then need to use some other way of sharing access 
between processes and to manage the lifetime of the shared object.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20660>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to