This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients brett.cannon
Date 2014-05-02.17:05:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399050355.25.0.485510174876.issue21335@psf.upfronthosting.co.za>
In-reply-to
Content
Even with setting SourceFileLoader, you still don't get file lines back. Why? Because all of the constructed objects in _frozen_importlib have their co_filename set before the back-patching in importlib.__init__ and so when the traceback module tries to do its thing it sees '<frozen importlib._bootstrap>' as the filename instead of importlib._bootstrap.__file__ which doesn't lead to linecache getting anything useful.

IOW a whole lot of effort for code that people should never have to look at.
History
Date User Action Args
2014-05-02 17:05:55brett.cannonsetrecipients: + brett.cannon
2014-05-02 17:05:55brett.cannonsetmessageid: <1399050355.25.0.485510174876.issue21335@psf.upfronthosting.co.za>
2014-05-02 17:05:55brett.cannonlinkissue21335 messages
2014-05-02 17:05:54brett.cannoncreate