[issue40171] Attempting to import inaccessible package imports an empty package
Konrad Borowski
report at bugs.python.org
Fri Apr 3 10:41:40 EDT 2020
New submission from Konrad Borowski <konrad at borowski.pw>:
The attached shell program returns `AttributeError: module 'mod' has no attribute 'x'`. I would rather expect `ImportError` instead of loading an empty package due to permission error causing Python module to be inaccessible.
----------
files: demonstration
messages: 365699
nosy: xfix
priority: normal
severity: normal
status: open
title: Attempting to import inaccessible package imports an empty package
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49029/demonstration
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40171>
_______________________________________
More information about the Python-bugs-list
mailing list