[Python-Dev] Re: decorators and 2.4

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Jun 24 23:57:27 EDT 2004


> @staticmethod
> @funcattrs(vegetable="blag", author="GvR")
> def blah2(args):
>     body
> If people prefer my favorite (decorator-list-before-def, C# style)
> over Java-style, that's fine too... :-)

I don't really like either of them, but to my eyes your original one
is definitely the least worst. I find the @-signs extremely ugly.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list