Fredrik Lundh wrote: > Shane wrote: > > > Greg Ewing wrote: > > > def foo as property: > > > def __get__(self): > > > ... > > > def __set__(self, x): > > > ... > > > > The above syntax seems to be particularly easy to read and > > understand > > except that "binding-statement name1 as name2" already has a > different meaning in Python. What would you think of 'is' then? def name(...) is classmethod: doesn't ring confusing bells IMO. I certainly like it more than some brackets which you don't even know how to pronounce. Moreover the original chaining e.g. def name(...) is classmethod, syncmethod: still reads well IMO. holger
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