Levenshtein_search icon indicating copy to clipboard operation
Levenshtein_search copied to clipboard

Passing a set to Levenshtein_search.populate_wordset results in SystemError

Open srkunze opened this issue 6 years ago • 1 comments

I ran into an issue trying out this package and passing in a set to populate_wordset.

wordset = Levenshtein_search.populate_wordset(-1, {'abc', 'abg'})

Somewhere later in the code, it failed:

Traceback (most recent call last):
  File "tst.py", line 38, in <module>
    for i, (dat, doc) in enumerate(zip(dats, docs)):
SystemError: ../Objects/listobject.c:169: bad argument to internal function

Would be great if either populate_wordset fails first or converts to list.

srkunze avatar Oct 02 '18 16:10 srkunze

populate_wordset also consumes dicts silently and break execution far later.

srkunze avatar Oct 03 '18 20:10 srkunze