Author brett.cannon
Recipients brett.cannon, r.david.murray, steve.dower, tschiller
Date 2017-08-10.19:17:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502392670.11.0.179430202964.issue31143@psf.upfronthosting.co.za>
In-reply-to
Content
Simplest way is to do https://docs.python.org/3/library/importlib.html#importlib.util.find_spec and see if a spec can be found for the module in question. That will do the search for the module but it won't load it. This does dictate that you know the name of the module upfront, though. If you want more of a "list all modules since I don't know what I want" then you're out of luck until I develop the API (maybe 3.7?).
History
Date User Action Args
2017-08-10 19:17:50brett.cannonsetrecipients: + brett.cannon, r.david.murray, steve.dower, tschiller
2017-08-10 19:17:50brett.cannonsetmessageid: <1502392670.11.0.179430202964.issue31143@psf.upfronthosting.co.za>
2017-08-10 19:17:50brett.cannonlinkissue31143 messages
2017-08-10 19:17:50brett.cannoncreate