Message187911
| 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. |
|