[issue40171] Attempting to import inaccessible package imports an empty package

2020-04-03 Thread Konrad Borowski
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 ___

[issue40171] Attempting to import inaccessible package imports an empty package

2020-04-03 Thread Konrad Borowski
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: