<div dir="ltr">Hi Phil,<br><div><br></div><div>Just came across an issue in sip_array.c::sipArray_getbuffer</div><div><br></div><div>code to reproduce:</div><div><br></div><div>>>> from PyQt6 import sip, QtCore</div><div>>>> memoryview(sip.array(QtCore.QPointF, 2))<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>BufferError: format has not been specified<br></div><div><br></div><div>Looks like non-scalar types don't have a format, and if the requestor requests a buffer format to be specified and there isn't one, an exception is raised.</div><div><br></div><div>A more sensible default might be to set the format to bytes in this case.  There is some precedence here as python's PyBuffer_FillInfo will populate format as "B".</div><div><br></div><div>Also, it looks like a memory leak will occur when this exception is raised as well.</div><div><br></div><div>Thanks again for your work on this!</div><div>Ogi</div></div>