[issue21761] language reference describes the role of module.__file__ inaccurately

2014-06-14 Thread Eric Snow
Changes by Eric Snow : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch ___ Python tracker ___ __

[issue21761] language reference describes the role of module.__file__ inaccurately

2014-06-14 Thread Eric Snow
New submission from Eric Snow: The language reference [1] says: Ultimately, the loader is what makes use of __file__ and/or __cached__ This implies that loaders should use __file__ and __cached__ when loading a module. Instead loaders are meant to implement exec_module() and use the spec t