Christian Tismer wrote: > the primary purpose of all the decorator syntax effort > is to get the > > foo = classmethod(foo) > > into the right place, not after but before the definition. > > Dunno if this was mentioned before, but why not simply do that? > Move the statement right before the def and provide a way > that this gets recognized correctly. > > No syntax change, just the convenience people asked for. I don't think this can work. How precisely would you implement it? Python traditionally executes source code from top to bottom, except for loops. Regards, Martin
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