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

            return TraitListObject( self, object, name, value )

        self.error( object, name, value )
Validates that the values is a valid list.
dataset/ETHPy150Open enthought/traits/traits/trait_types.py/List.validate