[BangPypers] Finding methods in a python script

Pradeep Kishore Gowda pradeep at btbytes.com
Thu Mar 13 07:53:50 CET 2008


You mean something like this: http://dpaste.com/39212/

On 3/13/08, Akash <akashmahajan at gmail.com> wrote:
> On Thu, Mar 13, 2008 at 11:39 AM, Heshan Suriyaarachchi
>  <heshan.suri at gmail.com> wrote:
>  > Hi ,
>  >     I am having a python script which is having a class and some methods. I
>  > need to know whether there is a way to find out which methods are there in
>  > this script from another python script. Is there something like reflection
>  > in python which could help me in this process. If someone can direct me to a
>  > code sample doing this I will be grateful.
>
>
> How about creating an object of that class and using dir() on that?
>  _______________________________________________
>  BangPypers mailing list
>  BangPypers at python.org
>  http://mail.python.org/mailman/listinfo/bangpypers
>


-- 
Home - http://btbytes.com
Heart  - http://sampada.net
Yummy! - http://konkanirecipes.com


More information about the BangPypers mailing list