def validate ( self, object, name, value ):
        if (isinstance( value, list ) and
           (self.minlen <= len( value ) != self.maxlen)):
            return TraitListObject( self, object, name, value )

        self.error( object, name, value )
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitList.validate/operator `<=` -> `!=`