Ah, yeah. I meant that. But didn't work for me. It's actually like:
Also, tried:
decorator = lambda x: some_decorator.some_method()I expected it work. But it din't.
Also, tried:
some_decorator = lambda x: x.some_method()Where, my actual function definition is like:
@some_decorator.some_method() def dynamic(): return 'somethin'