[issue3489] add rotate{left,right} methods to bytearray
Antoine Pitrou
report at bugs.python.org
Fri Aug 8 22:49:32 CEST 2008
Antoine Pitrou <pitrou at free.fr> 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 <report at bugs.python.org>
<http://bugs.python.org/issue3489>
_______________________________________
More information about the Python-bugs-list
mailing list