From b9cf3d3730f8350d9756f6cfb32b1240dccf0981 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 8 Apr 2014 04:42:44 +0300 Subject: bytearray: Support bytearray(int) constructor. To create bytearray of given length. --- tests/basics/bytearray1.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/basics/bytearray1.py b/tests/basics/bytearray1.py index 3111832f6..201b5b659 100644 --- a/tests/basics/bytearray1.py +++ b/tests/basics/bytearray1.py @@ -1,3 +1,4 @@ +print(bytearray(4)) a = bytearray([1, 2, 200]) print(a[0], a[2]) print(a[-1]) -- cgit v1.2.3