[Python-Dev] Re: PEP 318: Decorators last before colon

Greg Ewing greg at cosc.canterbury.ac.nz
Mon Apr 5 21:14:27 EDT 2004

Andrew Koenig <ark-mlist at att.net>:

> For that matter, why do we need the brackets if there is only one attribute:
> 	def foo(bar, baz) staticmethod:
> 		pass

Because the decorator doesn't stand out enough that way.
It's a matter of opinion, but I think it looks better
with the brackets, even if there is only one decorator.

The brackets mean "here is something additional", not
"here is a list".

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