This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbt
Recipients mythsmith, sbt
Date 2014-02-19.22:13:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392847995.25.0.236573506621.issue20660@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.)
History
Date User Action Args
2014-02-19 22:13:15sbtsetrecipients: + sbt, mythsmith
2014-02-19 22:13:15sbtsetmessageid: <1392847995.25.0.236573506621.issue20660@psf.upfronthosting.co.za>
2014-02-19 22:13:15sbtlinkissue20660 messages
2014-02-19 22:13:14sbtcreate