decorator J4 - any objections?
Fri Aug 20 22:56:11 CEST 2004
Martin DeMello <martindemello at yahoo.com> writes:
> > 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.
I don't really see why, but the decorators don't have to be indented:
def func(arg1, arg2)
-version("Added in 2.4")
"""Docstring could be here, or in decorator part above"""
# body goes here
I guess that's ugly though.
More information about the Python-list