On Mon, 2024-01-15 at 23:15 +0000, Barry wrote:
That is bad python code. Version is a string and cannot be compare against 0x060305. Suggest you report against the RPM package that /usr/share/lyx/scripts/convertDefault.py comes from.
Barry
That is a leftover from Python 2. In Python 2 it was possible to compare different types although the result only depended on the types and not of the values:
https://portingguide.readthedocs.io/en/latest/comparisons.html
Incidentally that is also the reason when comparing a value with None should be done using the "is" operator and not "==" since None is a singleton and of a different type.