lcompilers / lpython

Python compiler
https://lpython.org/
Other
1.5k stars 158 forks source link

Fix symbolic pass for printing `ListItem` #2620

Closed kmr-srbh closed 6 months ago

kmr-srbh commented 6 months ago

fixes #2613

from lpython import i32

A: list[i32] = [1, 2, 4, 5]
print(A[0], A[1], A[2], "...", A[-3], A[-2], A[-1])
(base) saurabh-kumar@Awadh:~/Projects/System/lpython$ ./src/bin/lpython ./examples/example.py
1 2 4 ... 2 4 5