Different QLocale.decimalPoint values, little-endian (amd64, arm64, etc) vs. big-endian (s390x)

Dmitry Shachnev mitya57 at ubuntu.com
Fri May 23 14:16:01 BST 2025


On Fri, May 23, 2025 at 01:57:42PM +0100, Phil Thompson wrote:
> It isn't supported - it is assumed all enums are ints. I need to think about
> how best to support this.

Thank you. Just to confirm my hypothesis, shifting the argument by 16 bits
works:

    >>> l = QLocale(QLocale.Language(QLocale.Language.Dutch.value << 16))
    >>> l.language()
    <Language.Dutch: 72>

--
Dmitry Shachnev


More information about the PyQt mailing list