[issue21335] Update importlib.__init__ to reset _frozen_importlib's loader to SourceFileLoader

2015-09-29 Thread Eric Snow

Eric Snow added the comment:

The underlying issue extends to all frozen modules.  I've opened #25268 to 
consider how we might address it.

--
nosy: +eric.snow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21335] Update importlib.__init__ to reset _frozen_importlib's loader to SourceFileLoader

2014-05-02 Thread Brett Cannon

Brett Cannon added the comment:

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 '' 
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.

--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21335] Update importlib.__init__ to reset _frozen_importlib's loader to SourceFileLoader

2014-04-23 Thread Zachary Ware

Changes by Zachary Ware :


--
title: Update importlib.__init__ to reset _frozen_imnportlib's loader to 
SourceFileLoader -> Update importlib.__init__ to reset _frozen_importlib's 
loader to SourceFileLoader

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com