Yilei Yang <yileiya...@gmail.com> added the comment: Here is a minimal example:
main.py: from pkg_a import lib_a pkg_a/__init__.py pkg_a/lib_a.py import logging import sys import pkg_a # This is important handler = logging.StreamHandler(sys.stderr) It does not happen in Python 3 though (3.5.3 at least). ---------- nosy: +yileiyang _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue21149> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com