<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 24, 2021 at 12:05 AM Damien Elmes <<a href="mailto:pyqt@ankiweb.net">pyqt@ankiweb.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">One other issue I forgot to mention - QByteArray can't be pickled on Python 10:<div><br></div><div>>>> from PyQt6.QtCore import QByteArray<br>>>> import pickle<br>>>> pickle.dumps(QByteArray(b"test"))<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats<br></div></div><div class="gmail_quote"><br></div></div>
</blockquote></div><div><br></div><div>This same bug is in PyQt5 and Python 3.10 too:<br></div><span style="font-family:monospace">>>> from PyQt5.QtCore import QByteArray<br>>>> import pickle<br>>>> pickle.dumps(QByteArray(b"test"))<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br></span><div><span style="font-family:monospace">SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats</span></div><div><br></div><div>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. <br></div><div><br></div><div>Best,</div><div>Damon<br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><a href="https://damonlynch.net" target="_blank">https://damonlynch.net</a><br></div></div></div>