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 steve.dower
Recipients Anthony Sottile, Chris Billington, Ivan.Pozdeev, Peter L3, SilentGhost, __Vano, barry, brett.cannon, cheryl.sabella, christian.heimes, eric.smith, eric.snow, ethan smith, ionelmc, jaraco, mhammond, ncoghlan, pitrou, steve.dower, takluyver, terry.reedy, veky
Date 2019-03-07.17:06:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here's a trivial workaround for the import hook problem:

Assume we have "", and the import hook enables importing foo files.

Instead of just shipping "", you ship "" and "", where "" looks like:

    import my_import_hook

    from _my_module import *

This really isn't hard to do. As a bonus, you don't even need a full import hook anymore - you can use any kind of loader you want. And it should be fully backwards compatible (assuming special tricks weren't part of your public API), so your users won't even notice the upgrade.
Date User Action Args
2019-03-07 17:06:23steve.dowersetrecipients: + steve.dower, mhammond, barry, brett.cannon, terry.reedy, jaraco, ncoghlan, pitrou, eric.smith, christian.heimes, ionelmc, SilentGhost, __Vano, eric.snow, takluyver, veky, Ivan.Pozdeev, Anthony Sottile, ethan smith, cheryl.sabella, Chris Billington, Peter L3
2019-03-07 17:06:23steve.dowersetmessageid: <>
2019-03-07 17:06:23steve.dowerlinkissue33944 messages
2019-03-07 17:06:23steve.dowercreate