good I have the following function:
def http1(response):
respone.????
...
I call it as follows, passing it a function that also receives a parameter
http1(http2(parametro))
My question is how do I get the parameter name of the http2 function so that I can work with it in the http1 function???
First, "get parameter name" is useless, "parameter name" AKA "variable" is just that, a name associated with an object in memory. What you need is not the name of the parameter, but a reference to the object passed as the argument.
As you say it is impossible, it
http2
receives the output ofhttp1
, unless ithttp1
returns some reference toresponse
you will not be able to access fromhttp2
. If this is not the case:Make it
http1
also return a reference toresponse
:Pass
http2
a reference to the function and the arguments to pass to the function and execute it insidehttp2
: