Getting definition list

Aloysio Figueiredo xpythonist at yahoo.com.br
Sat Mar 6 07:26:45 EST 2004


===============================================
import test

for m in dir(test):
  print m
===============================================

Aloysio

 --- Bluexcell <bluexcell at aol.com> escreveu: 
> ok so i  use import to import a py file into my script.
> 
> is there a way to list all the defined function labels that exist in
> the
> imported file?
> 
> ie if  i import a file called test and test has defined functions 
> called
> myfunction1 my function2  myfunction3 etc    but i dont know  them, 
> is there a
> method to list all the function labels in test and print them  as a
> listing
> 
> test.mfunction1
> test.myfunction2
> test.myfunction3
> 
> etc.
> 
> 
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list 

______________________________________________________________________

Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html




More information about the Python-list mailing list