A few issue with 6.2.0

Damon Lynch damonlynch at gmail.com
Sun Oct 24 05:42:14 BST 2021


On Sun, Oct 24, 2021 at 12:05 AM Damien Elmes <pyqt at ankiweb.net> wrote:

> One other issue I forgot to mention - QByteArray can't be pickled on
> Python 10:
>
> >>> from PyQt6.QtCore import QByteArray
> >>> import pickle
> >>> pickle.dumps(QByteArray(b"test"))
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
>
>
This same bug is in PyQt5 and Python 3.10 too:
>>> from PyQt5.QtCore import QByteArray
>>> import pickle
>>> pickle.dumps(QByteArray(b"test"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

Thanks for narrowing it down Damien. Fedora 35, due out this Nov 2, has
already transitioned to Python 3.10. AFAIK none of the other big distros
have.

Best,
Damon
-- 
https://damonlynch.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20211024/92031df7/attachment.htm>


More information about the PyQt mailing list