Understanding Python decorators

DECORATORS Python allows us some nice syntactic sugar for creating decorators. Notice here how we have to explicitly decorate say_hello by passing it to our decorator function. def say_hello ( name ): return "Hello, " + str ( name ) + "!" def p_decorate ( func ): def func_wrapper ( name ): ................
................