flam...@gmail.com a écrit :
Hello,
I am wondering if it's possible to get the return value of a method
*without* calling it

Getting the return *value* without calling the function ? heck, that would be really helpful - we'd save quiet a lot on function call overhead and function execution time !-)

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

Oh, you meant the "return type" ? Nope, no way. It just doesn't make sense given Python's dynamic typing.



--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to