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 +--------------------------------------+
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4