> If it's only classmethod you're worried about obscuring, why not: > > def foobar(class cls, otherarg, ...): > # ... Not quite -- I'm worried about things *like* classmethod and staticmethod, and I want to provide you with the ability to write your own. > And then move all other decorators into some kind of delimited block > in the function body, just before the docstring. Aha! So you agree with that part. I rest my case. --Guido van Rossum (home page: http://www.python.org/~guido/)
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