Josiah Carlson <[EMAIL PROTECTED]> added the comment:

In order for MemoryView to know what bytes it is pointing to in memory,
it (generally) keeps a pointer with a length.  In order to rotate the
data without any copies, you need a pointer and length for each rotation
plus the original.  For example, the equivalent to a rotate left of 8
characters using slicing is... x[8:] + x[:8].  That is two segments. 
That's a "multi-segment buffer interface".  But typical multi-segment
buffer interfaces require each segment to be exactly the same length
(like numpy), which is not the case with rotations.

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3489>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to