]> granicus.if.org Git - python/commit
Optimize slicing of bytes and bytearray by avoiding useless copying.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 3 Apr 2009 06:38:02 +0000 (06:38 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 3 Apr 2009 06:38:02 +0000 (06:38 +0000)
commite2641f45b6305f9371cecdcb8765998e2946ca94
tree320793635bb0dd2574ee2e561426f9c7fd88abac
parent1102062abb05e6558ecd93b014e532014b8eb4bf
Optimize slicing of bytes and bytearray by avoiding useless copying.

This restores the behavior that was present in Python 2.x.
Objects/bytearrayobject.c
Objects/bytesobject.c