Serhiy Storchaka added the comment: Brett, can __file__ of imported/executed module be None, bytes or absent in 3.6? Can it be non-str? ---------- nosy: +brett.cannon _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue27238> _______________________________________