New submission from Géry <gery.o...@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@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue35321>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to