def validate ( self, object, name, value ):
        """ Validates that the values is a valid list.
        """
        if not isinstance( value, list ):
            try:
                # Should work for all iterables as well as strings (which do
                # not define an __iter__ method)
                value = list( value )
            except (ValueError, __HOLE__):
                value = [ value ]

        return super( CList, self ).validate( object, name, value )
dataset/ETHPy150Open enthought/traits/traits/trait_types.py/CList.validate