Confused with Functions and decorators
nicholascannon1 at gmail.com
Sat Jul 19 13:40:19 CEST 2014
oh yeah i forgot about the decorators. Um say that you wanted to decorate a function with the outer() func you would just put @outer on top of it? And this is the same as passing another func into the outer func?
and also with the first example you say x is in the scope when is was created can you define x in the outer func and refer to it in the inner func?
More information about the Python-list