Message189502
| Author |
serhiy.storchaka |
| Recipients |
ethan.furman, josiahcarlson, pitrou, rhettinger, serhiy.storchaka, terry.reedy |
| Date |
2013年05月18日.09:34:06 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1368869647.0.0.439219544887.issue3489@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I think you rather need the inplace shift operation. Or even the move the tail of buffer to the start without filling the remaining. I.e. something like
buffer[:size] = buffer[-size:]
but without creating immediate bytes object. Now it may be written as:
buffer[:size] = memoryview(buffer)[-size:] |
|