Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.5.2
-
None
-
-
940cad174 (dev), a50b5f9d7 (dev), 0ad1b4262 (6.6)
Description
Python 3.11.4 | packaged by conda-forge | (main, Jun 10 2023, 18:08:17) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide6.QtCore import QByteArray, QIODevice, QDataStream
>>> buffer = QByteArray(1000, 0)
>>> buffer.resize(0)
>>> ds = QDataStream(buffer, QIODevice.WriteOnly)
>>> b = b'test'
>>> type(b)
<class 'bytes'>
>>> ds.writeRawData(b)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: 'PySide6.QtCore.QDataStream.writeRawData' called with wrong argument values:
PySide6.QtCore.QDataStream.writeRawData(b'test',)
Found signature:
PySide6.QtCore.QDataStream.writeRawData(bytes)
Although the argument of writeRawData actually is <class 'bytes'>, it produces this odd error.
Attachments
For Gerrit Dashboard: PYSIDE-2442 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
499978,6 | PySide6: Fix up QDataStream.readRawData/writeRawData() | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
504710,2 | Fix a debug mode assert in QDataStream.writeRawData() in QtCore/qdatastream_test.py | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
504805,2 | Fix a debug mode assert in QDataStream.writeRawData() in QtCore/qdatastream_test.py | 6.6 | pyside/pyside-setup | Status: MERGED | +2 | 0 |