#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# 'Determine whether other is our equivalent\n\n\t\treturns true if other is of the same class, with\n\t\tthe same primary attributes\n\t\t' #NEWLINE# if ( self . __class__ is not other . __class__ ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# NULL = [ ] #NEWLINE# for nm in [ 'name' , 'default' , 'baseType' ] : #NEWLINE# #INDENT# if ( hasattr ( self , nm ) and ( not hasattr ( other , nm ) ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( not hasattr ( self , nm ) ) and hasattr ( other , nm ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( self , nm ) : #NEWLINE# #INDENT# if ( getattr ( self , nm ) != getattr ( other , nm ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return 1