You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The returned object must of course support the buffer protocol, but beyond that it shouldn't be required to be a bytes type. It could be a memoryview into an in-memory "file". There should be no requirement to copy the data; the unpacker does that anyway.
The text was updated successfully, but these errors were encountered:
I never see such file-like. By typing.IOBase, read() must return str or bytes.
Is that file-like existing widely-used library? Or is it just in your program?
You can use Unpacker.feed(). Isn't it simpler than custom made file-like returning memoryview?
The unpacker currently requires the file to return bytes.
Is it possible to relax this?
The returned object must of course support the buffer protocol, but beyond that it shouldn't be required to be a
bytes
type. It could be a memoryview into an in-memory "file". There should be no requirement to copy the data; the unpacker does that anyway.The text was updated successfully, but these errors were encountered: