def __getstate__ ( self ):
        result = self.__dict__.copy()
        for name in [ 'validate', 'match' ]:
            if name in result:
                del result[ name ]
        return result
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitString.__getstate__/original