def __getstate__ ( self ):
        result = self.__dict__.copy()
        for name in [ 'validate', 'match' ]:
            if name in result:
                del result[ name ]

        return result
Returns the current state of the trait.
dataset/ETHPy150Open enthought/traits/traits/trait_types.py/String.__getstate__