Message329607
| 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:07 | Ivan.Pozdeev | set | recipients:
+ 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:07 | Ivan.Pozdeev | set | messageid: <1541854207.44.0.788709270274.issue33944@psf.upfronthosting.co.za> |
| 2018年11月10日 12:50:07 | Ivan.Pozdeev | link | issue33944 messages |
| 2018年11月10日 12:50:07 | Ivan.Pozdeev | create |
|