[issue43477] from x import * behavior inconsistent between module types.

2021-03-16 Thread Thomas J. Gallen
Thomas J. Gallen added the comment: Given the previous example, in test.py, replace: ``` print(test_module.test_submodule) ``` ...with: ``` assert(not hasattr(test_module, "test_submodule")) ``` ...because the issue is only the bottom half of `_find_and_load_unlocked`. Specifi

[issue43477] from x import * behavior inconsistent between module types.

2021-03-15 Thread Thomas J. Gallen
Thomas J. Gallen added the comment: parent module* rather. Just saw that typo. -- ___ Python tracker <https://bugs.python.org/issue43477> ___ ___ Python-bug

[issue43477] from x import * behavior inconsistent between module types.

2021-03-15 Thread Thomas J. Gallen
Thomas J. Gallen added the comment: Yes, a package. There isn't actually that much in the txz. Most of the files are ostensibly empty. As an example, let's say we have the following files: test.py test_module/__init__.py test_module/test_submodule.py test.py contains: ```pyt