objarray: Support assignment of bytes to bytearray slice.

This commit is contained in:
Paul Sokolovsky
2015-04-16 00:48:36 +03:00
parent 9a18e21066
commit 56beb01724
2 changed files with 29 additions and 9 deletions

View File

@@ -46,3 +46,9 @@ print(l)
b = bytearray(2)
b[2:] = bytearray(10)
print(b)
# Assignment of bytes to array slice
b = bytearray(2)
b[1:1] = b"12345"
print(b)