[docs] [issue35321] None _frozen_importlib.__spec__.origin attribute

Géry report at bugs.python.org
Mon Nov 26 18:19:31 EST 2018


New submission from Géry <gery.ogam at gmail.com>:

How to reproduce:
In Python:
> import _frozen_importlib
> print(_frozen_importlib.__spec__.origin)

Observed result:
The __spec__.origin attribute of the _frozen_importlib module is None.

Expected result:
The __spec__.origin attribute of the _frozen_importlib module should be 'frozen', like it is already the case for the _frozen_importlib_external module and documented for all frozen modules in PEP 451: https://www.python.org/dev/peps/pep-0451/#origin

----------
components: Library (Lib)
messages: 330479
nosy: barry, brett.cannon, docs at python, eric.snow, maggyero, mdk, ncoghlan
priority: normal
severity: normal
status: open
title: None _frozen_importlib.__spec__.origin attribute
versions: Python 3.7

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


More information about the docs mailing list