Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, benjamin.peterson, gvanrossum, pjenvey, vinay.sajip
Date 2009-10-14.08:38:24
SpamBayes Score 0.0258901
Marked as misclassified No
Message-id <1255509508.73.0.982265302828.issue7120@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2009-10-14 08:38:29amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, gvanrossum, vinay.sajip, pjenvey, benjamin.peterson
2009-10-14 08:38:28amaury.forgeotdarcsetmessageid: <1255509508.73.0.982265302828.issue7120@psf.upfronthosting.co.za>
2009-10-14 08:38:25amaury.forgeotdarclinkissue7120 messages
2009-10-14 08:38:24amaury.forgeotdarccreate