Last active
August 7, 2019 13:09
-
-
Save d3lm/e3c212c8311ab6c8bd09fa4acf1b7f1f to your computer and use it in GitHub Desktop.
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 Constant(): | |
def __init__(self, value=None): | |
self.__value = value | |
_default_graph.constants.append(self) | |
@property | |
def value(self): | |
return self.__value | |
@value.setter | |
def value(self, value): | |
raise ValueError("Cannot reassign value.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment