[BangPypers] Finding methods in a python script

Akash akashmahajan at gmail.com
Thu Mar 13 07:14:46 CET 2008


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?


More information about the BangPypers mailing list