circuitpython/tests/basics/slice_bignum.py

6 lines
155 B
Python

# 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])