You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is with print_list_tuple ASR pass. It transforms print(l.pop()) into print(l.pop()[0], l.pop()[1]) which calls l.pop twice leading to the error because in second call to l.pop() the list is empty. The correct transformation would be t = l.pop(); print(t).
Uh oh!
There was an error while loading. Please reload this page.
The problem is with
print_list_tuple
ASR pass. It transformsprint(l.pop())
intoprint(l.pop()[0], l.pop()[1])
which callsl.pop
twice leading to the error because in second call tol.pop()
the list is empty. The correct transformation would bet = l.pop(); print(t)
.Originally posted by @czgdp1807 in #1845 (comment)
The text was updated successfully, but these errors were encountered: