<s> class Singleton ( object ) : <EOL> _instance = None <EOL> def __new__ ( cls , * args , ** kwargs ) : <EOL> if cls . _instance is None : <EOL> instance = super ( Singleton , cls ) . __new__ ( cls ) <EOL> instance . _singleton_init ( * args , ** kwargs ) <EOL> cls . _instance = instance <EOL> return cls . _instance <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> pass <EOL> def _singleton_init ( self , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> pass </s>
