Re: decorator and function local variable

2006-02-20 Thread Diez B. Roggisch
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

decorator and function local variable

2006-02-20 Thread Grzegorz Smith
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