Brett Cannon added the comment:

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?).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31143>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to