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
importnumba@numba.njitdeftest():
a= ((1, 2),)
b= ()
c= (1,)
# Worksforiinc:
print(i)
fori, jina:
print(i+j)
# Fails due to type errorforiinb:
print(i)
fori, jinb:
print(i+j)
test()
In general, there doesn't seem to be an way to iterate over empty tuples in Numba. For instance, we might not know if the element being iterated over is empty or not.
The text was updated successfully, but these errors were encountered:
@kc611 Thanks for opening the request. Am going to close this as it's a duplicate as noted. Perhaps consider subscribing to #7245 to get updates on any progress made? Thanks again!
Feature request
In general, there doesn't seem to be an way to iterate over empty tuples in Numba. For instance, we might not know if the element being iterated over is empty or not.
The text was updated successfully, but these errors were encountered: