Can ask a class for its functions?

Carl Banks imbosol at vt.edu
Wed Aug 14 20:11:43 EDT 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