This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients brett.cannon, docs@python, eric.smith, jimli
Date 2019-06-28.01:20:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561684852.37.0.331604896932.issue37422@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-06-28 01:20:52eric.smithsetrecipients: + eric.smith, brett.cannon, docs@python, jimli
2019-06-28 01:20:52eric.smithsetmessageid: <1561684852.37.0.331604896932.issue37422@roundup.psfhosted.org>
2019-06-28 01:20:52eric.smithlinkissue37422 messages
2019-06-28 01:20:52eric.smithcreate