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

Brett Cannon report at bugs.python.org
Wed Apr 23 17:01:51 CEST 2014


New submission from Brett Cannon:

When importlib.__init__ tries to mask the fact that _frozen_importlib is frozen it should also reset __loader__ to be an instance of SourceFileLoader. This will allow tracebacks to include source lines thanks to SourceFileLoader.get_source().

----------
assignee: brett.cannon
components: Library (Lib)
messages: 217073
nosy: brett.cannon
priority: low
severity: normal
stage: needs patch
status: open
title: Update importlib.__init__ to reset _frozen_imnportlib's loader to SourceFileLoader
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21335>
_______________________________________


More information about the Python-bugs-list mailing list