Florent Xicluna <florent.xicl...@gmail.com> added the comment:

I would suggest something like:

if logMultiprocessing:
    try:
        self.processName = sys.modules['multiprocessing'] 
.current_process().name
    except StandardError:
        self.processName = 'MainProcess'
else:
    self.processName = None

----------
nosy: +flox
priority:  -> normal
stage:  -> committed/rejected

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8200>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to