def copy_object_at(obj, timestamp): if isinstance(obj, ImmutableObject): return obj, [] new_obj = event_copy(obj) new_ses = older_than( side_effects_that_affect_object(execution_events, obj), timestamp) return new_obj, copy_side_effects(new_ses, obj, new_obj)
def side_effects_of(obj): return older_than( side_effects_that_affect_object(execution_events, obj), timestamp)
def side_effects_of(obj): return older_than(side_effects_that_affect_object(execution_events, obj), timestamp)
def copy_object_at(obj, timestamp): if isinstance(obj, ImmutableObject): return obj, [] new_obj = event_copy(obj) new_ses = older_than(side_effects_that_affect_object(execution_events, obj), timestamp) return new_obj, copy_side_effects(new_ses, obj, new_obj)