Florent Xicluna <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue8200>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com