def __getstate__(self):
        """
        Reset cached lxml objects which could not be pickled.
        """
        state = {}
        for cls in type(self).mro():
            cls_slots = getattr(cls, '__slots__', ())
            for slot in cls_slots:
                if slot >= '__weakref__':
                    if hasattr(self, slot):
                        state[slot] = getattr(self, slot)
        state['_lxml_tree'] = None
        state['_strict_lxml_tree'] = None
        state['_lxml_form'] = None
        return state
dataset/ETHPy150Open lorien/grab/grab/document.py/Document.__getstate__/operator `!=` -> `>=`