[docs] [issue37422] Documentation on the change of __path__ in Python 3
Eric V. Smith
report at bugs.python.org
Thu Jun 27 21:20:52 EDT 2019
Eric V. Smith <eric at trueblade.com> added the comment:
It's a _NamespacePath in 3.7 because there's no __init__.py in the top-level "google" directory, and that makes it a namespace package.
I'm not exactly sure why it works in 2.7, frankly. <time passes> Looking some more: it's because they're playing tricks in a .pth file. I don't recall what the interactions between .pth and namespace packages.
I don't know if Google really means for "google" to be a namespace package, or if it's just a side effect of how they're installing protobuf.
In any event, I don't think we want a _NamespacePath to be modifiable.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37422>
_______________________________________
More information about the docs
mailing list