Python unhashable type: „OrderedDict”

W ogóle nie znam pojęcia:

TypeError: unhashable type: 'OrderedDict'

Ale nie mogę zrozumieć, jak następujący wiersz kodów może wytworzyć taki ślad.

89:     @staticmethod
90:     def diff(var1, var2, path=[], level=0, curpath=[]):
...
101:        elif isinstance(var1, list) and isinstance(var2, list):
102:            l1s = set(var1)
103:            l2s = set(var2)
104:            retlist = []

  File "myFile.py", line 102, in diff
    l1s = set(var1)
TypeError: unhashable type: 'OrderedDict'

Jak wyrównać102, w powyższym kodzie rzuć taki wyjątek?

questionAnswers(3)

yourAnswerToTheQuestion