[Python-Dev] Dropping decorator syntax for 2.4?

Guido van Rossum guido at python.org
Fri Jun 4 10:51:50 EDT 2004

>     Jeremy> You'd like for adjacent statements of the form:
>     Jeremy>     Expr(List())
>     Jeremy>     FunctionDef()
>     Jeremy> and replace them with a single
>     Jeremy>     FunctionDef()
> Yes, but only if it appears at the top level of a module.

Why?  Can't I nest decorated functions inside other functions?  And a
class isn't at the top of a module either.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list