printing class methods

Joseph A Knapka jknapka at earthlink.net
Fri Jan 25 00:31:47 EST 2002


Joe Connellan wrote:
> 
> sorry, just as I saw my mail disappear I remebered -
> dir(class_or_module_name), but the second question still stands - Is there
> a way to find out the number and type of arguments?

Look at the documentation for the "inspect" module.

Cheers,

-- Joe
"I should like to close this book by sticking out any part of my neck
 which is not yet exposed, and making a few predictions about how the
 problem of quantum gravity will in the end be solved."
 --- Physicist Lee Smolin, "Three Roads to Quantum Gravity"



More information about the Python-list mailing list