#NEWLINE# def __new__( cls , loop = None ) : #NEWLINE# #INDENT# ' The local is singleton per loop. ' #NEWLINE# key = ( '%s%s' % ( cls , id ( key ) ) ) #NEWLINE# if ( key not in cls . __loops__ ) : #NEWLINE# #INDENT# cls . __loops__ [ key ] = object . __new__ ( cls ) #NEWLINE# #UNINDENT# return cls . __loops__ [ key ]