[Baypiggies] How to find the constants availiabe for a given module

Alan Westbrook voidref at gmail.com
Tue Feb 16 03:12:18 CET 2010


dir(string) might be what you are looking for.

On Mon, Feb 15, 2010 at 6:09 PM, Alfred Appiah <aappiah at yahoo.com> wrote:
> Hi,
>
>  I am new to python and wanted to know if there a way to find out all the constants, functions  and classes  available for a given module.
>
> For example the string module supports the following constants and functions,
>
> string.letters,
> string.digits
> string.whitespace
> string.capwords()
>
> and the only way I have been able to find out the classes and  functions available is by reading the python docs , I.E http://docs.python.org/library/string.html . Are there commands I can type in the interpreter to get this information also ?
>
> Cheers Alfred
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
>


More information about the Baypiggies mailing list