From 095e43a9a5b3fc7c1220cdbabe6a4fed0973b1e1 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 15 Aug 2016 23:26:34 +1000 Subject: py/sequence: Allow to use bignums as indices in slice objects. See issue #2264. --- tests/basics/slice_bignum.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/basics/slice_bignum.py (limited to 'tests') diff --git a/tests/basics/slice_bignum.py b/tests/basics/slice_bignum.py new file mode 100644 index 000000000..cc820522b --- /dev/null +++ b/tests/basics/slice_bignum.py @@ -0,0 +1,5 @@ +# test slicing when arguments are bignums + +print(list(range(10))[(1<<66)>>65:]) +print(list(range(10))[:(1<<66)>>65]) +print(list(range(10))[::(1<<66)>>65]) -- cgit v1.2.3