Object and Class Exploration

CyberGuest rickymz at yahoo.com
Thu May 3 22:46:57 EDT 2001


import Class
dir(Class)
is this what u are looking for?

Jason Joy wrote:

> If I have an object (or a instance of a class) ...
> A = CLASS(FOO)
> 
> is there a way to do a loop such that I can see all the properties (or
> everything def'd) within A?
> 
> Example:
> 
> def Class(bar):
>    def a:
>       ## Stuff here
>    def b:
>       ## Stuff Here
> 
> Result:
> 
> ['a, b']
> 
> 
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1





More information about the Python-list mailing list