py: Make bytearray a proper type.

This commit is contained in:
Paul Sokolovsky
2014-04-08 22:09:14 +03:00
parent 134c10e776
commit 4dcb605ac4
5 changed files with 26 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
print(bytearray(4))
a = bytearray([1, 2, 200])
print(type(a))
print(a[0], a[2])
print(a[-1])
print(a)