STINNER Victor added the comment: I proposed PR 1074 to remove the hasattr(os, 'getpid') from logging.LogRecord constructor. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue30028> _______________________________________