[sword-devel] Python and strong module

Troy A. Griffitts scribe at crosswire.org
Sat Apr 20 07:59:00 MST 2019

Dear Pierre,

In Python, it looks like you are setting your strongs number into a VerseKey. This will give a out of bounds error and will likely return the last entry if you continue to do a look up with it. You probably just want an SWKey instead of VerseKey. This is the most base type of key in SWORD and simply takes a string and doesn't try to parse it or do anything special with it.

Hope this helps,


On April 20, 2019 1:32:28 AM MST, pierre amadio <amadio.pierre at gmail.com> wrote:
>I fail to look for a Strong's dictionnary Hebrew entry with python
>(Red Hat based, sword-python-1.8.1-3.el7.x86_64).
>Here is the shortest test case i have:
>Instead of giving me the entry for 5975 (amad) , it gives the entry
>for 8674 (Tattnay)
>I have a similar testcase that works as expected in C++ :
>I experience a similar outpout if i set a non existing key (say
>"1111111111111111" instead of "05975" in c++ .
>Am i doing something wrong (if yes, any idea what ?) in python, or is
>this a bug in the python binding ?
>sword-devel mailing list: sword-devel at crosswire.org
>Instructions to unsubscribe/change your settings at above page

Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20190420/00601dab/attachment.html>

More information about the sword-devel mailing list