From 5ebd5f0f19bdc1331d890e2af081056548002427 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 11 May 2014 21:22:59 +0300 Subject: objstr: Slice indexing: support bytes properly. --- tests/basics/string-slice.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/basics/string-slice.py') diff --git a/tests/basics/string-slice.py b/tests/basics/string-slice.py index 7538ae5700..89853d3437 100644 --- a/tests/basics/string-slice.py +++ b/tests/basics/string-slice.py @@ -30,3 +30,6 @@ print("123"[-1000000:]) # No IndexError! print(""[1:1]) print(""[-1:-1]) + +# bytes +print(b"123"[0:2]) -- cgit v1.2.3