On Wednesday 04 August 2004 10:52 am, Jim Fulton wrote: > IMO, the most common uses of decorators will be to define properties, > and class and static methods. IMO, these uses would be better served > by a simpler syntax: > > def classmethod foo(cls, ...): > ... This was rejected a long time ago because it complicated life for editor colorizing support and many similar tools. It especially complicates the creation of ad-hoc tools, and breaks ones that are already working. While pie-notation isn't my favorite, it's reasonable enough. The example @classmethod def makeAnother(cls): return cls("magic", 42) seems readable enough to me. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org>
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