Created
July 12, 2011 20:24
-
-
Save tsloughter/1078890 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
def __new__(clazz, *args, **kwargs): | |
if not clazz.__instance: | |
clazz.__instance = super(Se, clazz).__new__( | |
clazz, *args, **kwargs) | |
clazz.__instance.__singleton_init() | |
return clazz.__instance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment