Example wanted for inspect module

RT richard at NOstarfighterSPAM.freeuk.com
Tue Aug 21 14:51:30 EDT 2001


The inspect module's getmembers() function takes 2 arguments - the object
whose members you want to retrieve and an (optional) predicate.

Could somebody please provide an example of how the predicate is used (for
example - to get only the functions from a module).

thanks,
RT






More information about the Python-list mailing list