Brett Cannon added the comment: In the common case of SourceLoader it will set __loader__, __package__, __file__, and __cached__. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17314> _______________________________________