Closed
Description
Range object should support get_item operation :)
gpython
>>> a = range(10)
>>> a[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
FIXME line of source goes here
TypeError: "'range' object is not subscriptable"
python3
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a = range(10)
>>> a[0]
0