0

Is it good to define a decorator without nested function means wrap() ?

because it give same result if nested function means wrap() is removed from decorator...

29th Mar 2017, 4:57 AM
Anubhav Ranjan
Anubhav Ranjan - avatar
1 Odpowiedź
+ 1
Hello, it might give same results on some cases, but a great part of programming is to remember what you code, or, help the programmers after you understand your code better. That's why there are certain stuff you do in coding to help yourself and others understand the code.
22nd Apr 2017, 11:27 AM
matan