roy-ht / editdistance

Fast implementation of the edit distance(Levenshtein distance)
MIT License
661 stars 62 forks source link

Int lists unsupported in eval #46

Closed carmocca closed 4 years ago

carmocca commented 4 years ago

The following code should work:

editdistance.eval([[1, 2], [3, 4]], [])
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "editdistance/bycython.pyx", line 11, in editdistance.bycython.eval
  File "editdistance/bycython.pyx", line 15, in editdistance.bycython.eval
TypeError: unhashable type: 'list'

The behaviour should be the same as:

editdistance.eval(['ab', 'bc'], [])
2 

Is this a bug or just not supported? It works using https://github.com/life4/textdistance

Thanks.

carmocca commented 4 years ago

Closing due to lack of activity