0
Call normal function without decorator
Hi I have a function decorated with decorator. Can we have both function call possible one with decorator and one without it? In other words, myfunc should have both option to get it called with or without decorator? https://sololearn.com/compiler-playground/cWQ679FmL4PC/?ref=app
8 Réponses
+ 1
Ketan Lalcheta
you could try several methods, but you need external modules.
The undecorated module looks promising, though.
https://sololearn.com/compiler-playground/cox6QHE174u7/?ref=app
+ 3
Yes, if it's decorated from beginning then you can't call without decorator
+ 2
It's possible, decorator wrapper and callback
+ 1
Thanks Bob_Li
0
Thanks Sharpneli
I got your point.
If we have myfunc already decorated, we can't call normal function. Is this correct ?
0
Thanks Sharpneli
0
Hl