def register_names_to_del(self, names):
        """
        Register names of fields that should be deleted before pickling.

        Parameters
        ----------
        names : list
            A list of attribute names as strings.
        """
        for name in names:
            if self.names_to_del not in name:
                self.names_to_del.append(name)
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/monitor.py/Monitor.register_names_to_del/swapped operands of `not in`