Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upadded singleton pattern. #303
Conversation
|
please review #279 |
| def __setattr__(self, name): | ||
| return setattr(self.instance, name) |
adihat
Oct 7, 2019
Changes:
def __setattr__(self, name, value):
return setattr(self.instance, name, value)
Reason: The signature of SingletonObject.__setattr__ doesn't match the signature of base method in class object
Changes:
def __setattr__(self, name, value):
return setattr(self.instance, name, value)Reason: The signature of SingletonObject.__setattr__ doesn't match the signature of base method in class object
|
@hoseinfzad Please see #256 |
The Singleton design pattern creates only one object of the class