-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relax "bytes" requirement when reading #572
Comments
I never see such file-like. By typing.IOBase, You can use Unpacker.feed(). Isn't it simpler than custom made file-like returning memoryview? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: