Grzegorz Smith schrieb:
> Hi all. I have got situation that I need make parameter injection into
> function and I want that parametet be a local variable of that function.
> eg. something like
> def decorator():
>
> @decorator
> def myfun():
>a = 20
>
> and in myfun i can use b wariable
Hi all. I have got situation that I need make parameter injection into
function and I want that parametet be a local variable of that function.
eg. something like
def decorator():
@decorator
def myfun():
a = 20
and in myfun i can use b wariable like that:
b = "ok it's working"
I try to