I would like to get a list of all modules from Python Standard Library.
The command >>>print help('modules'),prints all the existing modules...but I am interested only in the ones that come from Python.
I hope that somebody can help me.
So you propose to make a list of all modules offered by Python,but I don't want to update my script everytime python introduce a new module(new version)..and my script is supposed to differentiate if it is about a standard module or a user created one,and accordingly if is standard not to do trace of the contained functions.
So I thought maybe there is somewhere a method that constructs the list dinamically.
Thanks.
There's nothing in a module that designates it as "standard", so there's really no way to tell programmatically. Compound that with the fact that just because a module is standard doesn't mean you have to install it, or that it's even available on your platform.
You may be able to get a better idea by looking at where it's installed, but even that depends on the module developer and system administrator putting their files in site-packages.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.