Open njsmith opened 7 years ago
Realistically I think this probably does work with bytearray objects, and there's just a slightly overzealous isinstance
check in front of the code.
Assuming that's true the fix is really easy. I'll quickly prototype that up to see if it works, and if it does I'll submit the patch.
See #622.
But
bytearray
s are nice and friendly and deserve your love too!Actually I'd expect that it should accept anything that implements the buffer interface, using
ffi.from_buffer
.