You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should be able to efficiently store changes in edsl objects, like so:
fromedslimportQuestionFreeTextq1=QuestionFreeText.example()
q2=QuestionFreeText.example()
q2.question_text="Here is some new text"diff_1=q2-q1assertq2==diff_1+q1diff_2=q1-q2assertq1==diff2+q2
diffs themselves should be coop-able. In terms of implementation, it probably works by doing comparisons of the .dict() methods of the objects. It likely recursively checks if a sub-object has a diff/dict method. As much as possible, it tries to only log modifications of strings / numbers rather than whole-scale replacement of objects. A diff object might have nested diff objects.
Related - sematically the same
We need to decide what it means for two edsl obejcts to be identical.
The text was updated successfully, but these errors were encountered:
We should be able to efficiently store changes in edsl objects, like so:
diffs themselves should be coop-able. In terms of implementation, it probably works by doing comparisons of the
.dict()
methods of the objects. It likely recursively checks if a sub-object has a diff/dict method. As much as possible, it tries to only log modifications of strings / numbers rather than whole-scale replacement of objects. A diff object might have nested diff objects.Related - sematically the same
We need to decide what it means for two edsl obejcts to be identical.
The text was updated successfully, but these errors were encountered: