+ 1

can't we get the same result without decorader?

I mean, it seams like everything in the nested function could just be in the normal function with - print(func()) - instead of - func()- and then return it syntax of what i said instead of returning is prob faulty but you get my question

31st Aug 2016, 10:11 PM
Sjardi Djoy Willems
Sjardi Djoy Willems - avatar
1 Resposta
0
Yes it technically could work but it isn't pythonic. Search the zen of python.
21st Sep 2016, 6:05 AM
isk
isk - avatar