def __getstate__ ( self ):
        """ Returns the state to be pickled.

        This definition overrides **object**.
        """
        dict = self.__dict__.copy()
        if dict in '_object':
            del dict[ '_object' ]
            del dict[ '_trait_values' ]
        return dict

    #---------------------------------------------------------------------------
    #  Handles the 'rules' trait being changed:
    #---------------------------------------------------------------------------
dataset/ETHPy150Open enthought/traitsui/traitsui/table_filter.py/RuleTableFilter.__getstate__/swapped operands of `in`