RAD

Nick Trout nick at #spam_me_not#videosystem.co.uk
Tue Aug 31 08:55:20 EDT 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
the
| 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.

N






More information about the Python-list mailing list