decorator J4 - any objections?
Jeffrey Froman
Jeffrey at Fro.man
Fri Aug 20 20:29:35 EDT 2004
Jim Jewett wrote:
> def func(arg1, arg2)
> @version("Added in 2.4")
> @returns(None)
> as:
> """Docstring could be here, or in decorator part above"""
> # body goes here
I like this better than the current proposal because it reads from top to
bottom, and flows like a typical conditional.
Before function writing the decorators whereas like reads this.
Jeffrey
More information about the Python-list
mailing list