ich spiele gerade ein wenig mit dem python-levenshtein Paket herum, das angeblich unter Python2 und Python3 problemlos funktionieren sollte.
Allerdings stoße ich auf folgendes Problem, wenn ich folgendes Beispiel aus der Dokumentation unter Python3.3 laufen lasse:
(python 3.3.3)
Code: Alles auswählen
>>> from Levenshtein import *
>>> e = editops('man', 'scotsman')
>>> apply_edit(e, 'man', 'scotsman')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: apply_edit first argument must be a List of edit operations
>>> type(e)
<class 'list'>
Code: Alles auswählen
>>> from Levenshtein import *
>>> e = editops('man', 'scotsman')
>>> apply_edit(e, 'man', 'scotsman')
'scotsman'
>>> type(e)
<type 'list'>
Ich nehme an, dass es sich dabei um ein wohlbekanntes Problem, nach dem schon oft gefragt wurde, handelt. Leider konnte ich aber nichts finden. Daher würde ich mich über ein paar Hinweise freuen
