Decoratos
Decoratos
Funtion aliasing
-> In python everything is an object.
-> Even function is also internally considered as an object
only.
-> For the existing function, we can give another name,
which is nothing but function aliasing.
-> if we delete one name, still we can access that function
by using alias name.
Nested function
->
Def decor(input_func):
def output_func():
.../
return output function
-> The main objective of decorator functions is we can
extend the functionality of existing function without
modifying that function.
Application
Nested scopes
->