From d6e12723edd40ce80bbaf49d11fd978b248b4dfc Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 19 Apr 2014 20:06:57 +0300 Subject: objarray: Implement slice subscription. --- tests/basics/bytearray1.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/basics/bytearray1.py b/tests/basics/bytearray1.py index e564165b9..02066cafc 100644 --- a/tests/basics/bytearray1.py +++ b/tests/basics/bytearray1.py @@ -13,3 +13,7 @@ s = 0 for i in a: s += i print(s) + +print(a[1:]) +print(a[:-1]) +print(a[2:3]) -- cgit v1.2.3