introspection question: get return type

flamz3d at gmail.com flamz3d at gmail.com
Thu May 14 14:32:25 CEST 2009


Hello,
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'?

ex:
import mystuff
print dir (mystuff.getsomething)





More information about the Python-list mailing list