Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

howto get a list of all standard modules

Status
Not open for further replies.

beveronic

Technical User
Dec 17, 2004
10
DE
Hi,

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.
 
Look in the manual. Standard modules are listed in the Library Reference.
 
Hi eric,

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.
 
Hi Eric,

Thanks for the information.At least I know there is no such stuff:(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top