[New-bugs-announce] [issue35923] Update the BuiltinImporter in importlib to use loader._ORIGIN instead of a hardcoded value

Nina Zakharenko report at bugs.python.org
Wed Feb 6 17:00:01 EST 2019


New submission from Nina Zakharenko <nzakharenko at gmail.com>:

Update the BuiltinImporter in importllib to set the origin from the shared `loader._ORIGIN` attribute instead of using the hard-coded value of 'built-in' in order to match the functionality of FrozenImporter.

The FrozenImporter was updated to use this attribute in PR GH-11732 (https://github.com/python/cpython/pull/11732)

----------
assignee: nnja
components: Interpreter Core
messages: 334989
nosy: barry, nnja
priority: low
severity: normal
status: open
title: Update the BuiltinImporter in importlib to use loader._ORIGIN instead of a hardcoded value
type: enhancement
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35923>
_______________________________________


More information about the New-bugs-announce mailing list