[issue40171] Attempting to import inaccessible package imports an empty package
New submission from Konrad Borowski : 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 <https://bugs.python.org/issue40171> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40171] Attempting to import inaccessible package imports an empty package
Konrad Borowski added the comment: The attached example works on Python 2, but it breaks with Python 3. This may be a regression. -- ___ Python tracker <https://bugs.python.org/issue40171> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com