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 ronaldoussoren
Recipients barry, brett.cannon, eric.snow, gvanrossum, ncoghlan, ronaldoussoren
Date 2019-01-22.19:51:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548186692.37.0.530469084463.issue35806@roundup.psfhosted.org>
In-reply-to
Content
The reason I filed #35791 is that I'm rewriting modulegraph[1] using importlib and run into some problems due to importlib.util.find_spec() failing for names that are already imported. 

Working around that in general probably will require reimplementing bits of importlib in my own code and that's something I'd prefer to avoid. The alternative appears to be messing with sys.modules when I run into this problem, which might cause other problem.

BTW. The lack of __spec__ on typing.io and typing.re is not a problem for me, I can use the machinery I already have to insert edges for C extensions to do the right thing for these modules as well. 

[1] https://modulegraph.readthedocs.io/en/latest/
History
Date User Action Args
2019-01-22 19:51:33ronaldoussorensetrecipients: + ronaldoussoren, gvanrossum, barry, brett.cannon, ncoghlan, eric.snow
2019-01-22 19:51:32ronaldoussorensetmessageid: <1548186692.37.0.530469084463.issue35806@roundup.psfhosted.org>
2019-01-22 19:51:32ronaldoussorenlinkissue35806 messages
2019-01-22 19:51:32ronaldoussorencreate