Re: reloading code and multiprocessing
On Mon, Jul 23, 2012 at 11:51 PM, andrea crotti
> Anyway the only other problem which I found is that if I start the
> subprocesses after many other things are initialised, it might happen
> that the reloading doesn't work correctly, is that right?
> Because sys.modules will get inherited from the subprocesses and it
> will not reimport what has been already imported as far as I
> So or I make sure I import everything only where it is needed or (and
> maybe better and more explicit) I remove manually from sys.modules all
> the modules that I want to reload, what do you think?
That would probably be correct. However, I still think you may be
fighting against the language instead of playing to its strengths.
I've never fiddled with sys.modules like that, but I know some have,
|All times are GMT. The time now is 11:03 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.