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. -- José Abílio -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue