Nick Trout nick at #spam_me_not#videosystem.co.uk
Tue Aug 31 14:55:20 CEST 1999

| I am thinking of doing a Development enviroment for python as a way of
| learning python and just for the heck of it.
| My question is > How would you programaticaly find the return type , and
| types of the parameters of a method / function . How do I find the methods
| of a
| class programmatically.

dir(<classname>) returns a list of method names including the builtin ones.
eg. __docs__

There's no such thing as return/parameter types. Its up to you to implement
a mechanism to do this if you want it.


More information about the Python-list mailing list