Author ncoghlan
Recipients barry, ezio.melotti, kushal.das, ncoghlan, pitrou, serhiy.storchaka
Date 2013-04-27.15:27:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367076432.63.0.437931778182.issue17839@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-04-27 15:27:12ncoghlansetrecipients: + ncoghlan, barry, pitrou, ezio.melotti, serhiy.storchaka, kushal.das
2013-04-27 15:27:12ncoghlansetmessageid: <1367076432.63.0.437931778182.issue17839@psf.upfronthosting.co.za>
2013-04-27 15:27:12ncoghlanlinkissue17839 messages
2013-04-27 15:27:12ncoghlancreate