def __setstate__(self, state):
        "Sets the state of the _View instance when unpickled."
        database, query, name_changes = state
        self.__database = database
        self.__query = types.LambdaType(query, sys.modules, '', (), ())
        self.__name_changes = name_changes
Sets the state of the _View instance when unpickled.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py