> Then it makes sense to put "x = 42" after the three property definitions > (before the end of the class definition). Would that work? No, for deep reasons that have to do with the implementation of descriptors. This has nothing to do with decorators and not a lot with properties -- it's the same as class C: def x(self): return self.__x x = 42 today. --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