<html><head></head><body>Dear Pierre,<br><br>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.<br><br>Hope this helps,<br><br>Troy<br><br><div class="gmail_quote">On April 20, 2019 1:32:28 AM MST, pierre amadio &lt;amadio.pierre@gmail.com&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hello.<br><br>I fail to look for a Strong's dictionnary Hebrew entry with python<br>(Red Hat based, sword-python-1.8.1-3.el7.x86_64).<br><br>Here is the shortest test case i have:<br><a href="https://github.com/pierre-amadio/SwordSandBox/blob/master/python/strongtestcase.py">https://github.com/pierre-amadio/SwordSandBox/blob/master/python/strongtestcase.py</a><br><br>Instead of giving me the entry for 5975 (amad) , it gives the entry<br>for 8674 (Tattnay)<br><br>I have a similar testcase that works as expected in C++ :<br><a href="https://github.com/pierre-amadio/SwordSandBox/blob/master/strongTest/testStrong/main.cpp">https://github.com/pierre-amadio/SwordSandBox/blob/master/strongTest/testStrong/main.cpp</a><br><br>I experience a similar outpout if i set a non existing key (say<br>"1111111111111111" instead of "05975" in c++ .<br><br>Am i doing something wrong (if yes, any idea what ?) in python, or is<br>this a bug in the python binding ?<hr>sword-devel mailing list: sword-devel@crosswire.org<br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page<br></pre></blockquote></div><br>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>