> This looks ugly to me. I do have top level functions that would use > decorators because those functions will be put into a class as > classmethods and this class will be put into sys.modules instead of > the original module. Replacing > > def foo(cls): > ... > foo = classmethod(foo) > > with > > if True: > [classmethod] > def foo(cls): > ... > > doesn't look that attractive to me. You won't have to do that except in interactive mode. How often do you type functions that need decorators interactively? --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