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 Ivan.Pozdeev
Recipients Anthony Sottile, Antony.Lee, Ivan.Pozdeev, barry, brett.cannon, christian.heimes, eric.smith, eric.snow, ethan smith, mhammond, ncoghlan, pitrou, takluyver, terry.reedy
Date 2018-11-10.12:50:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541854207.44.0.788709270274.issue33944@psf.upfronthosting.co.za>
In-reply-to
Content
@barry 

> Interdependent namespace packages.  If they get loaded in the wrong order, they can mess up __path__ settings

Actually, when writing the PR, I had a revelation how this could be implemented. Via an import hook that would work like a union FS!

In its .pth file, each such package will import the hook's module (which will cause the hook to be installed on the first import) and "register" its namespaces and/or dependencies with it. The hook will then calculate the required load order and enforce it upon import of any of the registered namespaces.
History
Date User Action Args
2018-11-10 12:50:07Ivan.Pozdeevsetrecipients: + Ivan.Pozdeev, mhammond, barry, brett.cannon, terry.reedy, ncoghlan, pitrou, eric.smith, christian.heimes, eric.snow, takluyver, Antony.Lee, Anthony Sottile, ethan smith
2018-11-10 12:50:07Ivan.Pozdeevsetmessageid: <1541854207.44.0.788709270274.issue33944@psf.upfronthosting.co.za>
2018-11-10 12:50:07Ivan.Pozdeevlinkissue33944 messages
2018-11-10 12:50:07Ivan.Pozdeevcreate