Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

Hi,

> Sadly, this isn't quite as easy as it would seem.

You are right, I was overly optimist when thinking about this.

> Offering this ability in the momoryview object would be very
> interesting, though I'm not sure that the memoryview object is able to
> offer a multi-segment buffer interface where the segments are not the
> same length (this could be hacked by having a single pointer per byte,
> but at that point we may as well perform a copy).

I'm not sure what you mean, but I think we can just restrict it to the
simple case of a single contiguous buffer.

shift{left,right} could be useful too (and faster).

_______________________________________
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