Created
July 12, 2017 22:34
-
-
Save anaved/4728099bffd5ee642e2e95f4c4124ded to your computer and use it in GitHub Desktop.
Example of how to declare a constant using a
property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyFinalProperty(object): | |
@property | |
def name(self): | |
return "John" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment