[issue35673] Loader for namespace packages
Ronald Oussoren
report at bugs.python.org
Mon Jan 7 03:16:40 EST 2019
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
@barry: I agree on both.
Do you know why the namespace package loader lies about the source and code? Both .get_source() and .get_code() return a value that isn't None.
And likewise: Why is the namespace package loader a private class, other loaders are exposed in importlib.machinery? This makes it hard to detect PEP420 style namespace packages without relying on private APIs, esp. combined with the behaviour of .get_source() and .get_code().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35673>
_______________________________________
More information about the Python-bugs-list
mailing list