List of all imports in python 3 -
how find out list of available imports in python 3 via program? tried @ first, couldn't understand returned
import sys sys.modules i think isn't way, although struck mind first. searched web , found http://effbot.org/librarybook/core-modules-index.htm
can tell me whether correct or not?
from http://docs.python.org/library/sys.html (a place documentation on python stdlib)
sys.builtin_module_names
is tuple (a bit immutable anonymous structs) of strings giving names of modules compiled python interpreter.
sys.modules
this dictionary maps module names modules (module objects) have been loaded. can manipulated force reloading of modules , other tricks. note removing module dictionary not same calling
reload()on corresponding module object.
so modules dictionary (a mapping of module names actual module objects). names type sys.modules.keys() although isn't usefull.
Comments
Post a Comment