introspection question: get return type

flamz3d at flamz3d at
Thu May 14 14:32:25 CEST 2009

I am wondering if it's possible to get the return value of a method
*without* calling it using introspection?

something like this, suppose I want to know the type of the return
value for the method "getsomething". Is it possible to get it without
actually calling 'getsomething'?

import mystuff
print dir (mystuff.getsomething)

More information about the Python-list mailing list