#NEWLINE# def _op_compare( self , args , op ) : #NEWLINE# #INDENT# 'Returns True if the specified operator can successfully\n        compare the first item in the args with all the rest. Will\n        return False if only one item is in the list.\n        ' #NEWLINE# if ( len ( args ) < 2 ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( op is operator . contains ) : #NEWLINE# #INDENT# bad = ( args [ 0 ] not in args [ 1 : ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# bad = [ arg for arg in args [ 1 : ] if ( not op ( args [ 0 ] , arg ) ) ] #NEWLINE# #UNINDENT# return ( not bool ( bad ) )