Nested scopes, and augmented assignment
Fredrik Lundh
fredrik at pythonware.com
Fri Jul 7 06:41:57 EDT 2006
Bruno Desthuilliers wrote:
> Certainly not. Nested scopes allow closures, which allow decorators and
> lot of *very* useful things.
decorators can be trivially implemented as classes, of course. it's a
bit unfortunate that many people seem to think that decorators *have* to
be implemented as nested functions, rather than arbitrary callables.
</F>
More information about the Python-list
mailing list