On Mar 27, 2004, at 3:10 PM, Barry Warsaw wrote: > On Sat, 2004-03-27 at 12:39, Bernhard Herzog wrote: > >> Has somebody suggested the following yet? >> >> def [classmethod] foo(cls, blooh, bla): >> pass > > Yes, but I'm not sure who <wink>. > > Subversive instantly rejected idea of the day: syntactically allow the > square brackets in any of these three locations: > > def [decorator] method [decorator] (args) [decorator] > > You'd probably want to disallow more than one [decorator] per > definition > (but maybe not). Each of these locations is supported by a different > valid use case, IMO, so why not allow any of them? Or, of course, the module or class variable: __metadecorator__ = [decorator] -bob
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