Message93968
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' |
|
Date |
User |
Action |
Args |
2009-10-14 08:38:29 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, gvanrossum, vinay.sajip, pjenvey, benjamin.peterson |
2009-10-14 08:38:28 | amaury.forgeotdarc | set | messageid: <1255509508.73.0.982265302828.issue7120@psf.upfronthosting.co.za> |
2009-10-14 08:38:25 | amaury.forgeotdarc | link | issue7120 messages |
2009-10-14 08:38:24 | amaury.forgeotdarc | create | |
|