[issue29258] __init__.py required for pkgutil.walk_packages in python3

Inada Naoki <songofacandy@gmail.com> added the comment: I am totally agree with Wolfgang:
they make it impossible to know whether a directory found on the filesystem is *intended* as a Python package or not.
I think we shouldn't treat normal directory as namespace package until some portion in the directory is imported, or it is specified explicitly. So walk_packages() should be used like: walk_packages("/path/to/namespace", "namespace") I already rejected similar issue: #29642. If you can not agree with me, please make an thread in python-dev ML or discuss.python.org. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue29258> _______________________________________
participants (1)
-
Inada Naoki