introspection question: get return type
Diez B. Roggisch
deets at nospam.web.de
Thu May 14 08:39:07 EDT 2009
flamz3d at gmail.com wrote:
> Hello,
> I am wondering if it's possible to get the return value of a method
> *without* calling it using introspection?
Nope. All that's possible to see if there is a implicit or explicit return
through dis.disassemble - if you find "LOAD_CONST None" before any
return-statement, you know that you don't anything else.
Diez
More information about the Python-list
mailing list