Nick Coghlan added the comment:

As Serhiy and Antoine noted, what I had in mind here was to try to wrap the 
input in a memoryview if it wasn't an instance of str, bytes or bytearray.

An existing memoryview will be passed back unmodified, while something like 
array.array will provide a view into its raw data for encoding or decoding. The 
tests would then cover both memoryview and array.array to ensure it was all 
working as expected.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17839>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to