Skip to content

Instantly share code, notes, and snippets.

@tsloughter
Created July 12, 2011 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsloughter/1078890 to your computer and use it in GitHub Desktop.
Save tsloughter/1078890 to your computer and use it in GitHub Desktop.
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