Barry A. Warsaw <ba...@python.org> added the comment: On Jan 7, 2019, at 03:16, Ronald Oussoren <rep...@bugs.python.org> wrote: > > 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(). I don’t remember the history of this. I wonder if Brett or Eric have any additional insights. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35673> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com