Author vinay.sajip
Recipients amaury.forgeotdarc, benjamin.peterson, gvanrossum, pjenvey, vinay.sajip
Date 2009-10-14.10:00:37
SpamBayes Score 2.07495e-05
Marked as misclassified No
Message-id <>
In-reply-to <>
> Whatever the value of logMultiprocessing is, I suggest to not import the

> multiprocessing module if the application did not import it before:
> something like:
>     if "multiprocessing" in sys.modules:
>         from multiprocessing import current_process
>         self.processName = current_process().name
>     else:
>         # current_process().name returns this the first time
>         self.processName = 'MainProcess'

I suggested "None" because that was the value used in r70348 when logMultipocessing is False. I presume you're only talking about when it's True? I'm confused by your "Whatever the value of logMultiprocessing is, ...".

Should the system behaviour really change depending on whether multiprocessing was already imported? I can see why you're suggesting it but it makes me a little uneasy :-S
Date User Action Args
2009-10-14 10:00:40vinay.sajipsetrecipients: + vinay.sajip, gvanrossum, amaury.forgeotdarc, pjenvey, benjamin.peterson
2009-10-14 10:00:38vinay.sajiplinkissue7120 messages
2009-10-14 10:00:37vinay.sajipcreate