New submission from Konrad Borowski <kon...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40171>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to