Can ask a class for its functions?

Carl Banks imbosol at vt.edu
Thu Aug 15 02:11:43 CEST 2002


Matt Gerrans wrote:
> Yes, you can use dir(classname) or you can access its dictionary like so:
> classname.__dict__


filter(callable,dir(classname))

Otherwise, you get stuff that isn't methods.


-- 
CARL BANKS
http://www.aerojockey.com



More information about the Python-list mailing list