ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

28 April 2022
2022-04-28×
28 April 2022
F
hmmmm, with PySide2 only, on Python 3.11.0a7: >>> int(QtCore.Qt.AlignmentFlag.AlignHorizontal_Mask | QtCore.Qt.AlignmentFlag.AlignVertical_Mask) TypeError: 'PySide2.QtCore.Qt.AlignmentFlag' object cannot be interpreted as an integer The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<stdin>", line 1, in <module> SystemError: <class 'int'> returned a result with an exception set but with Python 3.10.4: >>> int(QtCore.Qt.AlignmentFlag.AlignHorizontal_Mask | QtCore.Qt.AlignmentFlag.AlignVertical_Mask) 511 Is that a bug in PySide2 or Python 3.11?
C
that exists before 2018, it was my first attempt to fix a bug and never could in a clean way :(
but why does it work with older Python versions?
F
do they just ignore the error somehow?
C
seems to be different to your issue, I misread the code
F
I was mainly wondering if I should report this as a Python bug somewhere
C
I guess yeah, the verifcation is different somehow in 3.11, haven't read anything related int transformation though :O
F
or if it's an issue with PySide2 and thus probably a wontfix
it might be that a different slot or slot value is requiered for something to be int-convertible
and we don't properly do it, I think it's still a pyside bug
C
because after all we need to adapt to how python do things. Hopefully it's backwards compatible... don't want to revive the "if python2 else ... " situation with python greater than 3.11 :S
F
I'd test with PySide6 but its wheels aren't even installable on Python 3.11
C
yeah, snapshot wheels might become installable but as long as it's not oficially released, we don't support it.
F
meh, I just want to find and report bugs before it's too late (especially if they need to be fixed in Python) :P
C
before we misused the cp36.cp37.cp38.cp39.cp310-abi3 tag :P and we noticed that only the minimum version was required, so it's cp36-abi3 now, but clearly that cannot show people "until which python version it's compatible"
F
but my own end2end test fail in strange ways (timeouts etc.) with PyQt5, so, maybe I should just wait a bit more and focus on Qt 6 first 😅
Calendar: April 2022
MoTuWeThFrSaSu12345672891071111213101411511616171818192092152217232425226192772821291130
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog