def _clone(self, mark_dirty=False):
        rv = object.__new__(self.__class__)
        rv.__dict__.update(self.__dict__)
        if mark_dirty:
            rv._pristine = False
        return rv
Makes a flat copy but keeps the other data on it shared.
dataset/ETHPy150Open lektor/lektor/lektor/db.py/Query._clone