Brett Cannon <br...@python.org> added the comment:
The full name argument approach comes from PEP 302. But you want the full name as you are otherwise missing potentially key information for the finder. For instance, if you manipulate __path__, then it's just some random directory you're searching in. But searching for what? What if you want custom logic based on what package you're searching under? Because the import system is designed to be flexible enough to let you import from a URL or SQLite database as well as DSL files, providing all of the available information becomes important. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45591> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com