decorator J4 - any objections?

Paul Rubin http
Sat Aug 21 04:07:17 CEST 2004


Jeffrey Froman <Jeffrey at Fro.man> writes:
> >    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.

J4 is my favorite of the enumerated proposals I remember, so I'll
"vote" for it, but I still think something better should be possible.



More information about the Python-list mailing list