decorator J4 - any objections?

Martin DeMello martindemello at yahoo.com
Fri Aug 20 22:02:11 CEST 2004


Paul Rubin <http://phr.cx@nospam.invalid> wrote:
> 
> Also, why the need for the "as" keyword?  What happens if it's just
> eliminated?  I.e.:
> 
>     def func(arg1, arg2)
>         @version("Added in 2.4")
>         @returns(None):
> 
>         """Docstring could be here, or in decorator part above"""
>         # body goes here

It's really nice to have an outdented marker for when the actual
function body begins.

martin



More information about the Python-list mailing list