#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , basestring ) : #NEWLINE# #INDENT# return ( self . alias == other ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( self , self . __class__ ) : #NEWLINE# #INDENT# return ( self . klass == other . klass ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( other , python . class_types ) : #NEWLINE# #INDENT# return ( self . klass == other ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False